[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need working repo for Deb7 - wheezy



On Tue, Aug 09, 2022 at 01:31:20PM +0000, Aravinth kumar Anbalagan wrote:
Hi @Michael Stone

There are no proxy configured on the server. Please check the below error and let us know how can we proceed further?

root@policijas-db:~# cd /etc/apt/
apt.conf.d/     preferences.d/  sources.list.d/ trusted.gpg.d/
root@policijas-db:~# cd /etc/apt/apt.conf.d/
root@policijas-db:/etc/apt/apt.conf.d# ls
00CDMountPoint  00trustcdrom  01autoremove  20apt-show-versions  20listchanges  70debconf
root@policijas-db:/etc/apt/apt.conf.d# cat * |grep -i prox
root@policijas-db:/etc/apt/apt.conf.d#

Error:

W: GPG error: http://archive.debian.org squeeze Release: The following signatures were invalid: KEYEXPIRED 1520281423 KEYEXPIRED 1501892461
W: GPG error: http://archive.debian.org squeeze-lts Release: The following signatures were invalid: KEYEXPIRED 1587841717
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/source/Sources  404  Not Found [IP: 151.101.194.132 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/contrib/source/Sources  404  Not Found [IP: 151.101.194.132 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/non-free/source/Sources  404  Not Found [IP: 151.101.194.132 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.194.132 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/contrib/binary-amd64/Packages  404  Not Found [IP: 151.101.194.132 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/non-free/binary-amd64/Packages  404  Not Found [IP: 151.101.194.132 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@policijas-db:~#

The original question was about wheezy, this is squeeze so the answers are a little different. You can use something like this as your sources.list:

deb http://archive.debian.org/debian/ squeeze main contrib non-free
deb http://archive.debian.org/debian-security squeeze/updates main contrib non-free
deb http://archive.debian.org/debian squeeze-lts main contrib non-free

(Note that everything is coming from archive.debian.org, not security.debian.org.)

In /etc/apt/apt.conf you'll need:

APT::Get::AllowUnauthenticated "true";

Because you *will get* warnings like the following:

W: GPG error: http://archive.debian.org squeeze Release: The following signatures were invalid: KEYEXPIRED 1520281423 KEYEXPIRED 1501892461
W: GPG error: http://archive.debian.org squeeze/updates Release: The following signatures were invalid: KEYEXPIRED 1520281423
W: GPG error: http://archive.debian.org squeeze-lts Release: The following signatures were invalid: KEYEXPIRED 1587841717

Ignore anyone who talks about updating keys, *there are no current keys for squeeze because it's an unsupported release*. The change in apt.conf allows you to install packages regardless of the warnings. This is something you would not normally do, but if you're running an obsolete unsupported release (hopefully internally and without network-facing services) ignoring GPG warnings on the archive is the least of your problems.


Reply to: