Ubuntu 14.04 – 你已经破了包裹

这是一个非常受欢迎的问题,但是在我尝试了所有你想要提出的建议的时候,我都没有这个问题。 所以这就是我得到的:

sudo apt-get install 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 resolve the situation: 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. 

所以我尝试安装unity-control-center

 Depends: unity-settings-daemon but it is not going to be installed 

所以我尝试安装unity-settings-daemon

 Depends: gnome-settings-daemon-schemas (< 3.10) but 3.12.2-0ubuntu1~trusty2 is to be installed 

根问题似乎是需要gnome-settings-daemon-schemas 3.10或更低版本,但由于某种原因它无法获得它。

所以你可能会考虑尝试以下方法:

 sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get clean sudo apt-get autoclean sudo dpkg --configure -a sudo -f 

我目前登录到gnome,当我尝试启动进入lightgdm ,系统会在打印机假脱机后立即挂起。

我目前有gdm,kdm和lightgdm。

我希望我的电脑能够恢复到gnome和ubuntu的统一。 有什么想法吗? (重新安装是不可能的)

Unity基于gnome。 许多统一包(和ubuntu-desktop )包依赖于gnome包。

所以这里的问题似乎是添加了Gnome 3.12 ppa。

 gnome-settings-daemon-schemas 

是Gnome的一部分。 您尝试安装的软件包( ubuntu-desktop )需要来自gnome的3.10版本,但它无法访问3.10版本,因为ppa告诉它从3.12 repos获取它。

如果你想要统一,你需要安装以前的版本:

 sudo apt-get install gnome-settings-daemon-schemas=3.8.6.1-0ubuntu11.2 

但是这会因为依赖而删除一些 – 所以gnome 3.12会破坏…

 The following packages will be REMOVED gdm gnome-control-center gnome-session gnome-settings-daemon gnome-shell The following packages will be DOWNGRADED: gnome-settings-daemon-schemas