Error: Debian Lenny public key is not available: NO_PUBKEY 9AA38DCD55BE302B

You run

apt-get update

and get the following errors:

W: GPG error: http://security.debian.org lenny/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: GPG error: http://ftp2.de.debian.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B NO_PUBKEY 4D270D06F42584E6
W: You may want to run apt-get update to correct these problems

 

Solution

Install the debian-archive-keyring package:

apt-get install debian-archive-keyring

server1:~# apt-get install debian-archive-keyring
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
  debian-archive-keyring
1 upgraded, 0 newly installed, 0 to remove and 412 not upgraded.
Need to get 20.0kB of archives.
After unpacking 12.3kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  debian-archive-keyring
Install these packages without verification [y/N]?
 <-- y
Get:1 http://ftp2.de.debian.org lenny/main debian-archive-keyring 2010.08.28~lenny1 [20.0kB]
Fetched 20.0kB in 0s (115kB/s)
(Reading database ... 36850 files and directories currently installed.)
Preparing to replace debian-archive-keyring 2007.02.19 (using .../debian-archive-keyring_2010.08.28~lenny1_all.deb) ...
Unpacking replacement debian-archive-keyring ...
Setting up debian-archive-keyring (2010.08.28~lenny1) ...
gpg: key F42584E6: public key "Lenny Stable Release Key <[email protected]>" imported
gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) <[email protected]>" imported
gpg: key 6D849617: public key "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" imported
gpg: key B98321F9: public key "Squeeze Stable Release Key <[email protected]>" imported
gpg: key 473041FA: public key "Debian Archive Automatic Signing Key (6.0/squeeze) <[email protected]>" imported
gpg: Total number processed: 5
gpg:               imported: 5  (RSA: 4)
gpg: no ultimately trusted keys found

server1:~#

apt-get update

should now work without the NO_PUBKEY error.

Share this page:

Suggested articles

2 Comment(s)

Add comment

Comments

By: skirptkidee

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys

keyserver.ubuntu.com --recv-keys 9AA38DCD55BE302B 4D270D06F42584E6 # or your os specific {keyserver.superh3xorlinux.com} ubuntu will fix 99% debian based ie kali parrot etc sudo apt-get update# sorted :)))

By: skirptkidee

 

ie  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B56FFA946EB1660A

$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B56FFA946EB1660A

Executing: /tmp/apt-key-gpghome.A0AQUV6BRv/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys B56FFA946EB1660Agpg: key B56FFA946EB1660A: 1 signature not checked due to a missing keygpg: key B56FFA946EB1660A: public key "Parrot project <[email protected]>" importedgpg: Total number processed: 1gpg:               imported: 1

sudo apt update

Get:1 http://deb.parrotsec.org/parrot parrot InReleaseGet:2 http://deb.parrotsec.org/parrot parrot/main i386 Packages [17.4 MB]Get:3 http://deb.parrotsec.org/parrot parrot/main amd64 Packages [17.5 MB]     Get:4 http://deb.parrotsec.org/parrot parrot/contrib i386 Packages [131 kB]    Get:5 http://deb.parrotsec.org/parrot parrot/contrib amd64 Packages [141 kB]   Get:6 http://deb.parrotsec.org/parrot parrot/non-free i386 Packages [206 kB]   Get:7 http://deb.parrotsec.org/parrot parrot/non-free amd64 Packages [243 kB]  Fetched 35.7 MB                                           Reading package lists... DoneBuilding dependency tree       Reading state information... Done