Tue 28 Nov 2006
Small Tip: How to fix “There are no public key available for the following key IDs” Error in Debian
Posted by Scoundrel under Admin-tipsFew days ago I’ve started migration of some of my non-critical servers to Debian Etch (from Sarge). Just after first apt-get update && apt-get dist-upgrade, when apt has been upgraded, I noticed really strange (as for me) error: when I’ve tried to do “apt-get update” it worked fine, but there was annoying message like following:
UPDATE: Thanks to Kurt Fitzner we know, that:
There is already a mechanism to do this automatically:
$ apt-key updateThis will obtain the necesary keys and import them. No need to go through gpg directly.
After not so long research I figured out, that this problem was caused by change of gpg key used by ftpmaster on Debian official repository servers. Google gave me some information and I found some fix which works fine for me:
Where XXXXXXXXXXXXXXXX is your missing key (e.g A70DAF536070D3A1).
That’s it! Happy using Debian GNU/Linux!
- A Concise apt-get / dpkg primer for new Debian users
- Innodb Locks, ActiveRecord and acts_as_ferret Problem
- Unofficial Debian GNU/Linux Repositories Overview
- How to Install Oracle Database XE on Debian Sarge
- How to run GUI-programs on a server without any monitor
2006-11-28 at 10.09 am
To keep the apt-key list from getting too clogged-up with keys if you have lots in the root gpg keyring, you might want to use something like:
gpg –keyserver foo –recv-keys
followed by:
gpg –export –armor A70DAF536070D3A1 | apt-key add -
This will just add the one key specified to the apt-key keyring
2006-11-28 at 5.48 pm
2Legooolas: Great thanks for very useful comment!
2006-11-30 at 8.13 am
Thank you!
This really saved me some time.
2006-12-01 at 3.44 am
[...] Original post by unknown [...]
2006-12-01 at 4.34 pm
Great tip!
Thanx!
2006-12-08 at 8.28 pm
great tips thanx ..
had problems for weeks with that ..
thnx !
2006-12-13 at 2.17 am
There is already a mechanism to do this automatically:
$ apt-key update
This will obtain the necesary keys and import them. No need to go through gpg directly.
2006-12-13 at 5.09 pm
Tried apt-key update to no avail. The gpg instructions worked a treat though. Thanks for the tip!
2006-12-13 at 5.17 pm
Found this post:
http://www.debian-administration.org/users/dkg/weblog/11
which covers the problem in detail.
# apt-get install debian-archive-keyring
is apparently a better way to solve this without adding unverified keys to apt-secure if apt-key update doesn’t work for you.
2007-01-08 at 1.56 am
[...] I found the solution at http://blog.kovyrin.net/2006/11/28/debian-problem-apt-get-update/ [...]
2007-02-11 at 6.32 pm
Even “apt-get install debian-archive-keyring”
did not work for me.
The problem was, that I had really old
expired keys on my system that didn’t get updated
by the install of debian-archive-keyring.
The complete solution was:
apt-key list
apt-key del 1DB114E0
apt-key del 4F368D5D
apt-key del 2D230C5F
ie. run “apt-key del” for all keys marked expired in
“apt-key list” output
Then finally:
dpkg –purge debian-archive-keyring
apt-get install debian-archive-keyring
2007-09-20 at 10.02 pm
[...] (<http://blog.kovyrin.net/2006/11/28/debian-problem-apt-get-update/>) Still others reported having to pass something like, [...]
2007-10-05 at 5.53 pm
More notes on this:
http://serfgeek.blogspot.com/index.html#116007821818690201
2007-12-09 at 2.09 pm
sudo apt-get update -o Acquire::http::No-Cache=True
>> This should work
2008-04-09 at 12.45 pm
Excellent tip! the apt-ket update didnt work, but your instructions for using gpg worked great for me