Pages

Wednesday, July 28, 2010

How to Fix the Warnings in apt-get update?

If we are doing,

# apt-get update
......
Fetched 5562B in 13s (421B/s)
Reading package lists... Done
W: There are no public key available for the following key IDs:
A70DAF536070D3A1
W: You may want to run apt-get update to correct these problems  


Probably we will end up with the above warning.

How to fix this warning?

The problem was,  expired keys on my system that didn’t get updated
by the install of debian-archive-keyring.

The complete solution is :

apt-key list


Just check for expired keys and delete them.




The output of the above command would be like,


/etc/apt/trusted.gpg
--------------------
pub   1024D/6070D3A1 2006-11-20 [expired: 2009-07-01]
uid                  Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org>

pub   1024D/ADB11277 2006-09-17

uid                  Etch Stable Release Key <debian-release@lists.debian.org>

pub   1024D/BBE55AB3 2007-03-31 [expired: 2010-03-30]
uid                  Debian-Volatile Archive Automatic Signing Key (4.0/etch)


pub   1024D/F42584E6 2008-04-06 [expires: 2012-05-15]
uid                  Lenny Stable Release Key <debian-release@lists.debian.org>

pub   4096R/55BE302B 2009-01-27 [expires: 2012-12-31]

uid                  Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>

pub   2048R/6D849617 2009-01-24 [expires: 2013-01-23]
uid                  Debian-Volatile Archive Automatic Signing Key (5.0/lenny)



Here the key for the first line
       pub   1024D/6070D3A1
is 6070D3A1

So see whether the key is expired or not.
If expired , delete the key, by using

apt-key del <ExpiredKeys>

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



Now do,
apt-get update.

Yep, You wont get that warning !!!


For further details, you may also see this..

http://kovyrin.net/2006/11/28/debian-problem-apt-get-update/

No comments:

Post a Comment