我正在尝试在我的 ubuntu 服务器上安装 ubuntu-desktop,但每次尝试安装时都会出现依赖性错误。
每次我尝试安装软件包时,它都说需要,但安装过程却越来越复杂。我尝试了、、、、等所有clean
在线建议,但都不起作用。 autoremove
clear cache
dist-upgrade
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: checkbox-gui but it is not going to be installed
Recommends: python3-aptdaemon.pkcompat but it is not going to be installed
Recommends: unity-webapps-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
编辑:
我以 root 用户身份登录。
我用来安装的命令:apt-get install ubuntu-desktop
。
我尝试使用以下命令来修复它:
apt-get autoclean
apt-get clean
dpkg --configure -a
apt-get update
apt-get dist-upgrade
答案1
我在尝试 KDE plasma 并在没有清除 ppa 的情况下将其删除后也遇到了同样的问题,但解决方案是使用以下方法重新配置 lightdm
sudo dpkg-reconfigure lightdm
另外,请确保您已经安装lightdm
并ubuntu-unity-desktop