我无法安装 XFCE ( xubuntu 桌面)

我无法安装 XFCE ( xubuntu 桌面)

我试了一下sudo apt-get install xubuntu-desktop。结果是这样的:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xubuntu-desktop : Depends: gtk2-engines-pixbuf but it is not going to be installed
                   Recommends: abiword but it is not going to be installed
                   Recommends: abiword-plugin-grammar but it is not going to be installed
                   Recommends: abiword-plugin-mathview but it is not going to be installed
                   Recommends: brltty-x11 but it is not going to be installed
                   Recommends: gimp but it is not going to be installed
                   Recommends: gthumb but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有人知道这是什么意思以及如何解决它吗?

  • PS:如果我已经安装了Xubuntu-desktop,如何删除Unity?
  • 谢谢。

`

答案1

似乎你的更新或软件安装有问题,所以你的 apt-cache 被搞乱了,或者你的 dpkg 没有得到锁定。首先尝试

sudo dpkg --configure -a

然后:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove -force --force-remove-reinstreq broken-packagename

可选择删除 unity:

sudo apt-get purge ubuntu-default-settings

sudo apt-get purge ubuntu-desktop

sudo apt-get autoremove

答案2

你应该像这样:

sudo apt install xubuntu-desktop <and its dependencies separated by space>

在您的错误中它应该是这样的:

sudo apt install xubuntu-desktop gtk2-engines-pixbuf abiword abiword-plugin-grammar abiword-plugin-mathview brltty-x11 gimp gthumb

答案3

您是否尝试过安装名为“xfce4”的基本 xfce 桌面包?安装它将安装基本 xfce 桌面,而不安装 Xubuntu 使用的所有额外包(例如,gnome-dependencies、xubuntu artwork 等)。这样,您就不会拥有多个文本编辑器、更新管理器、CD 刻录机、音频播放器等(因为它们都是 Xubuntu 所必需的)。

安装 XUbuntu 后,您可以通过以下方式删除 Unity

sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-\* unity-scope-\* unity-webapps-\* gnome-control-center-unity hud libunity-core-6\* libunity-misc4 libunity-webapps\* appmenu-gtk appmenu-gtk3 appmenu-qt\* overlay-scrollbar\* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration gnome-control-center gnome-session

相关内容