问题描述
我决定升级
sudo update-manager -d
然后,打开update-manger 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.
如何解决这个问题?
最佳答案
此警告意味着您没有这些存储库的相应公钥。
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) <ftpmaster@ubuntu.com>
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存档。缺少这些键很奇怪。通常使用以下方法解决此问题:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
此后,运行sudo apt-get update
并确保没有其他警告/错误出现。