2009年3月18日星期三

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 -

其中的Key可能会不一样。

另:
有时候,有些网站上就有GPG key,这时可以用wget直接下来导入。如
wget http://apt.pearsoncomputing.net/public.gpg -O- | sudo apt-key add -

附,这是源 deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/ intrepid main 的GPG Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.7 (GNU/Linux)

mI0ESaSPtAEEAK1nJtoDZ0ewpOOf0ET6Vp28LqO9mB4ubWjzXyRSbiha5pCvnnSI
U1K+7Gzbt3r0iUV9eKLUmf8pqfF/9kwsoqFqFSCjp+XjUzXsEChcGBWvyfGdTX8C
lFfwNxSVLvGSqmdXgZhs0F8tQB0lPWHGy3VvEt7wG/VHqpcOYpdNYRqxABEBAAG0
IExhdW5jaHBhZCBQUEEgZm9yIGNocm9taXVtLWRhaWx5iLYEEwECACAFAkmkj7QC
GwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRBam/O7Tl4XtV/2BACs/RTpEWB/
NUlluJmp1e6iFoyyfbT+HOD3hg35aQMzbdcmijsAiY9MvIfZ0YKWyqNUdGpDj5n0
bUNO0IcvKBBkOn5o4CiBsMp4DJHdrgJU4S00nAJK00E8I/yAv+x4C9uOacW3yrzS
Hs7Hv/vG6Z1Jh+1JrabK13hdhwOL8+aY6Q==
=3GDx
-----END PGP PUBLIC KEY BLOCK-----

没有评论: