我的系统是Ubuntu 16.04。
当我运行时
apt-get update
失败并出现以下错误:
the following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1C52189C923F6CA9
所以我跑了:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C52189C923F6CA9
获取公钥但再次失败并出现以下错误:
keyserver.ubuntu.com
--recv-keys
1C52189C923F6CA9
gpg: requesting key 923F6CA9 from hkp server keyserver.ubuntu.com
gpgkeys: key 1C52189C923F6CA9 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
经过多次查找和尝试,仍然不知道如何解决。
最佳答案
我遇到了同样的问题,我已经通过检查解决了这个问题:
如果您的互联网连接位于某些身份验证门或代理后面
确保您已登录认证门,或导出代理以便终端可以与公钥服务器通信
更新:嗯,身份验证门取决于您的互联网提供商。它曾经是一个网站登录页面。
或者,您可以输入此内容以在终端中使用代理:
export http_proxy='http://<proxyserveraddress>:<portnumber>'
export https_proxy='https://<proxyserveraddress>:<portnumber>'
关于ubuntu - 从 hkp 服务器获取 key 但失败,因为 "unknown pubkey algorithm",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46470051/