我无法安装 XFCE(xubuntu 桌面)

Mal*_*ent 5 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.
Run Code Online (Sandbox Code Playgroud)

任何人都知道这意味着什么以及如何解决它?

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

`

小智 2

看起来你的更新或软件安装有问题,所以要么你的 apt-cache 被搞乱了,要么你的 dpkg 没有获得锁定。第一次尝试

sudo dpkg --configure -a
Run Code Online (Sandbox Code Playgroud)

然后:

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
Run Code Online (Sandbox Code Playgroud)

(可选)删除统一性:

sudo apt-get purge ubuntu-default-settings

sudo apt-get purge ubuntu-desktop

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


May*_*rni -1

您是否尝试过安装名为“xfce4”的基本 xfce 桌面软件包?安装它将安装基本的 xfce 桌面,而不需要 Xubuntu 使用的所有额外软件包(例如 gnome 依赖项、xubuntu 图稿等)。这样,您就不会拥有多个文本编辑器、更新管理器、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
Run Code Online (Sandbox Code Playgroud)