Ubuntu GPG签名验证错误解决办法

最近运行sudo apt-get update时遇到警告,英文系统:
W: GPG error: http://download.bitdefender.com bitdefender Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A373FB480EC4FE05
W: You may want to run apt-get update to correct these problems

中文系统显示如下:
GPG签名验证错误: http://packages.medibuntu.org intrepid Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 2EBC26B60C5A2783

类似于这样的问题,我肯定不是第一个遇到的,google里一搜索,马上就有答案了。
解决方法:
gpg –keyserver subkeys.pgp.net –recv 0EC4FE05
gpg –export –armor 0EC4FE05 | sudo apt-key add -

说明:
若缺少其他公钥,则将命令中两处0EC4FE05改为NO_PUBKEY A373FB480EC4FE05中最后8位即可!

xxxx@ubuntu:~$ gpg --keyserver subkeys.pgp.net --recv 0EC4FE05
gpg: directory `/home/xxxx/.gnupg' created
gpg: new configuration file `/home/xxxx/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/xxxx/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/xxxx/.gnupg/secring.gpg' created
gpg: keyring `/home/xxxx/.gnupg/pubring.gpg' created
gpg: requesting key 0EC4FE05 from hkp server subkeys.pgp.net
gpg: /home/xxxx/.gnupg/trustdb.gpg: trustdb created
gpg: key 0EC4FE05: public key "BitDefender Packages " imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
xxxx@ubuntu:~$ gpg --export --armor 0EC4FE05 | sudo apt-key add -
OK

问题解决!记录于此。

2 comments to Ubuntu GPG签名验证错误解决办法

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

我的信条

生命在于折腾,生命不息,折腾不止

按月存档