我正在运行 Debian Stretch (9.9),但无法进行远程升级。我没有保留包裹。
我的版本和内核:
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
uname -a
beastmode 4.17.0-0.bpo.1-amd64 #1 SMP Debian 4.17.8-1~bpo9+1 (2018-07-23) x86_64 GNU/Linux
我的 apt-mark showhold 命令显示没有保留的软件包。
me@pc:~$ sudo apt-mark showhold
me@pc:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Error!
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:
libkf5su-bin : Depends: libkf5su5 (>= 4.96.0) but it is not going to be installed
monodoc-browser : Depends: libwebkit1.1-cil (>= 0.3) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
KDE 中损坏的软件包(libkf5su-bin)可以删除,但 monodoc-browser 甚至没有安装,我也没有要求安装它。
我该如何修复我的系统?
(更新:我想我需要删除列表中出现的所有已安装的内容,并添加损坏列表中出现的尚未安装的任何内容。)
(更新:第三方存储库是一个巨大的痛苦来源!)
答案1
需要执行以下步骤:
删除可能具有不良依赖性的第三方源(MS VS CODE 和 SKYPE 存储库)
删除错误列表中出现的已安装项目。
安装错误列表中作为错误依赖项出现但尚未安装的项目。
在完全卸载 KDE(它似乎已被 MS REPO 破坏)后,我不得不重新安装 KDE 或其他桌面。我决定改用 Mate,而不是重新安装 KDE。