我正在尝试通过以下方式从 Ubuntu 18.04.5 升级到 20.04.1:
$ sudo do-release-upgrade
这失败如下:
...
无法计算升级
计算升级时出现无法解决的问题。
这可能是由以下原因引起的:
Ubuntu 未提供非官方软件包 请使用 ppa-purge 软件包中的“ppa-purge”工具从 Launchpad PPA 中删除软件并再次尝试升级。如果以上都不适用,请在终端中使用命令“ubuntu-bug ubuntu-release-upgrader-core”报告此错误。如果您想自己调查此问题,“/var/log/dist-upgrade”中的日志文件将包含有关升级的详细信息。具体来说,查看“main.log”和“apt.log”。
的尾部/var/log/dist-upgrade/main.log
包含以下错误:
...
2020-10-11 18:36:30,320 WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.)
2020-10-11 18:36:31,747 ERROR Dist-upgrade failed: 'Broken packages after upgrade: colord'
2020-10-11 18:36:31,747 DEBUG abort called
2020-10-11 18:36:31,755 DEBUG openCache()
2020-10-11 18:36:37,070 DEBUG Comparing 4.15.0-117 with
2020-10-11 18:36:37,071 DEBUG Comparing 4.15.0-118 with 4.15.0-117
2020-10-11 18:36:37,824 DEBUG /openCache(), new cache size 99980
以下是 的反向包依赖项colord
:
$ apt-cache rdepends colord
colord
Reverse Depends:
colord-sensor-argyll
gnome-control-center
colord:i386
cups-filters
colord:i386
cups-daemon
colord:i386
cups
colord:i386
xiccd
colord:i386
krita
colord:i386
gnome-color-manager
colord:i386
foomatic-filters
colord:i386
dispcalgui
colord:i386
diffoscope
colord:i386
colord-sensor-argyll
colord:i386
colord-sensor-argyll
colord-data
colord-sensor-argyll
colord:i386
argyll
colord:i386
libcolord2
colord:i386
libcolord-gtk1
colord:i386
gnome-control-center
colord:i386
cups-filters
colord:i386
cups-daemon
colord:i386
cups
colord:i386
colord-data
我最近遇到了分段错误问题,mesa
并从ppa:kisak/kisak-mesa
. 这可能会导致现在的升级问题。
colord
如果我删除包会发生以下情况:
$ sudo apt-get remove colord
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apg colord-data gnome-control-center-faces gnome-online-accounts libcolorhug2 libnss-myhostname linux-headers-4.15.0-117 linux-headers-4.15.0-117-generic
linux-image-4.15.0-117-generic linux-modules-4.15.0-117-generic linux-modules-extra-4.15.0-117-generic python3-macaroonbakery python3-nacl
python3-protobuf python3-pymacaroons python3-rfc3339 ubuntu-system-service
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
colord gnome-control-center ubuntu-desktop
0 upgraded, 0 newly installed, 3 to remove and 8 not upgraded.
After this operation, 5,782 kB disk space will be freed.
Do you want to continue? [Y/n]
这听起来不是一个好主意,因为上次我删除ubuntu-desktop
UI 时不再启动。请参阅链接的帖子。
问题
如何解决升级问题而不冒分段错误重生的风险?