apt 0.6以后,apt开始检查安装包的数字签名,如果没有符号的签名,则报出如下错误:
W: GPG error: http://mirrors.geekbone.org testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
我的解决办法如下:
1. 使用gpg去下载特定的key:gpg --keyserver pgpkeys.mit.edu --recv-key 2D230C5F
2. 使用apt-key将key加入trust:gpg -a --export 2D230C5F | sudo apt-key add -
可以使用apt-key list 查看已经安装的keys.
详细请参考http://www.debian.org/doc/manuals/securing-debian-howto/ch7.en.html#s-apt-0.6
W: GPG error: http://mirrors.geekbone.org testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
我的解决办法如下:
1. 使用gpg去下载特定的key:gpg --keyserver pgpkeys.mit.edu --recv-key 2D230C5F
2. 使用apt-key将key加入trust:gpg -a --export 2D230C5F | sudo apt-key add -
可以使用apt-key list 查看已经安装的keys.
详细请参考http://www.debian.org/doc/manuals/securing-debian-howto/ch7.en.html#s-apt-0.6