apt-get,未满足的依赖项,......“但它不会被安装”

Alb*_*ert 45 apt

$ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 kde-workspace-bin : Depends: qdbus but it is not going to be installed
 libqt4-dbus : Depends: qdbus (= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

我不太明白“但它不会被安装”。那为什么不安装呢?

apt-get -f install 没有帮助,它什么也不做:

$ apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

小智 29

这对我有用。

$ sudo apt-get install <missing-package-1> <missing-package-2> ...
Run Code Online (Sandbox Code Playgroud)

我不知道为什么这是必要的,但是手动安装有问题的包是有效的。

在安装了第一轮未满足的依赖项后,又弹出了一个,但我重复了这个过程,并在两个周期后自行解决。

  • 哇,真的就是这么简单……让我想知道为什么它不会首先安装? (14认同)

小智 17

由于这个问题也没有帮助,我在这个 LinuxQuestions 线程上发现了一个对我有帮助的提示:

你有混合的/etc/apt/sources.list吗?您似乎正在尝试从较新的存储库安装一个软件包,但它无权访问具有较新依赖项的存储库。


小智 5

我遇到了这个问题并通过运行解决了它:

sudo apt-get update
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

然后当我运行原始的“apt-get install”命令时成功了。


归档时间:

查看次数:

118591 次

最近记录:

4 年,4 月 前