SteveHinesley.com

My Personal Technical Resource

GPG error: launchpad.net NO_PUBKEY

You may receive a NO_PUBKEY error after adding a PPA from launchpad.net. Sometimes the public key does not get added to your system and you will receive a NO_PUBKEY error when trying to update. This is applicable when updating a Debian based GNU/Linux distribution, such as Ubuntu or Linux Mint. If your system did not update the public keys, you will receive an error message similar to the following:

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

In order to fix this, you have to manually add the public keys. You only need to perform a few steps to get this fixed.

  1. Copy the last 8 digits of the 16-digit hex value after NO_PUBKEY.
  2. Open up a terminal window.
  3. Type the command: gpg –keyserver keyserver.ubuntu.com –recv {8-digits from step 1}
  4. Type the command: gpg –export –armor {8-digits from step 1} | sudo apt-key add -
  5. Type the command: sudo apt-get update

Example (assuming NO_PUBKEY A2019EA84E7532C8):

gpg --keyserver keyserver.ubuntu.com --recv 4E7532C8
gpg --export --armor 4E7532C8 | sudo apt-key add -
sudo apt-get update

That should update the public key for the PPA and you should stop receiving the error message when updating your distribution.

Download GPG error: launchpad.net NO_PUBKEY as PDF

Tags: