Fix your NO_PUBKEY PPA’s in a snap (or a script) [HOW TO]

Need the key ?

Adding a new PPA is quite a pain, and even after you add it, still you get ugly errors complaining the apt key is missing, and signature not being verified (this also leads to an obnoxious double confirmation from the gui updater). Stuff like this:

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 DAA9427DCBF475C3

Some people already got their ass bitten even here (and I’m quite happy other reader helped them faster than I could).

Well, now it’s over ! Nico has been kind enough to point out an UbuntuForums script to solve the issue once for all. Here’s the updated script.

Download the following script:

Launchpad Keys Update Script

extract the file (it should already be executable, in case of problems check it is in the properties of the file), open a terminal in the directory where you extracted the file and run

sudo ./launchpad-update

The script will fetch every PPA key you need from Launchpad and solve your update errors in one pass ! Should you have added other PPAs afterwards, simply re-run the script.

Note: it works only for Launchpad repositories !

[image credits]

This seems like a great time to subscribe my RSS !

5 responses to “Fix your NO_PUBKEY PPA’s in a snap (or a script) [HOW TO]”

  1. MetalElf0

    Thanks :)

  2. oldman

    I wrote a similar script to this, but mine is slightly more compact and copes with things like users who have multiple PPAs, you can get it here:
    http://bazaar.launchpad.net/~oldman/+junk/launchpad-update/files

  3. Zippie

    Great, many thanks! :)

  4. SantAnna

    I tried to enter in Nico’s blog and I was asked to enter the authorization (???)
    Do you know anything about?

    Thank you
    SantAnna

  5. Stefano Forenza

    @SantAnna: Now it works. The website was probably in maintenance.

Leave a Reply

Don’t forget to Subscribe

Bills

Latest Activity

Posts

  • What is Google ChromeOS, I mean really ?
    All this fuss about Google ChromeOS. Is it a threat to Microsoft ? Is it a threat to the Ubuntu ? (funny nobody wonders if that’s Read More
  • Well said Carla !
    Carla has something to say ’bout the cloud, and I agree 100% with her. Share it !
  • No more Gimp for you little Joe
    When I first posted about the matter, most people’s reaction was LOL. The we thought it was just a random proposal, never going to be Read More
  • Custom iTunes page generator
    Who never dreamed to have his personal Apple website page, like this guy ? Now you can ! UPDATE : they just fixed the page, Read More
  • Fedora's new little friend
    Straight from the release notes of the recently released Fedora 12: Gnote is installed by default in GNOME for this release replacing Tomboy. Gnote is a port Read More