So I have this going on:
# apt-get update
Get:1 http://ftp.us.debian.org etch Release.gpg [1032B]
Hit http://ftp.us.debian.org etch Release
(...bunch more of this elided...)
Hit http://ftp.us.debian.org etch/contrib Sources
Fetched 68.8kB in 1s (37.4kB/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
9AA38DCD55BE302B
W: 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
W: You may want to run apt-get update to correct these problems
Apparently I can't run apt-get update
because of a problem that apt-get
wants me to run apt-get update
to fix, which is displeasing. How do I correct this?
Try doing this and running apt-get again:
Further info on the Debian wiki: http://wiki.debian.org/SecureApt
If that doesn't work, try:
or do a
sudo apt-get install debian-archive-keyring
first.after that you can continue a normaly
To ensure the origin of package that you download, APT will want to verify the signatures of the Release file. If it can't verify it, it will complain with the message that you saw. In that case, you have to install the corresponding GPG key so that APT can verify the file properly. Unfortunately you should not blindly download any key as you really want to allow only trusted keys that are owned by the repository owner. Thus you must download it in a way that ensures its origin, and simply downloading it with
gpg --recv-key
doesn't ensure that.Installing a new key is done with
apt-key add <key-file>
. Most non-official repositories provide you the key on their website and give you instructions like this (the URL differs of course) :In the case of an official Debian mirror, you should automatically have the right key installed, it's contained in the package
debian-archive-keyring
and its configuration activates the keys automatically. So ensure you have it installed, and ensure it's up-to-date:If you don't trust your mirror, you can also install it only after having installed the right key with the previous method, I actually gave the URL of the official key that you needed.
For more infos about how the Debian Archive Keys are handled you can check http://ftp-master.debian.org/keys.html.
I had the same problem on Juanty 9.04 64 bit. Tried several suggestions but this did the trick :
wget -O - http://ftp-master.debian.org/keys/archive-key-5.0.asc | sudo apt-key add -
The do :
sudo apt-get update
Thanks
Fanus
I had this problem due to a transparent proxy giving me an old version of the GPG key, I solved it by using wget to force the proxy to get a new version, e.g.
so I'd hope that in your case the following commands would solve it:-
Obviously we are so far past Etch that this is no longer the case, but I'm documenting it here in case it helps someone out.