Debian: apt-get NO_PUBKEY

Keyserver:
keyring.debian.org
pgpkeys.mit.edu
subkeys.pgp.net
keyserver.ubuntu.com

[root@MyBookLive ~]# apt-get update
[...]
W: GPG error: http://ftp.us.debian.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA NO_PUBKEY 64481591B98321F9
W: You may want to run apt-get update to correct these problems

[root@MyBookLive ~]# gpg --keyserver pgpkeys.mit.edu --recv-key AED4B06F473041FA
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key 473041FA from hkp server pgpkeys.mit.edu
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 473041FA: public key "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
[root@MyBookLive ~]# gpg --keyserver pgpkeys.mit.edu --recv-key 64481591B98321F9
gpg: requesting key B98321F9 from hkp server pgpkeys.mit.edu
gpg: key B98321F9: public key "Squeeze Stable Release Key <debian-release@lists.debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
[root@MyBookLive ~]# gpg -a --export AED4B06F473041FA | sudo apt-key add -
OK
[root@MyBookLive ~]# gpg -a --export 64481591B98321F9 | sudo apt-key add -
OK

Alternativ:

root@MyBookLive ~]# sudo apt-key adv --keyserver pgpkeys.mit.edu --recv-keys AED4B06F473041FA 64481591B98321F9
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver pgpkeys.mit.edu --recv-keys AED4B06F473041FA 64481591B98321F9
gpg: requesting key 473041FA from hkp server pgpkeys.mit.edu
gpg: requesting key B98321F9 from hkp server pgpkeys.mit.edu
gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" not changed
gpg: key B98321F9: "Squeeze Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: Total number processed: 2
gpg:              unchanged: 2

Leave a Reply

Your email address will not be published. Required fields are marked *