Forum archive
repository invalid signature
In my spam cleaning efforts, I accidentally deleted this post - oops! Really sorry about that! Please forgive me. Here it is reposted:
Hello, if I run apt-update on my /TurnKey Linux 13.0 / Debian 9.4 Stretch/ I get error about invalid signature for repository, maybe because gpg key is expired...
Hit:13 http://archive.turnkeylinux.org/debian wheezy Release Err:15 http://archive.turnkeylinux.org/debian wheezy-security Release.gpg The following signatures were invalid: 694CFF26795A29BAE07B4EB585C25E95A16EB94D Err:16 http://archive.turnkeylinux.org/debian wheezy Release.gpg The following signatures were invalid: 694CFF26795A29BAE07B4EB585C25E95A16EB94D Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.turnkeylinux.org/debian wheezy-security Release: The following signatures were invalid: 694CFF26795A29BAE07B4EB585C25E95A16EB94D W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.turnkeylinux.org/debian wheezy Release: The following signatures were invalid: 694CFF26795A29BAE07B4EB585C25E95A16EB94D W: Failed to fetch http://archive.turnkeylinux.org/debian/dists/wheezy-security/Release.gpg The following signatures were invalid: 694CFF26795A29BAE07B4EB585C25E95A16EB94D W: Failed to fetch http://archive.turnkeylinux.org/debian/dists/wheezy/Release.gpg The following signatures were invalid: 694CFF26795A29BAE07B4EB585C25E95A16EB94D W: Some index files failed to download. They have been ignored, or old ones used instead.
If I run:
apt-key list | grep expired
I get:
Warning: apt-key output should not be parsed (stdout is not a terminal) pub rsa4096 2010-08-27 [SC] [expired: 2018-03-05] uid [ expired] Debian Archive Automatic Signing Key (6.0/squeeze) pub rsa4096 2010-08-07 [SC] [expired: 2017-08-05] uid [ expired] Squeeze Stable Release Key
What can I do to fix it please?
Thank you
Thanks for your understanding re the accidental deletion of your original post.
Ah ok. So someone has already done the "in place" Debian upgrade, but left the Wheezy repos still enabled?!
I recommend that you disable those repos and try doing an "apt-get dist-upgrade" to make sure that you actually have everything upgraded (and aren't still running any old potentially insecure software from Wheezy).
A quick and easily reversible way of doing that is to use grep to find the files which still have Wheezy, then manually edit them to disable the Wheezy lines. I.e.:
Should return a list of any files which include "wheezy". Then edit each of those files and comment the lines with Wheezy out (i.e. put a '#" a the start of each line).
If you then run 'apt-get dist-upgrade' you will get a list of files which the system wants to upgrade. I suggest that you cancel out of that and note the packages that it wants to upgrade and do a bit of research before upgrading them.
Anyway, good luck with it all.