我想要从 Ubuntu 20.10 更新到 21.04。
当我第一次尝试时,出现了一个错误:
W: GPG error: http://ddebs.ubuntu.com groovy Release: The following signatures were invalid: EXPKEYSIG C8CAB6595FDFF622 Ubuntu Debug Symbol Archive Automatic Signing Key (2016) <[email protected]>
E: The repository 'http://ddebs.ubuntu.com groovy Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ddebs.ubuntu.com groovy-updates Release: The following signatures were invalid: EXPKEYSIG C8CAB6595FDFF622 Ubuntu Debug Symbol Archive Automatic Signing Key (2016) <[email protected]>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ddebs.ubuntu.com groovy-proposed Release: The following signatures were invalid: EXPKEYSIG C8CAB6595FDFF622 Ubuntu Debug Symbol Archive Automatic Signing Key (2016) <[email protected]>
看起来密钥已经过期了。(耸肩)
我固定的通过这样做:
sudo apt install --reinstall ubuntu-dbgsym-keyring
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
sudo apt-get update
但它只去掉了那部分。
当我尝试发生sudo dist-upgrade
这种情况时:
sudo apt dist-upgrade
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
dh-python
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
所以我不明白为什么它没有更新到 21.04
拜托,有人吗?提前谢谢了。
答案1
您没有使用正确的命令。
您应该运行的命令是sudo do-release-upgrade
。
apt dist-upgrade
是完全不同的东西。