无法重新安装 ubuntu-desktop,或修复所需的损坏软件包

无法重新安装 ubuntu-desktop,或修复所需的损坏软件包

我不知道是怎么回事,但不知怎么回事,ubuntu-desktop 软件包从我的机器上卸载了。我现在开始注意到我的系统出现了一些小问题 - 我无法将照片从 Shotwell 上传到任何在线帐户,unity tweak 无法启动,等等。我使用的是 14.04.2 64 位,内核是 3.16.0-31-generic。

我尝试在 synaptic 中重新安装该软件包,收到通知说软件包已损坏,尝试了“修复损坏的软件包”选项,但收到以下错误消息:

E: Unable to correct problems, you have held broken packages. E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies

我接着说

sudo apt-get update && sudo apt-get upgrade 得到了一些正常更新然后运行

sudo apt-get install -f 并得到输出

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

我回头看了看我的终端,看看那两个包裹是什么,找到它们并运行

sudo apt-get install audacious audacious-plugins

并得到输出

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:
 audacious : Depends: libaudcore3 (= 3.6-1~webupd8~trusty3) but it is not going to   be installed
 audacious-plugins : Depends: libaudcore3 (>= 3.6) but it is not going to be installed
                 Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                          libqt5gui5-gles (>= 5.0.2) but it is not installable
                 Depends: libqt5multimedia5 (>= 5.2.0) but it is not going to be installed
                 Depends: libqt5opengl5 (>= 5.0.2) but it is not going to be installed or
                          libqt5opengl5-gles (>= 5.0.2) but it is not installable
                 Depends: libqt5widgets5 (>= 5.2.0) but it is not going to be installed
  E: Unable to correct problems, you have held broken packages.

因此我确保 webupd8 ppa 存在并尝试使用选项 -f 安装 libaudcore3 并得到输出:

The following packages have unmet dependencies:
libaudcore3 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed    or
                    libqt5gui5-gles (>= 5.0.2) but it is not installable
           Depends: libqt5widgets5 (>= 5.2.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我对 libqt5gui5 做了同样的事情,得到了以下结果:

The following packages have unmet dependencies:
libqt5gui5 : Depends: libqt5dbus5 (>= 5.0.2) but it is not going to be installed
          Depends: qtbase-abi-5-2-1
E: Unable to correct problems, you have held broken packages.

等等等等……依赖地狱,对吧?我不断发现有问题的 qt 包。因此,我已将 qt 更新到其网站上的最新版本,因为我尝试修复的依赖项越多,我看到的问题 qt 包就越多。让我反复关注的一件事是这个包:qtbase-abi-5-2-1。S,我在 Google 上搜索了一下,发现它是 libqt5core5a 提供的虚拟包。稍后,sudo apt-get install libqt5core5a我得到了输出

libqt5core5a is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

是时候备份并进行全新安装了吗,或者有没有什么方法可以修复这个烂摊子?我猜,当你知道的信息足以危害你的系统时,就会发生这种情况。

相关内容