Today I started to get these errors messages when i run apt-get update
404 Not Found
E: The repository 'http://security.debian.org stretch/updates Release' does no longer have a Release file.
Do you know what could be the cause of it?
I have updated the source:
deb http://security.debian.org/ stretch/updates main
with
deb http://security.debian.org/ stretch/updates main contrib non-free
but I keep getting the same errors
2
Answers
ok after a further research, I found that debian imported stretch suite to
archive.debian.org
https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html
So I fixed it by replacing the sources.
deb.debian.org
toarchive.debian.org
security.debian.org
toarchive.debian.org/debian-security/
And removing the source
stretch-updates
since it's not available in the archives sources: debian stretch archiveCommands:
I used these bash commands to make the replacement:
replace deb.debian.org with archive.debian.org:
sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
replace security.debian.org with archive.debian.org/debian-security/:
sudo sed -i 's|security.debian.org|archive.debian.org/debian-security/|g' /etc/apt/sources.list
remove line that contains source stretch-updates:
sudo sed -i '/stretch-updates/d' /etc/apt/sources.list
Thanks Luis,
I just tested your solution, and it worked fine.
For docker users, here is what you have to do. :