May 31, 2010

How To Import all missing GPG keys automatically

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:




Linux terminal $: 
sudo launchpad-getkeys


Linux Command Line and Shell Scripting Bible


EmoticonEmoticon