From e9e04e191cbaf91bcf4aefec247243f75ee091fa Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Wed, 17 Apr 2024 09:03:17 -0500 Subject: [PATCH] Use the archive repo for Buster (#18678) Why I did it Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected. Work item tracking Microsoft ADO (number only): 27691460 How I did it Change to using archive.debian.org directly for Buster. How to verify it --- scripts/build_mirror_config.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build_mirror_config.sh b/scripts/build_mirror_config.sh index aee56f23ae6a..86e52aa43103 100755 --- a/scripts/build_mirror_config.sh +++ b/scripts/build_mirror_config.sh @@ -21,6 +21,10 @@ if [ "$ARCHITECTURE" == "armhf" ]; then DEFAULT_MIRROR_SECURITY_URLS=http://deb.debian.org/debian-security/,http://packages.trafficmanager.net/debian/debian-security/ fi +if [ "$DISTRIBUTION" == "buster" ]; then + DEFAULT_MIRROR_URLS=http://archive.debian.org/debian/ +fi + if [ "$MIRROR_SNAPSHOT" == y ]; then if [ -f "$MIRROR_VERSION_FILE" ]; then DEBIAN_TIMESTAMP=$(grep "^debian==" $MIRROR_VERSION_FILE | tail -n 1 | sed 's/.*==//')