Wednesday, April 29, 2015

HOWTO Fix Error "...no public key available..." on Debian Wheezy

If you are getting an error similar to this one:

W: There is no public key available for the following key IDs:
7638D0442B90D010

when running an apt-get update on your Debian Wheezy. For example:

ximena@xdev:~$ sudo apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [1,571 B]
Get:2 http://security.debian.org wheezy/updates Release [102 kB]
Hit http://ftp.de.debian.org wheezy Release.gpg
Get:3 http://ftp.de.debian.org wheezy-updates Release.gpg [1,571 B]
Hit http://ftp.de.debian.org wheezy Release
Get:4 http://security.debian.org wheezy/updates/main Sources [175 kB]
Get:5 http://ftp.de.debian.org wheezy-updates Release [124 kB]
Get:6 http://apt.puppetlabs.com wheezy Release.gpg [876 B]
Get:7 http://security.debian.org wheezy/updates/main amd64 Packages [305 kB]
Hit http://ftp.de.debian.org wheezy/main Sources
Hit http://ftp.de.debian.org wheezy/main amd64 Packages
Get:8 http://apt.puppetlabs.com wheezy Release [29.4 kB]
Hit http://ftp.de.debian.org wheezy/main Translation-en
Get:9 http://security.debian.org wheezy/updates/main Translation-en [172 kB]
Hit http://ftp.de.debian.org wheezy/main Translation-de
Hit http://ftp.de.debian.org wheezy/main Translation-de_DE
Get:10 http://ftp.de.debian.org wheezy-updates/main Sources [3,303 B]
Hit http://ftp.de.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://ftp.de.debian.org wheezy-updates/main Translation-en/DiffIndex
Get:11 http://apt.puppetlabs.com wheezy/main Sources [83.0 kB]
Get:12 http://apt.puppetlabs.com wheezy/dependencies Sources [9,234 B]
Get:13 http://apt.puppetlabs.com wheezy/main amd64 Packages [97.9 kB]
Get:14 http://apt.puppetlabs.com wheezy/dependencies amd64 Packages [6,422 B]
Ign http://apt.puppetlabs.com wheezy/dependencies Translation-en_US
Ign http://apt.puppetlabs.com wheezy/dependencies Translation-en
Ign http://apt.puppetlabs.com wheezy/dependencies Translation-de
Ign http://apt.puppetlabs.com wheezy/dependencies Translation-de_DE
Ign http://apt.puppetlabs.com wheezy/main Translation-en_US
Ign http://apt.puppetlabs.com wheezy/main Translation-en
Ign http://apt.puppetlabs.com wheezy/main Translation-de
Ign http://apt.puppetlabs.com wheezy/main Translation-de_DE
Fetched 1,112 kB in 4s (222 kB/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010
W: There is no public key available for the following key IDs:
7638D0442B90D010
ximena@xdev:~$

Here is what you should do:

ximena@xdev:~$ sudo apt-get install debian-keyring debian-archive-keyring
ximena@xdev:~$ sudo apt-get update

And that should do it :)