Debian: apt-get的pgp error
时间:2010-05-17 来源:zhengsheng2010
今天新装了一个debian,运行apt-get update 之后出现下面的错误,
W: GPG error: http://security.debian.org etch/updates Release: The following signatures 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
之前从来没遇到过,不知道咋回事。后来查阅了资料(http://wiki.debian.org/SecureApt),发现apt实际是用到了公钥签名的,可能是本地的签名已经过期导致,后来经过下面过程解决
1、到http://ftp-master.debian.org/keys.html下载最新的key : http://ftp-master.debian.org/keys/archive-key-5.0.asc
2、删除原来的key
~#: rm -rf /etc/apt/*.gpg
3、导入刚刚下载的key
~#: apt-key add archive-key-5.0.asc
问题解决~,另外,在其他论坛发现,如果系统时间设置错误(比如设置了将来的某一个时间),也有可能出现pgp认证错误。
相关阅读 更多 +
排行榜 更多 +