我有一台装有 ubuntu 14.04 的笔记本电脑,我尝试安装 gnome 来尝试它,过了一会儿,我想删除它,所以我使用了以下命令
apt-get remove gnom*
我重新启动了,在登录屏幕之前我只看到黑屏
我尝试使用以下ubuntu-desktop
命令重新安装:
sudo apt-get install ubuntu-desktop
但我一直收到以下错误:
The following packages have unmet dependencies:
ubuntu-desktop :
Depends: ubuntu-session but it is not going to be installed
Depends: unity-control-center but it is not going to be installed
Depends: unity-settings-daemon but it is not going to be installed
Recommends: xul-ext-webaccounts but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
搜索了大多数未满足的依赖关系的问题,但没有任何变化,我尝试了以下所有方法:
ap-get update , upgrade , remove , auto remove , clean auto , clean , apt-get -f install, dpkg --configure -a
但它是一样的......
所以你知道我该如何解决这个问题
答案1
我遵循依赖包直到到达这一点
Depends: gnome-settings-daemon-schemas (< 3.10) but 3.12.2-0ubuntu1~trusty3 is to be installed
所以我执行了以下命令,使我能够重新安装ubuntu-desktop
sudo apt-get install gnome-settings-daemon-schemas=3.8.6.1-0ubuntu11.2
sudo apt-get install ubuntu-desktop
我重新启动后就可以登录个人资料了