apt-get坏了,不能安装任何东西

时间:2017-10-25 17:31:16

标签: install ubuntu-16.04 apt-get apt

我的apt-get完全坏了,无法安装任何东西。 'apt-get install -f“的输出如下:

# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 gnome-icon-theme : Depends: gtk-update-icon-cache
 python3-cairo : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
 python3-gdbm : Depends: python3 (>= 3.6) but 3.4.3-1 is installed
 python3-reportlab-accel : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
 rhythmbox : Depends: rhythmbox-data (= 3.1-1ubuntu3) but 3.4.1-2ubuntu5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

'sudo apt install python3'的输出如下:https://imgur.com/a/IbGK0

我已经搜索了任何可能的问题并尝试了任何可能的解决方案,但没有人为此工作。

2 个答案:

答案 0 :(得分:1)

转至/var/log/dist-upgrade/apt.log并识别已损坏的软件包。 " apt-get remove"包,发布升级,然后你应该能够重新安装它们。

您可以在此处找到更多信息:https://askubuntu.com/questions/124845/eerror-pkgproblemresolverresolve-generated-breaks-this-may-be-caused-by-hel

答案 1 :(得分:0)

此命令解决了我的错误

sudo apt -f安装