Ubuntu 提供了更新,我安装了它们。之后,Ubuntu 桌面 GUI 一直无法正常工作,并且经常冻结。此外,Ubuntu 启动屏幕没有像下面这样,而是只显示一个空白的灰色屏幕,桌面上也没有壁纸,只有黑色背景。
我也尝试过这个sudo apt-get install ubuntu-desktop
但得到如下所示的结果。
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.
我尝试安装checkbox-gui
,然后它给出另一个未满足的依赖项错误消息,然后又给出另一个。
答案1
总结:
总是使用以下方式删除 PPAppa-purge
整个故事:
昨天我想尝试一下KDE 等离子我使用以下命令安装了它:
sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install kubuntu-desktop
一个小时后,我决定换回统一并删除桌面环境:
sudo add-apt-repository --remove ppa:kubuntu-ppa/backports
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get remove --purge kubuntu-desktop
登录后我遇到了一些问题,因此我尝试重新安装ubuntu-desktop
和unity
,但出现了错误:
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.
经过一番挖掘,我发现了导致问题的原因:删除 PPA 不会降级软件包。解决方案是再次添加它并执行:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:kubuntu-ppa/backports
然后我就可以重新安装ubuntu-desktop
:)
答案2
以下命令解决了我的问题,
unity --replace sudo apt-get install --reinstall unity sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -y