2

我的系统是 Ubuntu 16.04。

当我跑

apt-get update

它失败并出现以下错误:</p>

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

获取 pubkey 但再次失败并出现以下错误:

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

经过多次搜索和尝试,我仍然不知道如何解决。

4

1 回答 1

2

I've faced with same problem, and I've fix this by check this :

  • If your internet connection is behind some Authentication gate or proxy

    Make sure that you have login to the authentication gate, or export the proxy so the terminal can communicate to the public key server

UPDATE : Well, the authentication gate is depend on your internet provider. It is used to be a website login page.

Or, you can enter this to use proxy in your terminal :

export http_proxy='http://<proxyserveraddress>:<portnumber>'    
export https_proxy='https://<proxyserveraddress>:<portnumber>'
于 2018-05-03T08:50:19.447 回答