apt中GPG错误的解决
apt中GPG错误的解决
加入ppa源后,出现了GPG错误
GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY CB2F6C86F77B1CA9
Google了一下后,解决办法如下:
gpg --keyserver keyserver.ubuntu.com --recv CB2F6C86F77B1CA9
gpg --export --armor CB2F6C86F77B1CA9 | apt-key add -
gpg --export --armor CB2F6C86F77B1CA9 | apt-key add -
其中的Key可能会不一样。
另:
有时候,有些网站上就有GPG key,这时可以用wget直接下来导入。如
wget http://apt.pearsoncomputing.net/public.gpg -O- | sudo apt-key add -