Home > Security > Add PPA Key To Your Apt Keyring

Add PPA Key To Your Apt Keyring

I know many of you use Launchpad’s “Personal Package Archive” for updated and beta packages. I have about a half-dozen configured on my machine to give me the latest and greatest of my favorite applications. The one problem with a PPA though is that the packages can’t be verified when downloaded because you don’t have the GPG imported into your Apt Keyring. The following command is a template that you can use to import whatever PPA based keys you have warnings on:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <key id>

You can gather the <key id> in the output of:

sudo apt-get update

You should see the warnings, along with the key id at the bottom of the output.

For each GPG key that you get a warning on, run the command above, and you’ll stop seeing the warnings. You will have imported that team/project’s GPG key into your keyring, considering them trusted.

Categories: Security Tags: , , ,
  1. Horia
  2. Lorenz
    May 16th, 2009 at 13:27 | #2

    I'm really grateful for that, thank you!

  3. Kristijan
    May 24th, 2009 at 14:06 | #3

    Thank you !

  4. Kevin Shenk
    July 27th, 2010 at 21:42 | #4

    Excelent! I’ve looked long and hard for a simple single-line command like this! You helped me out so much! Thank-you!

  5. Marcel
    April 4th, 2011 at 01:56 | #5

    This and many similar howtos entirely omit the possibility of being behind an authentication requiring proxy.