由于 PPA,升级到 Ubuntu 20.04 失败。该怎么办?

由于 PPA,升级到 Ubuntu 20.04 失败。该怎么办?

我使用的是 Ubuntu 19.10,我想升级到 20.04。不幸的是,升级失败,并显示一条消息,提示“可能由于 Ubuntu 未提供的非官方软件包而失败“(从荷兰语翻译而来)。

通知建议使用ppa-purge从 Launchpad PPA 中删除软件“。它没有指定哪个 PPA,因此我检查了日志文件/var/log/dist-upgrade/20200528-1225/main.log。但在那里我没有看到任何问题。以下是完整的 main.log 文件的粘贴。我将日志文件的末尾粘贴在下面。

有人知道我该如何解决这个问题,以便我可以升级到 20.04?

2019-10-30 16:00:15,624 DEBUG Start checking for obsolete pkgs
2019-10-30 16:00:21,655 DEBUG package 'multiarch-support' produces an unwanted removal 'nextcloud-client', skipping
2019-10-30 16:00:22,705 DEBUG 'multiarch-support' scheduled for remove but not safe to remove, skipping
2019-10-30 16:00:26,392 DEBUG package 'libgnome-keyring0' produces an unwanted removal 'nextcloud-client', skipping
2019-10-30 16:00:27,797 DEBUG 'libgnome-keyring0' scheduled for remove but not safe to remove, skipping
2019-10-30 16:00:28,098 DEBUG package 'libjson-c3' produces an unwanted removal 'libisccfg160', skipping
2019-10-30 16:00:29,442 DEBUG 'libjson-c3' scheduled for remove but not safe to remove, skipping
2019-10-30 16:00:31,026 DEBUG package 'libgnome-keyring-common' produces an unwanted removal 'nextcloud-client', skipping
2019-10-30 16:00:32,251 DEBUG 'libgnome-keyring-common' scheduled for remove but not safe to remove, skipping
2019-10-30 16:00:33,215 DEBUG Finish checking for obsolete pkgs
2019-10-30 16:00:33,273 DEBUG The following packages are marked for removal: libx265-165 linux-modules-4.15.0-1056-oem liblvm2cmd2.02 libglade2-0 libjpeg-turbo-progs gir1.2-mutter-4 ifupdown libparse-debianchangelog-perl libapt-inst2.0 libobjc-8-dev libllvm8 gir1.2-clutter-1.0 libcrystalhd3 openjfx-source libgupnp-1.0-4 ubuntu-wallpapers-cosmic libgtksourceview-3.0-common libip6tc0 pppoeconf libmutter-4-0 example-content command-not-found-data libapt-pkg5.0 ubuntu-wallpapers-disco libisl19 libvpx5 linux-oem-headers-4.15.0-1056 gir1.2-clutter-gst-3.0 gnome-calculator gir1.2-cogl-1.0 libgnome-desktop-3-17 g++-8 gir1.2-gtksource-3.0 xscreensaver-data python3-evdev liblouisutdml8 liblvm2app2.2 chromium-codecs-ffmpeg-extra linux-headers-4.15.0-1056-oem libgssdp-1.0-3 linux-image-4.15.0-1056-oem libigdgmm5 libmysqlclient20 libgtksourceview-3.0-1 libhtml-template-perl gir1.2-coglpango-1.0 libebook-contacts-1.2-2 libphobos2-ldc-shared82 libtagc0 libgeos-3.7.1 pppconfig libecal-1.2-19 libpoppler85 libip4tc0 openjfx libgtkspell3-3-0 gir1.2-gtkclutter-1.0 libreoffice-avmedia-backend-gstreamer libdouble-conversion1
2019-10-30 16:01:14,154 INFO cache.commit()
2019-10-30 16:01:34,131 DEBUG quirks: running PostCleanup
2019-10-30 16:01:34,131 DEBUG running Quirks.PostCleanup
2019-10-30 16:01:34,132 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'

答案1

好的,我找到了这个答案,建议在日志中搜索如下行:

2013-10-17 15:00:30,543 ERROR Dist-upgrade failed: 'The package 'xubuntu-desktop' is marked for removal but it is in the removal blacklist.'

对于未来的读者,这就是我所做的。我进行了如下搜索:

sudo apt install ack-grep
ack "ERROR Dist-upgrade failed" /var/log/dist-upgrade/

输出结果如下:

ack: apt-clone_system_state.tar.gz: cannot open file for reading
main.log 
115:2020-05-28 13:59:48,248 ERROR Dist-upgrade failed: 'The package 'postgresql-12-postgis-3' is marked for removal but it is in the removal blacklist.'

20200528-1350/main.log 
117:2020-05-28 13:48:27,555 ERROR Dist-upgrade failed: 'The package 'postgresql-11-postgis-2.5' is marked for removal but it is in the removal blacklist.'

然后我卸载了这些软件包:

sudo apt purge postgresql-12-postgis-3
sudo apt purge postgresql-11-postgis-2.5

此后升级正在继续安装..

相关内容