在 18.04 上运行,尝试时出现sudo do-release-upgrade -d以下错误:
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server.
Run Code Online (Sandbox Code Playgroud)
我看过很多帖子要重新安装 sudo apt-get install --reinstall ubuntu-keyring
我做了,没有结果。
我从http://mirrors.linode.com/ubuntu/dists/focal-proposed/main/dist-upgrader-all/20.04.18/手动下载了focal.tar.gz和focal.tar.gz.gpg
我确实运行了 gpg 检查
gpg --receive-keys 871920D1991BC93C
gpg --receive-keys 3B4FE6ACC0B21F32
gpg --verify focal.tar.gz.gpg focal.tar.gz
Run Code Online (Sandbox Code Playgroud)
看起来成功(有警告,但至少匹配)
gpg: Signature made mer. 08 avril 2020 19:38:12 CEST
gpg: using RSA key 3B4FE6ACC0B21F32
gpg: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 790B C727 7767 219C 42C8 6F93 3B4F E6AC C0B2 1F32
gpg: Signature made mer. 08 avril 2020 19:38:12 CEST
gpg: using RSA key 871920D1991BC93C
gpg: Good signature from "Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: F6EC B376 2474 EDA9 D21B 7022 8719 20D1 991B C93C
Run Code Online (Sandbox Code Playgroud)
不知道我可以尝试使升级接受文件,以及继续进行的过程。
我不想遵循这个建议:手动更改源定义,/sf/ask/4367161081/ -或-wi
我正在运行这台 ubuntu 机器作为“任何用户的可维护性测试”,所以我的挑战不是调整。为此,我的主电脑运行 arch ;)
所以,我正在寻找一种尽可能容易解释和重现的方法来解决这个问题。
谢谢 !
笔记
我可以手动修改 apt-key
gpg --receive-keys 3B4FE6ACC0B21F32
gpg --receive-keys 871920D1991BC93C
gpg --export 790BC7277767219C42C86F933B4FE6ACC0B21F32 > 1.gpg
gpg --export F6ECB3762474EDA9D21B7022871920D1991BC93C > 2.gpg
sudo apt-key add 1.gpg
sudo apt-key add 2.gpg
Run Code Online (Sandbox Code Playgroud)
但这不是我应该做的事情......是吗?即便如此,它后来还是失败了
Updating repository information
Hit http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive focal InRelease
Hit http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive focal-security InRelease
Hit http://archive.canonical.com/ubuntu focal InRelease
Fetched 0 B in 0s (0 B/s)
(appstreamcli:1444): GLib-CRITICAL **: 19:08:37.593: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed
(appstreamcli:1444): GLib-CRITICAL **: 19:08:37.593: g_variant_new_variant: assertion 'value != NULL' failed
(appstreamcli:1444): GLib-ERROR **: 19:08:37.594: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)
Run Code Online (Sandbox Code Playgroud)
我当然可以等待 20.04.1 发布,但是......这是一种奇怪的行为。
看起来没有找到 repo 信息,Fetched 0 B in 0s (0 B/s) 但是当我手动浏览 repo 时,事情就在那里。
我尝试从 18.04 升级到 20.04 并遇到相同的错误。
问题是“仿生更新”频道在我/etc/apt/sources.list只有“仿生”和“仿生安全”的情况下不活跃。
在sources.list中添加一行后:
deb http://hu.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
Run Code Online (Sandbox Code Playgroud)
sudo apt update && sudo apt dist-upgrade安装了大约 300 多个软件包,然后就可以do-release-upgrade工作了。
| 归档时间: |
|
| 查看次数: |
5748 次 |
| 最近记录: |