很久不更新我的Debian的源信息了,今天一更新,发现报告如下错误:
W: GPG error: http://security.debian.org stable/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: GPG error: stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B NO_PUBKEY 4D270D06F42584E6
W: You may want to run apt-get update to correct these problems
经过查找,对于上面错误信息中出现的一串数字ID,类似于9AA38DCD55BE302B, 这些是某些KEY的ID。需要对上述的KEY执行以下两个命令,如果有多个KEY ID,重复执行以下两个步骤,即可.
gpg --keyserver subkeys.pgp.net --recv-keys KEY_ID
gpg -a --export KEY_ID |apt-key add -
注意:执行上面的命令需要root身份
阅读(2829) | 评论(0) | 转发(0) |