Ubunutu 16.04服务器:无法重新安装或完全删除ubuntu-desktop

问题描述 投票:0回答:1

我已经安装了ubuntu-desktop软件包并在我的计算机上工作。我错误地删除了一个软件包,这导致很多台式机软件包开始被卸载。我已中途停止了该过程,但是现在我无法安装(重新安装)或删除桌面]

$ sudo apt install --reinstall ubuntu-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:
 ubuntu-desktop : Depends: gnome-session-canberra but it is not going to be installed
                  Depends: pulseaudio
                  Depends: ubuntu-session but it is not going to be installed
                  Depends: unity but it is not going to be installed
                  Depends: unity-control-center but it is not going to be installed
                  Depends: unity-greeter but it is not going to be installed
                  Depends: unity-settings-daemon but it is not going to be installed
                  Recommends: aisleriot but it is not going to be installed
                  Recommends: cheese but it is not going to be installed
                  Recommends: gnome-bluetooth but it is not going to be installed
                  Recommends: gnome-disk-utility but it is not going to be installed
                  Recommends: gnome-screenshot but it is not going to be installed
                  Recommends: onboard but it is not going to be installed
                  Recommends: pulseaudio-module-bluetooth but it is not going to be installed
                  Recommends: pulseaudio-module-x11 but it is not going to be installed
                  Recommends: whoopsie but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

并且如果要删除它:

$ sudo apt remove ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'ubuntu-desktop' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我尝试过以下命令:

sudo apt install -f
sudo apt dist-upgrade
sudo apt update
sudo apt autoremove
sudo apt autoclean

对最终结果没有影响。

ubuntu ubuntu-16.04 apt
1个回答
0
投票

我正在尝试自定义桌面,但我搞砸了:(。现在没有图标或墙纸了。有任何建议或解决方案吗?

© www.soinside.com 2019 - 2024. All rights reserved.