Thursday, July 23, 2009
如何解决 Debian / Ubuntu 更新源时的GPG问题
如果你在 Debian / Ubuntu 中添加了新的apt源,那么经常会遇到如下的错误信息:
smartkenny@loongson:~$ sudo apt-get update
............
W: GPG error: ftp://ftp.uni-kl.de testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: ftp://ftp.uni-kl.de unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems
可以运行下面两个命令来解决这个问题:
smartkenny@loongson:~$ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 07DC563D1F41B907
smartkenny@loongson:~$ sudo apt-key add .gnupg/pubring.gpg
smartkenny@loongson:~$ sudo apt-get update
............
W: GPG error: ftp://ftp.uni-kl.de testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: ftp://ftp.uni-kl.de unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems
可以运行下面两个命令来解决这个问题:
smartkenny@loongson:~$ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 07DC563D1F41B907
smartkenny@loongson:~$ sudo apt-key add .gnupg/pubring.gpg