user-avatar
Today is Saturday
April 27, 2024

June 24, 2010

GPG key error while doing apt-get update

by viggy — Categories: ubuntu — Tags: , , , 2 Comments

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.

2 Comments »

  1. Seb says:

    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

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

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>