Import Missing Launchpad PPA GPG Keys Automatically in Ubuntu

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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: http://extras.ubuntu.com maverick Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192

or

W: GPG error: http://ppa.launchpad.net 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! :)

If you found this useful, please consider leaving a comment or liking us on Facebook or following us on Twitter or subscribing to the RSS feed to have future articles delivered to your feed reader.

You might also like

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...
How to Extract 7-Zip Files on Ubuntu 11.04, 10.10 Support for...
Failed to fetch: Error with Ubuntu Update If you are...

About the Author

has written 1285 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 © 2014 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes