Apt annoyances

When using aptitude or apt-get and you get the error message: GPG error: http://ftp.us.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B

Try:
aptitude install debian-archive-keyring

Or do this:
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 9AA38DCD55BE302B
apt-key add /root/.gnupg/pubring.gpg
apt-get update

For Ubuntu

When you try to access ubuntu extras you might see following GPG error
"An 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"

Searching the web for answers will return at least 500 results, with 1 or 2 in english. Regardless, the advice is various forms of

  1. gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192
  2. gpg --export --armor 3E5C1192 | sudo apt-key add -
  3. sudo apt-get update

Except instead of the double dashes, there is a non-ASCII character instead, so copy and paste doesn't work. plus, unless your error message specifically contains "NO_PUBKEY 16126D3A3E5C1192" it won't work anyway.

My message was NO_PUBKEY DB141E2302FDF932. It turns out that you use the last 8 characters of that pubkey; i.e. 02FDF932 instead of the 3E5C1192 shown above. Then it works. Got that Grandma? How do you like Linux NOW ??

Bad key

The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

How to fix

apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update

Send mail to the Webmaster

logo This site best viewed with a browser
Warning: This is a Debian centric site and MAY contain peanuts.
Many thanks to Debra Lynn and Ian Murdock for making Debian possible
First created Nov 25, 2010 ~ Last revised July 04, 2011

Valid XHTML 1.0 Strict Valid CSS!