What does “NO_PUBKEY 40976EAF437D05B5” mean?

If you see this when you run “apt-get update” on Ubuntu, “apt” is unable to find the Ubuntu package repository’s key in it’s GPG keyring:

Reading package lists... Done
W: GPG error: http://us.archive.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://security.ubuntu.com precise-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://us.archive.ubuntu.com precise-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
#

You can see the keyrings with “apt-key list”:

# apt-key list
/etc/apt/trusted.gpg.d//puppetlabs-keyring.gpg
----------------------------------------------
pub   4096R/4BD6EC30 2010-07-10 [expires: 2016-07-08]
uid                  Puppet Labs Release Key (Puppet Labs Release Key) 

/etc/apt/trusted.gpg.d//puppetlabs-nightly-keyring.gpg
------------------------------------------------------
pub   4096R/07BB6C57 2013-02-06 [expires: 2016-02-06]
uid                  Puppet Labs Nightly Build Key (Puppet Labs Nightly Build Key) 
uid                  Puppet Labs Nightly Build Key (Puppet Labs Nightly Build Key) 
sub   4096R/A5FC3E74 2013-02-06 [expires: 2016-02-06]
# 

Solution:
Add the key. You can get it from another Ubuntu machine that shows the needed key in it’s “apt-key list” output:

pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key 
sub   2048g/79164387 2004-09-12

..export the key from that system:

$ apt-key export 437D05B5 > /tmp/437D05B5.pem
$

..copy the file you created to the system that’s having the problem, and run “apt-key add 437D05B5.pem” on the file:

/etc/apt# apt-key add 437D05B5.pem
OK
/etc/apt#

…and now it should show up in “apt-key list”!

# apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key 
sub   2048g/79164387 2004-09-12

…run “apt-get update” again and it should work without complaining.

By the way, if the key you need is “40976EAF437D05B5”, here it is:

-----BEGIN PGP PUBLIC KEY BLOCK-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tSGi0HtycTww2xnIOn
aLOzq/eI/LnakdAMclaTVbNltraepkoRFE4Exvuq/tCdzssotnmAha1tzGf+O3Qy
xkIBJ6zHFTNCREGBPYi/Pe9iviWqNAIr3SPhlw7STFrVDgpne9VdpOZb3nVYYQHG
6iwvVwzrE23+84RMFENq4Dhyx9L8R6+PMt347uT8dB03PXMovOpwXX06zMgfGwF6
0TZsmHqun/E3gE46YiME26rmUX5KSNTm9N2IZA8jz/sFXz2ISQQYEQIACQUCQUSf
RwIbDAAKCRBAl26vQ30FtdxYAJsFjU+xbex7gevyGQ2/mhqidES4MwCggqQyo+w1
Twx6DKLF+3rF5nf1F3Q=
=PBAe
-----END PGP PUBLIC KEY BLOCK-----

..but you shouldn’t accept keys from strangers!

Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Twitter
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *