error: W: GPG error: http://ppa.launchpad.net

posted May 10, 2012, 8:33 AM by Unknown user
error: W: GPG error: http://ppa.launchpad.net maverick Release: The
following signatures couldn't be verified because the public key is
not available: NO_PUBKEY
Ever get an error during an Apt update like this? error: W: GPG error:
http://ppa.launchpad.net maverick Release: The following signatures
couldn't be verified because the public key is not available:
NO_PUBKEY 6E871C4A881574DE

Essentially you are getting this error because you are missing a key
from the repository / Key Server.

If you are using Ubuntu, this is a fairly easy fix.

The big thing to check is to make sure that you have TCP port number
11371 open. If you are using a Linux or BSD based firewall make sure
you make a NAT/Packet Filter rule to allow computers from inside to
access the keyserver on that port.

You will need to know the key server name, which is easy....
keyserver.ubuntu.com and the IP of that server which is: 91.189.89.49

Once you have the firewall all set up, then open terminal on your
linux box and either copy / paste or carefully type in the following:
wget -q "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x6E871C4A881574DE"
-O- | sudo apt-key add -

The error message you received doesn't have to be the one I have
generated for this post... just change your error to fit the above
template... change the part "6E871C4A881574DE" to be whatever your
error code was...

You should get a reply from Terminal saying "OK". Once that happens,
run Apt-Get Update again, and verify that everything is good to go.
Comments