How to import all missing gpg keys

Now with command add-apt-repository it is possible to add a PPA with the GPG key in a single command line.
But if you use it when the Ubuntu key server is down, the GPG key will not be added. And during the instalation you get some error messages like this:

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 5A9BF3BB4E5E17B5
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 3B22AB97AF1CDFA9
W: You may want to run apt-get update to correct these problems

Import all missing GPG keys
To solve this problem, simply download launchpad-getkeys .deb manually:

Ubuntu 10.10 Maverick Meerkat

Ubuntu 10.04 Lucid Lynx

Ubuntu 9.10 Karmic Koala

Ubuntu 9.04 Jaunty Jackalope

Once installed, to import all the missing GPG keys for your PPAs, simply use the following command:

sudo launchpad-getkeys

Advertisements

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