删除所有 gnome 包

删除所有 gnome 包

我已经ubuntu-gnome-desktop在 Ubuntu 14.04(unity) 中安装了。几天后我决定删除gnome-shell。因此我运行以下命令。

sudo apt-get remove --purge ubuntu-gnome-desktop
sudo apt-get autoremove

但是现在Ubuntu desktop(unity),有些gtk3 applications(nautilus、gnome-terminal、system-settings 等) 正在使用header bar(这是 中的默认设置gnome-shell)。如何摆脱这种情况? 在此处输入图片描述

答案1

清除gnome-shellubuntu-gnome-desktop只是一个元包,不会删除任何内容。 之后,您应该再次安装 Unity,它可能会损坏。

示例输出

% sudo apt-get remove --purge ubuntu-gnome-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  gnome-shell-extensions
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  ubuntu-gnome-desktop*

gnome-shell使用以下命令清除

sudo apt-get purge gnome-shell

示例输出在我的计算机上

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cgmanager geoclue-ubuntu-geoip gnome-power-manager gnome-screensaver gsettings-ubuntu-schemas indicator-applet indicator-bluetooth indicator-datetime indicator-keyboard indicator-messages indicator-power indicator-session
  indicator-sound libaccount-plugin-1.0-0 libaccount-plugin-generic-oauth libaccount-plugin-google libaccounts-qt5-1 libcgmanager0 libfcitx-config4 libfcitx-gclient0 libfcitx-utils0 libjson0 liblightdm-gobject-1-0 libpanel-applet0
  libsignon-extension1 libsignon-plugins-common1 libsignon-qt5-1 libtimezonemap-data libtimezonemap1 libunity-settings-daemon1 liburl-dispatcher1 lightdm signon-keyring-extension signon-plugin-oauth2 signon-ui signon-ui-service
  signon-ui-x11 signond systemd-shim ubuntu-touch-sounds unity-control-center unity-control-center-signon unity-greeter unity-settings-daemon upstart upstart-bin
Suggested packages:
  click powerd unity-system-compositor unity-greeter-session-broadcast fcitx url-dispatcher lightdm-remote-session-freerdp lightdm-remote-session-uccsconfigure remote-login-service graphviz upstart-monitor
The following packages will be REMOVED:
  gdm* gnome-shell* gnome-shell-extensions* ubuntu-gnome-desktop*
The following NEW packages will be installed:
  cgmanager geoclue-ubuntu-geoip gnome-power-manager gnome-screensaver gsettings-ubuntu-schemas indicator-applet indicator-bluetooth indicator-datetime indicator-keyboard indicator-messages indicator-power indicator-session
  indicator-sound libaccount-plugin-1.0-0 libaccount-plugin-generic-oauth libaccount-plugin-google libaccounts-qt5-1 libcgmanager0 libfcitx-config4 libfcitx-gclient0 libfcitx-utils0 libjson0 liblightdm-gobject-1-0 libpanel-applet0
  libsignon-extension1 libsignon-plugins-common1 libsignon-qt5-1 libtimezonemap-data libtimezonemap1 libunity-settings-daemon1 liburl-dispatcher1 lightdm signon-keyring-extension signon-plugin-oauth2 signon-ui signon-ui-service
  signon-ui-x11 signond systemd-shim ubuntu-touch-sounds unity-control-center unity-control-center-signon unity-greeter unity-settings-daemon upstart upstart-bin

答案2

也许我一开始没有清除(删除)正确的软件包。结果一些 gnome 软件包(来自 gnome-shell)被安装到我的系统中并与unity(主题)冲突。所以我采取了以下步骤。

删除所有 gnome 包

sudo apt-get purge gnome-*

它还会删除一些应用程序和中断unity。因此,为了修复副作用,我重新安装了ubuntu-desktop

sudo apt-get install --reinstall ubuntu-desktop

它解决了我的问题。

相关内容