Import Missing Launchpad PPA GPG Keys Automatically in Ubuntu

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Quite often when you add a PPA when the Ubuntu keyserver is down, the key is doesn’t get added. It can be quite annoying to search for and manually import the GPG keys for various PPAs. When you don’t have the appropriate GPG imported, in most cases you can’t update and when you run apt-get update, you end with errors similar to these:

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: maverick Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192


W: GPG error: maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A9BF3BB4E5E17B5

W: You may want to run apt-get update to correct these problems

WebUpd8 has created an Ubuntu .deb package for the script which takes care of these issues. You install this package by adding WebUpd8 PPA by doing the following:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install launchpad-getkeys

Once the installation is over you can import all the missing GPG keys for your PPAs, simply by using the following command:

sudo launchpad-getkeys

This should take care of all our missing GPG keys. No more broken updates! 🙂

You might also like

Auto Mount Windows Partitions in Ubuntu 10.10, 10.04 Lucid While Ubuntu...
Stream Multimedia from Linux Box (Enable UPnP on Ubuntu 10.04) Earlier I had...
Find Package Information from Commandline in Ubuntu 9.10 You can find...
Should I Upgrade Ubuntu 9.10 to Ubuntu 10.04 LTS? Every time...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!


Copyright © 2017 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes