apt-get 坏了,无法安装任何东西

apt-get is broken and can't install anything

我的 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

我用谷歌搜索了所有可能的问题并尝试了所有可能的解决方案,但没有人解决。

转到 /var/log/dist-upgrade/apt.log 并确定损坏的包。 "apt-get remove" 软件包,进行发布升级,然后您应该能够重新安装它们。

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

这个命令解决了我的错误

sudo apt -f install