Add missing GPG public key to Debian’s apt

Just a quick post, because I always have to look it up: If you get a message like this while installing a new package through apt

  1. W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C514AF8E4BA401C3

… you can do the following to get rid of it:

  1. gpg --keyserver pgpkeys.mit.edu --recv-key C514AF8E4BA401C3
  2. gpg -a --export C514AF8E4BA401C3 | apt-key add -

Works on Ubuntu and other derivatives of Debian all the same, of course. Hope this post will safe me some time the next time I run into this.

Tags: , , ,

Shameless plug: If this post was useful to you, please consider buying yourself something from one of my Amazon stores: US store, UK store, FR store, DE store, CA store. If you're not into Amazon, why not donate something to GNOME, Mozilla or Wikipedia? Thank you!

One Response to “Add missing GPG public key to Debian’s apt”

  1. Vegard says:

    You can get the keys via APT, in Debian atleast. At the cost of not being able to actually verify that the packages you get are not modified, but that is a highly unlikely event.

    apt-get install debian-archive-keyring
    apt-get update

    Kind regards,
    Vegard

Leave a Reply