OK, after further research, I found that Debian imported the stretch suite to archive.debian.org
, according to https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html
So I fixed it by replacing the sources:
deb.debian.org
to archive.debian.org
security.debian.org
to archive.debian.org/debian-security/
And removing the source stretch-updates
since it's not available in the archive's sources: Debian Stretch archive
Commands:
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