Monday, October 10, 2011

How To Overcome GPG Errors on Ubuntu Linux (Lucid 10.04)

If you ever got the GPG errors while updating your Ubuntu sources, here's what you have to do to overcome it:

Example of the error might be like this:
W: GPG error: lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF4186FE247510BE
And you just need to execute these two commands:
# gpg --keyserver hkp:// --recv-keys KEY
# gpg --export --armor KEY | sudo apt-key add -
Just replace ke KEY with the one that exist on the error. According to the example, the command should be like this:
# gpg --keyserver hkp:// --recv-keys EF4186FE247510BE
gpg: requesting key 247510BE from hkp server
gpg: key 247510BE: public key "Launchpad PPA for Ubuntu Mozilla Daily Build Team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

# gpg --export --armor EF4186FE247510BE | sudo apt-key add -
Then you can continue with:
# apt-get update
That's it. Why don't you try it yourself now :)

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)