ubuntu默认桌面gnome安装、卸载、重置恢复默认桌面配置

365网址经常打不开 📅 2025-07-29 16:37:35 👤 admin 👁️ 7036 ❤️ 662
ubuntu默认桌面gnome安装、卸载、重置恢复默认桌面配置

前言全局说明

ubuntu默认桌面gnome安装、卸载、重置恢复默认

一、说明

环境:

Ubuntu 18.04.6 LTS (Linux qt-vm 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux)

二、安装 gnome

2.1 更新源

sudo apt-get update

sudo apt upgrade

建议,提前将源切换到官方源,因为源内容更完整,如果用国内源,由可能安装时提示:无法定位软件包 gnome-desktop

2.2 安装

2.2.1 方式一: 直接安装完整的Ubuntu Gnome桌面

sudo apt-get install libxkbcommon0=0.8.0-1 libxkbcommon-x11-0 libmutter-2-0 gnome-shell

sudo apt-get install gnome-session-common=3.28.1-0ubuntu2 ubuntu-session

sudo apt-get install libgdm1=3.28.0-0ubuntu1 gdm3

sudo apt-get install packagekit=1.1.9-1ubuntu2.18.04.6 gstreamer1.0-packagekit

sudo apt-get install gvfs-common=1.36.1-0ubuntu1.3.3 gvfs-bin

sudo apt-get install nautilus-data=1:3.26.4-0~ubuntu18.04.5 libnautilus-extension1a=1:3.26.4-0~ubuntu18.04.5 nautilus

sudo apt-get install python3-update-manager=1:18.04.11 update-manager-core=1:18.04.11 update-manager python3-distupgrade=1:18.04.45 ubuntu-release-upgrader-core=1:18.04.45 ubuntu-release-upgrader-gtk

sudo apt-get install ubuntu-desktop

以上版本可能会变化,安装时根据提示修改,即可

如果遇到版本号怎么填都不对,那直接删除掉哪个依赖模块名

2.2.1 方式二: tasksel命令安装完整的Ubuntu Gnome桌面

sudo apt install tasksel

sudo tasksel install ubuntu-desktop

2.2.2 方式三: 安装 gnome (最新版本)

sudo apt-get install gnome

2.2.3 gnome桌面窗口管理程序

sudo apt-get install gnome-shell

sudo apt-get install ubuntu-gnome-desktop

安装后需要重启, sudo reboot

三、卸载 gnome

注意:卸载 gnome 重启后,就只有命令行了

注意:卸载 gnome 重启后,就只有命令行了

注意:卸载 gnome 重启后,就只有命令行了

sudo apt-get remove ubuntu-desktop

sudo apt-get remove gnome-tweak-tool

sudo apt-get remove gnome-shell

四、桌面配置

4.1 重置恢复默认桌面配置

dconf reset -f /org/gnome/

4.2 配置系统

sudo apt-get install gnome-tweaks

4.3 安装系统深色主题,因为最小化桌面环境只有浅色主题:

sudo apt-get --no-install-recommends install yaru-theme-gtk

五、其他:

5.1 查看包来源

sudo apt-cache madison gnome

5.2 查看,可用版本

sudo apt-cache show gnome

下图红框里,是可以安装的文件,上面的 version 1:3.22+9 是 3.22版本

5.3 查看,安装好的 gnome版本

gnome-shell --version

5.4 删除卸载包的依赖

如果还打算重新安装,建议不要执行此命令,否则要手动补齐依赖包

sudo apt autoremove

免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。

参考、来源:

https://zhuanlan.zhihu.com/p/478409636 (安装、卸载、配置)

https://blog.csdn.net/qq_40857842/article/details/88053452 (简化、完整 gnome桌面)

https://zhuanlan.zhihu.com/p/479572355 (安装系统深色主题)

https://zhuanlan.zhihu.com/p/540712989 (软件来源)

https://cn.linux-console.net/?p=17452

https://blog.csdn.net/allway2/article/details/106322339 (完整安装Gnome桌面)

https://forum.ubuntu.com.cn/viewtopic.php?t=241116 (install ubuntu-desktop)

https://blog.csdn.net/m0_46278037/article/details/120194653 (echo $XDG_CURRENT_DESKTOP

https://blog.csdn.net/cunjiu9486/article/details/109077658( gnome-shell --version)

https://zhuanlan.zhihu.com/p/540712989 (查询指定包的详情)

https://www.51shizhi.com/article/a/ubuntu2204-install-gnome (三个版本的 Gnome 桌面环境 Ubuntu Desktop、Ubuntu Desktop、Vanilla GNOME)

相关推荐

苹果7发布时间(iphone发布顺序)
365bet体育在线总站

苹果7发布时间(iphone发布顺序)

📅 07-25 👁️ 1859
旋转木马作文300字 23
365bet最新备用

旋转木马作文300字 23

📅 07-27 👁️ 3720
中国联通大王卡不用了要主动注销吗?官方解答来了!