示例(使用Debian Wheezy):
sudo apt-get source hello
结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 705 kB of source archives.
Get:1 http://ftp.us.debian.org/debian/ testing/main hello 2.8-3 (dsc) [1287 B]
Get:2 http://ftp.us.debian.org/debian/ testing/main hello 2.8-3 (tar) [697 kB]
Get:3 http://ftp.us.debian.org/debian/ testing/main hello 2.8-3 (diff) [6598 B]
Fetched 705 kB in 8s (80.6 kB/s)
gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made Wed Feb 13 10:30:20 2013 UTC using RSA key ID 9F1B8B32
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./hello_2.8-3.dsc
dpkg-source: info: extracting hello in hello-2.8
dpkg-source: info: unpacking hello_2.8.orig.tar.gz
dpkg-source: info: unpacking hello_2.8-3.debian.tar.gz
已安装dpkg-dev和debian-keyring软件包。
我尝试以root身份运行apt-get source作为用户,事先使用“gpg --recv-keys 9F1B8B32”作为用户和root用户。没有任何帮助来验证下载的源代码。
如何摆脱这个“dpkg-source:警告:未能验证签名”警告?
gpg --keyserver keyring.debian.org --recv-keys 9F1B8B32
?