您的位置:首页 > 大数据 > 人工智能

GPG error: the public key is not available

2014-02-25 14:22 399 查看


GPG error: The following signatures couldn't be verified because the public key is not available

I have had it happen on several occasions where I try to update software and I get a GPG error like this:

$ sudo apt-get update
W: GPG error: http://inverse.ca lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 06FD0B51C1FF59BB


If you ever run into an issue similar to this when running apt-get update, take the GPG key fingerprint (in the above example the fingerprint is 06FD0B51C1FF59BB) and attempt to retrieve it from the Ubuntu keyserver, then add it to your aptitude keys:

$ gpg --keyserver keyserver.ubuntu.com --recv 06FD0B51C1FF59BB
gpg: requesting key C1FF59BB from hkp server keyserver.ubuntu.com
gpg: key C1FF59BB: public key "Inverse Support (package signing) <support@inverse.ca>" imported
gpg: Total number processed: 1
gpg:               imported: 1


So, the key was found, now add it to our aptitude keys:

$ gpg --export --armor 06FD0B51C1FF59BB | sudo apt-key add -


Now, when you run apt-get update you should have no errors.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: