由于缺少依赖项,无法安装 pantheon-shell 和 elementary-tweaks

由于缺少依赖项,无法安装 pantheon-shell 和 elementary-tweaks

我在 Ubuntu 14.04 上。我想安装两个软件包:pantheon-shellelementary-tweaks出现以下错误:

$ sudo apt-get install pantheon-shell
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 to resolve the situation:

The following packages have unmet dependencies:
 pantheon-shell : Depends: slingshot-launcher but it is not going to be installed
              Recommends: gala but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt-get install elementary-tweaks
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 to resolve the situation:

The following packages have unmet dependencies:
 elementary-tweaks : Depends: gala but it is not going to be installed
                 Depends: slingshot-launcher but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我试过这个,但没有帮助:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

答案1

按显示的顺序尝试以下操作

sudo apt-get autoclean && apt-get clean
sudo aptitude update && sudo aptitude -y upgrade
sudo aptitude install <package>

答案2

我猜这些存储库具有相同的软件包,但是版本不同?

我认为您需要 APT Pinning 来实现这一点,以告诉 apt 您希望从哪个 repo 安装。

ppa:elementary-os/testing
ppa:elementary-os/daily

这可能是你的问题。你需要给予这些存储库优先权。

相关内容