从 18.04 升级到 20.04 时遇到“执行脚本 APT::Update::Post-Invoke-Success 时出现问题”的问题

ale*_*dam 6 upgrade desktop-environments 20.04

我目前陷入从 18.04 到 20.04 的升级过程中,无法继续。

\n\n
    \n
  1. 文本:An upgrade might not succeed. Do you want to continue anyway?
  2. \n
  3. 我按[y]es
  4. \n
  5. Some third party entries in your sources.list were disabled. [\xe2\x80\xa6] To continue please press [ENTER]
  6. \n
  7. 我按[ENTER]
  8. \n
  9. 错误“ ”在“ ”和“ ”appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS之间出现几次。如下:Hit http://security.ubuntu.com/ubuntu focal-security InReleaseHit http://ch.archive.ubuntu.com/ubuntu focal InRelease
  10. \n
\n\n
E:Problem executing scripts APT::Update::Post-Invoke-Success \'if\n/usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;\nthen appstreamcli refresh-cache > /dev/null; fi\', E:Sub-process\nreturned an error code\n\nRestoring original system state\n\nAborting\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\n=== Command terminated with exit status 1 (Thu Apr 30 11:54:41 2020) ===\n
Run Code Online (Sandbox Code Playgroud)\n\n

现在,如果我按[r](“复活窗口”),循环将再次开始。

\n\n

升级循环屏幕记录

\n\n

PS:似乎还有官方问题1873713,但似乎还没有任何记录的解决方案。

\n\n

PPS:我也想知道While scanning your repository information no entry about eoan could be found.在这个升级循环中看到什么。因为Eoan Ermine 似乎是 19.10,而我是从 18.04 LTS 更新到 20.04 LTS。它本身看起来像ubuntu-release-upgraderbug 1851040

\n

ale*_*dam 6

if /usr/bin/test -w /var/cache/app-info \xe2\x80\xa6我在文件中注释掉了/etc/apt/apt.conf.d/50appstream

\n\n

后来 GDM 出现并且不让我登录(尽管我正在使用 lightdm)。\n虽然我第二次陷入困境并不得不终止更新进程,但我还是能够完成安装。我确信如果我使用的话会更好

\n\n
sudo do-release-upgrade -f DistUpgradeViewNonInteractive\n
Run Code Online (Sandbox Code Playgroud)\n\n

相反(注意该DistUpgradeViewNonInteractive选项!)。这是来自 @user.dz 的建议,但只有在您可以接受/etc并且~/.config将被覆盖的情况下才应该这样做。

\n\n

另外,如果您遇到此错误:

\n\n

查看

\n\n
sudo appstreamcli refresh-cache\n
Run Code Online (Sandbox Code Playgroud)\n\n

(也是来自@user.dz的建议)

\n