Hir*_*ren 4 upgrade seahorse do-release-upgrade 18.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.
Run Code Online (Sandbox Code Playgroud)
仅供参考:我已经试过了sudo apt-get install --reinstall ubuntu-keyring。我还尝试将服务器更改为“主服务器”,但它仍然对我不起作用。
我不确定是否应该推荐接受的答案,因为我想象正常的升级过程会做很多其他事情?
我遇到了与原始海报相同的问题,并发现它丢失了(未记录)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) ftpmaster@ubuntu.com"
gpgv: Signature made jeu. 03 sept. 2020 15:23:39 CEST
gpgv: using RSA key 871920D1991BC93C
gpgv: Can't check signature: No public key
Run Code Online (Sandbox Code Playgroud)
然后我通过以下方式添加了丢失的公钥: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
之后更新运行正常。
现在我可以在替换以下内容后升级到 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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1945 次 |
| 最近记录: |