当我在 Unity 上安装 Gnome 时,登录时我无法选择返回到标准 Unity 桌面。每次我尝试简单的
sudo apt-get install ubuntu-desktop
我得到了错误
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: 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 拒绝重新安装,我不想完全重新安装 Ubuntu。我使用 Ubuntu 14.04。请帮忙!!!
答案1
看起来出了点问题,现在包依赖关系被破坏了。
请按照以下步骤操作如何解决未满足的依赖关系
让一切恢复正常。
基本上就是这样
sudo apt-get clean
sudo apt-get update
sudo apt-get -f install
sudo apt-get -f install ubuntu-desktop
确保保留这些命令的输出。如果之后仍然出现问题,它将提供有关正在发生的事情的宝贵信息。
答案2
我通过禁用所有 gnome3-staging 存储库(在 software-central 中)并重新安装所有软件包依赖项解决了这个问题。
尝试使用 安装每个依赖项(及其子依赖项)后apt-get install
,它显示我拥有一些库的较新版本。
为了解决这个问题,我删除并安装了每一个新版本。