apt-get update出现NO_PUBKEY错误怎么办?

来源:互联网 发布:如何测试导航端口 编辑:程序博客网 时间:2024/05/17 19:14

今天在安装软件前前进行apt-get update进行apt库的升级,时出现了以下错误:

W: GPG error: http://debian.cn99.com etch Release: The following signatures coul                                              dn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE                                              302B
W: GPG error: http://security.debian.org etch/updates Release: The following sig                                              natures couldn't be verified because the public key is not available: NO_PUBKEY                                               9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems

 

上网找到的解决方法:

 

首先获得key:
#gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 9AA38DCD55BE
然后:
#gpg --armor --export F1D53D8C4F368D5D | apt-key add -

 

#apt-get update

 

后一切正常。

原创粉丝点击