Closed ap-wtioit closed 1 year ago
We are replacing the lines with sed -i 's,http://deb.debian.org,http://archive.debian.org,g;s,http://security.debian.org,http://archive.debian.org,g;s,\(.*stretch-updates\),#\1,' /etc/apt/sources.list
.
s,http://deb.debian.org,http://archive.debian.org,g
replace all http://deb.debian.org with http://archive.debian.orgs,http://security.debian.org,http://archive.debian.org,g
replace all http://security.debian.org with http://archive.debian.orgs,\(.*stretch-updates\),#\1,
prefix lines that contain stretch-updates with #Old version (docker run --rm tecnativa/doodba:11.0 cat /etc/apt/sources.list
):
# deb http://snapshot.debian.org/archive/debian/20200908T070000Z stretch main
deb http://deb.debian.org/debian stretch main
# deb http://snapshot.debian.org/archive/debian-security/20200908T070000Z stretch/updates main
deb http://security.debian.org/debian-security stretch/updates main
# deb http://snapshot.debian.org/archive/debian/20200908T070000Z stretch-updates main
deb http://deb.debian.org/debian stretch-updates main
after the patch
# deb http://snapshot.debian.org/archive/debian/20210721T000000Z stretch main
deb http://archive.debian.org/debian stretch main
# deb http://snapshot.debian.org/archive/debian-security/20210721T000000Z stretch/updates main
deb http://archive.debian.org/debian-security stretch/updates main
## deb http://snapshot.debian.org/archive/debian/20210721T000000Z stretch-updates main
#deb http://archive.debian.org/debian stretch-updates main
So no new lines are added only the existing lines are fixed.
Fix building images with debian stretch. Depending on the selected mirror we saw more and more issues with building the stretch images.
It seems like the mirrors are slowly removing the packages for debian stretch.
In this pull request:
stretch-updates main
gets deactivated (it is not present in archive)stretch main
is fetched from archivesecurity.debian.org stretch/updates
is fetched from archiveInfo @wt-io-it