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 !

6 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.

  6. PJW

    Alas, it does not work with the current – Jan 2011 issue : NO_PUBKEY A2019EA84E7532C8

Leave a Reply

Bills

Don’t forget to Subscribe

Latest Activity

Posts

  • Google this is ridiculous
    Google you’re doing it wrong. Very wrong. This is utterly ridiculous. It’s a screenshot with a standard Firefox browser, in the standard screen resolution (1280×800), on Read More
  • A step back from the open source
    One month ago, I created my first Android app. While the app was a paid one, the reception has been outstanding. I’ve gotten a fair amount Read More
  • Facebook shuts down EventPress development.
    When you’re a big company, especially one that makes its money on free web services and advertising, it’s very easy to say you love open Read More
  • Why Android is laggy
    Great post from Andrew Munn explaining some key differences between Android and iPhone/iOs, especially when it comes to rendering and smoothness of animations and why Read More
  • Google Plus keeps your data as much as Facebook does
    When you delete an account from Google+, Google promises you to delete all the data associated with your G+ profile. Well, I deleted mine some time Read More