如何完全删除 ubuntu-desktop 并保留 gnome-shell?

han*_*s-t 5 gnome 14.04

我已经安装gnome-shell并想删除ubuntu-desktop. 我如何在不破坏的情况下做到这一点gnome-shell?因为,现在,我得到了很多重复,例如两个软件更新程序和两个系统设置。

mch*_*hid 11

首先,安装完整的 ubuntu-gnome-desktop 元包以获取完整的 ubuntu-gnome-desktop 附带的所有内容:

sudo apt-get update
sudo apt-get install ubuntu-gnome-desktop
Run Code Online (Sandbox Code Playgroud)

接下来,删除 ubuntu-desktop:

sudo apt-get remove ubuntu-desktop unity && sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)

或者,如果您还想删除配置文件

sudo apt-get purge ubuntu-desktop unity unity-greeter && sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)

在选择“Y”以接受更改之前,请仔细查看要卸载的程序列表,以确保您没有卸载要保留或需要的内容!!!

如果您想要或需要保留要删除的任何应用程序,请不要排除更改,而是按 CRTL +C退出命令,然后使用sudo apt-get install将这些想要或需要的应用程序标记为选定的显式安装这些应用程序。执行此操作后,sudo apt-get autoremove再次运行,在接受对系统的更改之前查看要删除的应用程序列表以进行验证。