升级至 20.04 时身份验证失败

升级至 20.04 时身份验证失败
$ sudo do-release-upgrade -d 
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1,554 B]                                                                                                 
Get:2 Upgrade tool [1,342 kB]                                                                                                          
Fetched 1,343 kB in 6s (84.2 kB/s)                                                                                                     
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. 

仅供参考:我已经尝试过了sudo apt-get install --reinstall ubuntu-keyring。我也尝试过将服务器更改为“主服务器”,但仍然不起作用。

答案1

我不确定是否应该推荐接受的答案,因为我想正常升级过程还会做很多其他的事情?

我遇到了与原始发帖人相同的问题,发现是缺少(未记录)gpg 密钥。据我所知,我安装的系统非常老旧,多年来一直在从 13.10 安装更新,所以我猜这就是为什么存在一些公钥问题。

首先我检查了两个文件apt-key verify focal.tar.gz.gpg focal.tar.gz

这表明缺少一个密钥来检查签名。

如果您的文件夹中没有此文件,tmp您可以下载它们并进行验证:

http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz.gpg

gpgv: Signature made jeu. 03 sept. 2020 15:23:39 CEST
gpgv:                using RSA key 3B4FE6ACC0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) [email protected]"
gpgv: Signature made jeu. 03 sept. 2020 15:23:39 CEST
gpgv:                using RSA key 871920D1991BC93C
gpgv: Can't check signature: No public key

然后我通过以下方式添加了丢失的公钥:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C

此后更新运行正常。

答案2

现在我可以在替换以下内容后升级到 ubuntu 20.04/etc/apt/sources.list

deb http://in.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse

deb http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

相关内容