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.

Possibly related posts (generated automatically):

  1. Install Firefox 4 in Ubuntu 10.10
  2. Update / install Virtualbox 4.0.8 on Ubuntu 11.04 or 10.10
  3. Install Gnome3 / Gnome Shell on ubuntu 11.04 (Natty)/Ubuntu 10.10 (Maverick)
  4. Change Default Boot Order for Grub 2 in Ubuntu 11.04 Natty or 10.10, 10.04 etc
  5. Enable MP3, MPEG4, AAC, and Xvid etc for FFmpeg Ubuntu 10.04
  6. Install or Update Virtualbox 4.0 on Ubuntu 10.04, 10.10
  7. Install HandBrake on Ubuntu 10.04
  8. Change GDM Background / Theme in Ubuntu 10.10 Maverick

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

About the Author

has written 1314 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!

*
Your Ad Here

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