My 2 paisas

GPG key error while doing apt-get update

Posted on: June 24, 2010

I had entered a new repository path in my sources.list file and hence I did

sudo apt-get update

However I got the following error:

W: GPG error: http://hudson.gotdns.com binary/ Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9B7D32F2D50582E6
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 10975893E549B1AC

When I looked for a solution on internet, I found the following solution to add the gpg key in my system.

NOTE: This can only be done by a root user, hence in Ubuntu, u will have to do sudo su before executing these commands.

root@vignesh-laptop:gpg --keyserver pgpkeys.mit.edu --recv-key 9B7D32F2D50582E6
gpg: requesting key E549B1AC from hkp server pgpkeys.mit.edu
gpg: key E549B1AC: public key "Launchpad yorba" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

This will request key from the server mentioned in –keyserver and display whose public key it is.

After this execute the following command. This will store the the gpg key in your system as a trusted gpg.

root@vignesh-laptop:/home/vignesh# gpg --armor --export 10975893E549B1AC | apt-key add -
OK

Now do
sudo apt-get update
to successfully update from the newly added repositories.

Advertisements

2 Responses to "GPG key error while doing apt-get update"

Thanks for this. I managed to get this alright in the end but the second step didn’t do it for me;

# gpg –armor –export 10975893E549B1AC | apt-key add –
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.

Not sure why but I exited the root and did as user;

$ gpg –keyserver keyserver.ubuntu.com –recv 10975893E549B1AC
gpg: requesting key E549B1AC from hkp server keyserver.ubuntu.com
gpg: key E549B1AC: public key “Launchpad yorba” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
$ gpg –export –armor 10975893E549B1AC | sudo apt-key add –
OK

[…] that I managed to fix a repository key error that was bothering me. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Links that I liked to save

Blog Stats

  • 44,039 hits
%d bloggers like this: