将 Debian11/KDE 升级到 Debian12 后,重新启动并运行sudo apt-get upgrade
我得到The following packages have been kept back: sysv-rc-conf
:我无法安装它,因为它要求删除许多重要的软件包,例如plasma-workspace。应该做什么?
答案1
从 Debian 11 Bullseye 升级到 Debian 12 Bookworm 后,我遇到了同样的问题。
# apt upgrade
--- cut ---
Calculating upgrade... Done
The following packages have been kept back: sysv-rc-conf
在这种情况下,我使用 Aptitude 命令,它可以建议多个包冲突的解决方案。
# aptitude dist-upgrade
The following packages will be upgraded:
sysv-rc-conf{b}
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 21,6 kB of archives. After unpacking 1 024 B will be freed.
The following packages have unmet dependencies:
sysv-rc-conf : Depends: sysvinit-core but it is not going to be installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) sysv-rc-conf [0.99-7.1 (now)]
我没有接受保留包裹的建议解决方案。
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Remove the following packages:
1) sysv-rc-conf [0.99-7.1 (now)]
由于 Aptitude 提出了删除软件包的新解决方案,我接受了它。
Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
libcurses-ui-perl{u} sysv-rc-conf{a}
0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 750 kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 510305 files and directories currently installed.)
Removing sysv-rc-conf (0.99-7.1) ...
Removing libcurses-ui-perl (0.9609-1.1) ...
Processing triggers for man-db (2.11.2-2) ...
Current status: 0 (-1) upgradable.
不再保留 sysv-rc-conf 包。
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded