当我运行时apt-get update
,收到以下错误消息:
Err:18 http://dl.google.com/linux/chrome/deb stable Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
我知道导致此问题的原因。我想知道如何修复它。
编辑:
我尝试了重复链接中提供的最多支持的解决方案:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
我遇到了这个新问题,根据我看到的帖子,该网站似乎尚未解决这个问题:
Executing: /tmp/tmp.jyolnTyZuJ/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
6494C6D6997C215E
gpg: requesting key 997C215E from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
答案1
我想分享我的发现这里(运行在港口80):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6494C6D6997C215E
这是成功的:
Executing: /tmp/tmp.BX24beQ8ze/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
6494C6D6997C215E
gpg: requesting key 997C215E from hkp server keyserver.ubuntu.com
gpg: key D38B4796: "Google Inc. (Linux Packages Signing Authority) <[email protected]>" 3 new signatures
gpg: key D38B4796: "Google Inc. (Linux Packages Signing Authority) <[email protected]>" 1 new subkey
gpg: Total number processed: 1
gpg: new subkeys: 1
gpg: new signatures: 3
然后我跑了sudo apt-get update
,一切都很顺利。