没有���用的公钥

我决定升级。
sudo update-manager -d

然后它会打开更新管理器的图形界面。点击升级按钮后,会返回以下错误列表:
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) <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并确保没有其他警告/错误出现。

1主人回答。我希望这不会暗示服务器上的有趣行为或漏洞。 - tread
在我的情况下,只是一个第三方存储库的公钥已过期。上述步骤安装了新的公钥,然后我的 apt-get update 成功完成了。 - Craig Constantine