我决定升级
sudo update-manager -d
然后打开更新管理器 GUI。单击升级按钮后,将返回以下错误列表:
W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32,
W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32,
E:Some index files failed to download. They have been ignored, or old ones used instead.
如何解决这个问题?
答案1
此警告意味着您没有这些存储库的相应公钥。
W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32,
W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32,
验证这些密钥确实是您需要的。在本例中:
➜ ~ gpg --keyserver hkp://keyserver.ubuntu.com --search-key 3B4FE6ACC0B21F32
gpg: searching for "3B4FE6ACC0B21F32" from hkp server keyserver.ubuntu.com
(1) Ubuntu Archive Automatic Signing Key (2012) <[email protected]>
4096 bit RSA key C0B21F32, created: 2012-05-11
Keys 1-1 of 1 for "3B4FE6ACC0B21F32". Enter number(s), N)ext, or Q)uit >
ID 对应于 Ubuntu Archive。奇怪的是你缺少这些密钥。这通常可以通过以下方法修复:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
此后,运行sudo apt-get update
并确保没有出现其他警告/错误。