On Thu 27 Aug 2020 at 19:44:56 (-0500), R. Ramesh wrote: > I finally decided to move from debian 7 to 10. As a first step I > wanted to upgrade to debian 8 (jesse) > > I changed all ftp.us.debian.org part in /etc/apt/sources.list to > archive.debian.org and tried aptitude update and got the following > error > > W: GPG error: http://archive.debian.org wheezy Release: The > > following signatures were invalid: KEYEXPIRED 1587841717 > > KEYEXPIRED 1587841717 KEYEXPIRED 1587841717 KEYEXPIRED 1587841717 > > KEYEXPIRED 1587841717 KEYEXPIRED 1557241909 The following > > signatures couldn't be verified because the public key is not > > available: NO_PUBKEY 7638D0442B90D010 > > W: GPG error: http://archive.debian.org wheezy-backports Release: > > The following signatures were invalid: KEYEXPIRED 1587841717 > > KEYEXPIRED 1587841717 KEYEXPIRED 1587841717 KEYEXPIRED 1587841717 > > KEYEXPIRED 1587841717 The following signatures couldn't be > > verified because the public key is not available: NO_PUBKEY > > 7638D0442B90D010 > > So I proceeded to update the keys. I did the following > > sudo apt-key list | grep expired > > pub???? 4096R/B98321F9 2010-08-07 [expired: 2017-08-05] > > pub???? 4096R/46925553 2012-04-27 [expired: 2020-04-25] > > pub???? 4096R/65FFB764 2012-05-08 [expired: 2019-05-07] > > After that I did > > foreach i (B98321F9 46925553 65FFB764) > > apt-key adv --keyserver keys.gnupg.net --recv-keys $i > > end > > It updated the keys, but even after that I got the same error and the > dates on the expired keys do not change anymore. > > What am I missing?
AFAICT those keys look like one for squeeze and two for wheezy, and you appear to be updating your wheezy distribution, which I would expect that you've been keeping up to date. You need to replace "wheezy" with "jessie" in your sources list and then update/upgrade. I think you probably have at least version 2014.3 of debian-archive-keyring, which has a jessie key /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg ------------------------------------------------------- pub rsa4096 2013-08-17 [SC] [expires: 2021-08-15] 75DD C3C4 A499 F1A1 8CB5 F3C8 CBF8 D6FD 518E 17E1 uid [ unknown] Jessie Stable Release Key <debian-rele...@lists.debian.org> Cheers, David.