如何从 Ubuntu 桌面 14.04 中删除 Gnome

War*_*gog 10 gnome uninstall

由于某些原因,我需要在我的服务器上使用 Ubuntu Desktop,因为我无法使用 Ubuntu Server,但为了提高效率,我想删除桌面环境并直接启动到 shell,所有其他问题我都看到了答案用于旧版本的 Ubuntu 并且他们发布的命令不起作用,主要是因为它说找不到这些包。

总而言之,我只需要桌面环境消失并启动到 shell。

mur*_*uru 6

如果已经安装,您可以删除 Ubuntu 桌面元包并安装您需要的服务器软件:

sudo apt-get install openssh
Run Code Online (Sandbox Code Playgroud)

根据您的需要配置 SSH。然后:

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


sbe*_*ron 4

sudo apt-get purge unity gnome-shell lightdm

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)