apt-get update with public key not available warning

Question:

W: GPG error: http://ftp.us.debian.org sid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems

Answer:

xguan@p4:~$ gpg –keyserver subkeys.pgp.net –recv-keys 9AA38DCD55BE302B
gpg: requesting key 55BE302B from hkp server subkeys.pgp.net
gpg: /home/xguan/.gnupg/trustdb.gpg: trustdb created
gpg: key 55BE302B: public key “Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
xguan@p4:~$ gpg -a –export 55BE302B | sudo apt-key add -
OK
xguan@p4:~$

Leave a Reply

You must be logged in to post a comment.