红联Linux门户
Linux帮助

Debian:“没有可用的公钥”

发布时间:2007-07-01 00:20:55来源:红联作者:MicsDembly
今天做了一个update出现问题:
databackup:~# aptitude update
读取:1 http://debian.cn99.com testing Release.gpg [378B]
命中 http://debian.cn99.com testing Release
命中 http://debian.cn99.com testing/main Packages/DiffIndex
命中 http://debian.cn99.com testing/main Sources/DiffIndex
读取:2 http://security.debian.org stable/updates Release.gpg [189B]
命中 http://security.debian.org stable/updates Release
忽略 http://security.debian.org stable/updates/main Packages/DiffIndex
忽略 http://security.debian.org stable/updates/main Packages
命中 http://security.debian.org stable/updates/main Packages
已下载 2B,耗时 10s (0B/s)
正在读取软件包列表... 完成
W: 以下 key ID 没有可用的公钥:
A70DAF536070D3A1
W: 您可能需要运行 apt-get update 来解决这些问题

google一下在国外网站发现这样的解决办法:
办法1:
# gpg --recv-key A70DAF536070D3A1
# gpg --export A70DAF536070D3A1 | apt-key add -
不成功。
办法2:
用如下命令
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys A70DAF536070D3A1 && apt-key add /root/.gnupg/pubring.gpg && apt-get update
成功!
文章评论

共有 0 条评论