由于 PPA,升级到 Ubuntu 20.04 失败。如何进行?

kra*_*r65 5 upgrade package-management apt ppa do-release-upgrade

我在 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'
Run Code Online (Sandbox Code Playgroud)

kra*_*r65 6

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

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.'
Run Code Online (Sandbox Code Playgroud)

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

sudo apt install ack-grep
ack "ERROR Dist-upgrade failed" /var/log/dist-upgrade/
Run Code Online (Sandbox Code Playgroud)

这给出了这个输出:

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.'
Run Code Online (Sandbox Code Playgroud)

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

sudo apt purge postgresql-12-postgis-3
sudo apt purge postgresql-11-postgis-2.5
Run Code Online (Sandbox Code Playgroud)

之后升级现在继续安装..

  • 也许使用 `grep` 会给你同样的结果,你不需要安装另一个包 `grep -r 'ERROR Dist-upgrade failed' /var/log/dist-upgrade/`(虽然,这将搜索以前的 dist - 带有日期的子目录中的升级日志) (3认同)