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

If you come across this error after running aptitude update

W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available:
NO_PUBKEY 7D2C7A23BF810CD5
W: You may want to run apt-get update to correct these problems

due to a missing GPG key do the following to correct the problem

gpg --keyserver subkeys.pgp.net --recv 7D2C7A23BF810CD5

Replace the key number “7D2C7A23BF810CD5” with the one included in your error message

gpg --export --armor 7D2C7A23BF810CD5 | sudo apt-key add -

After that, the key will be added to a list and the error will not reappear.

33 thoughts on “Ubuntu GPG error: http://ppa.launchpad.net

  1. Oxes

    Thanks was help full, a note: If you can’t get the key with any server, check that your firewall allow acces to port 11371, this is the gpg’s port.

    Reply
  2. Pingback: Linux PUB Key error « Fellixombc's Official Blog!

  3. Pingback: Linux PUB Key error « Fellixombc's Official Blog!

  4. Philipp

    Thx a lot!

    For me, the following worked (adopted from Tomasz above, with 2 sudo less):

    sudo apt-get update 2> /tmp/keymissing 1> /dev/null; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "nProcessing key: $key"; gpg --keyserver subkeys.pgp.net --recv $key && gpg --export --armor $key | sudo apt-key add -; done; rm /tmp/keymissing

    Other keyservers to try, if keyserver.ubuntu.com or subkeys.pgp.net are offline:

    keyserver hkp://subkeys.pgp.net
    keyserver hkp://pgp.mit.edu
    keyserver hkp://pool.sks-keyservers.net (random server)
    keyserver hkp://keys.nayr.net
    keyserver http://keys.gnupg.net
    keyserver http://wwwkeys.xx.pgp.net where xx is a two-letter country code.

    (from Launchpad )

    Reply
  5. Pingback: Ubuntu GPG error: http://ppa.launchpad.net : Linux T&T

  6. cp

    Yes, thanks!!

    Although it was anti-climactic to finally fix this annoyance, and after typing the last command all it says is “OK”. 🙂

    Reply
  7. Pingback: Gentoo Blog » Upgrade Debian Etch to Debian Lenny

  8. Matthew Bugno

    Thank you for your effort with this. Major irritation solved. I humble myself before you. I have copied your solution for reference.

    Vielen Dank für Ihre Mühe mit diesem. Major Reizung gelöst. Ich mich bescheiden, bevor Sie. Ich habe kopiert Ihre Lösung für die Bezugnahme ..

    Reply
  9. Tomasz W. Koz?owski

    You might also try the following code (as published at forum.ubuntu.pl):

    sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "nProcessing key: $key"; sudo gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | sudo apt-key add -; done

    Reply
  10. derblitz

    Bei mir war es der Key:

    W: GPG error: http://ppa.launchpad.net intrepid Release: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 60D11217247D1CFF

    Wie oben beschrieben vorgrangen:

    gpg –keyserver subkeys.pgp.net –recv 60D11217247D1CFF

    gpg –export –armor 60D11217247D1CFF | sudo apt-key add –

    Nun klappt es wieder.
    Danke für die Anleitung.

    Reply
  11. Oddin

    gpg –keyserver subkeys.pgp.net –recv 778978B00F7992B0
    gpg: requesting key 0F7992B0 from hkp server subkeys.pgp.net
    gpg: waiting for lock (held by 6153 – probably dead) …
    gpg: waiting for lock (held by 6153 – probably dead) …
    ^C
    gpg: Interrupt caught … exiting

    Who is dead?

    Reply

Leave a Reply

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