故障排除

故障排除

我在 VirtualBox VM 上安装了 Debian 8.2,并添加了不稳定(sid)存储库,而/etc/apt/sources.list无需删除任何其他存储库,然后我运行了apt-get update && apt-get upgrade && apt-get autoremove.在此之前,我安装了 Plasma 4,我希望添加此存储库会给我 Plasma 5,但我根本没有安装 Plasma 桌面,或者看起来是这样。每当我跑步时:

apt-get install kde-full

我收到错误:

The following packages have unmet dependencies:
 kde-full : Depends: kde-plasma-desktop (>= 5:84) but it is not going to be installed
            Depends: kde-plasma-netbook (>= 5:84) but it is not going to be installed
            Depends: kdeartwork (>= 4:4.11.3) but it is not going to be installed
            Depends: kdenetwork (>= 4:4.11.3) but it is not going to be installed
            Depends: kdeutils (>= 4:4.11.3) but it is not going to be installed
            Depends: kdepim (>= 4:4.11.3) but it is not going to be installed
            Depends: kdeplasma-addons (>= 4:4.11.3) but it is not going to be installed
            Recommends: kde-standard (>= 5:84) but it is not going to be installed
            Recommends: kdewebdev (>= 4:4.11.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

每当我尝试使用apt-get install类似的方式安装特定的 Plasma 组件apt-get install kde-plasma-desktop时,我都会遇到类似的错误,最后一行完全相同(即E: Unable to correct problems, you have held broken packages.)。

故障排除

就故障排除而言,我用谷歌搜索E: Unable to correct problems, you have held broken packages.并找到了问题“修复 debian 上损坏的软件包?“ 和 ”E:无法纠正问题,您持有破损的包裹”并尝试过:

apt-get install -f kde-full

它返回与没有该选项的运行相同的错误-f。我也跑了apt-get -f install,它刚刚返回:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我也尝试过运行:

aptitude why-not kde-full

aptitude why-not kde-plasma-desktop

并且都返回:

Unable to find a reason to remove ...

其中 ... 是后面提供的包名称aptitude why-not。虽然apt-mark showhold没有返回任何输出。

相关内容