jump to navigation

Adding new pgp keys to apt September 22, 2008

Posted by maxmil in : Debian,Security , trackback

I’ve had to search for this too many times its about time that i jot it down here.

After adding a new repository to my /etc/apt/sources.list i often get an error something like

W: GPG error: http://some.address Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXXXXXXXXX

The solution is a two liner

gpg --keyserver hkp://subkeys.pgp.net --recv-keys XXXXXXXXXX
gpg --export --armor XXXXXXXXXX | sudo apt-key add -

Where XXXXXXXXXX is the key in the original error message.


no comments yet - be the first?