apt-get complain “The following signatures couldn’t be verified because the public key is not available”

If you happen to upgrade using apt-get and get the following error:

# apt-get update
...
Fetched 18.7kB in 3s (5301B/s)
Reading package lists... Done
W: GPG error: http://non-us.debian.org stable/non-US Release: The following signatures couldn't be verified 
because the public key is not available: NO_PUBKEY F1D53D8C4F368D5D W: You may want to run apt-get update to correct these problems


It means that your APT doesn’t have needed the public key. In the example above, finger print of the public key is
F1D53D8C4F368D5D. To remedy the problem, you should do the following:

# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys F1D53D8C4F368D5D
gpg: requesting key 4F368D5D from hkp server wwwkeys.eu.pgp.net
gpg: key 4F368D5D: public key "Debian Archive Automatic Signing Key (2005) " imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1

# gpg --armor --export F1D53D8C4F368D5D | apt-key add -
OK

Have a nice hacking ;)

8 thoughts on “apt-get complain “The following signatures couldn’t be verified because the public key is not available”

  1. it doest work in my case……………….what should i doooooooooooooooooo

  2. Hi,

    It’s help me a lot.

    If the wwkeys is not funtioning please find another wwkeys by using this command :
    tuah% host -l pgp.net|grep wwwkeys <– this is how to finding keyservers

    Cheers.

    Tuah

  3. and make sure ;

    The first sudo is not mandatory, but the second is!

    $ gpg –armor –export F1D53D8C4F368D5D | sudo apt-key add –

Leave a comment