From e92841fb80810e2fb0154d8b7fdcf75fb620310d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 12 Jul 2019 09:39:05 +0200 Subject: [PATCH] Use new security.debian.org repository layout for bullseye and newer Quoting from https://lists.debian.org/debian-devel-announce/2019/07/msg00004.html: | over the last years we had people getting confused over -updates | (recommended updates) and /updates (security updates). Starting | with Debian 11 "bullseye" we have therefore renamed the suite including | the security updates to -security. | | An entry in sources.list should look like | | deb http://security.debian.org/debian-security bullseye-security main | | For previous releases the name will not change. --- chroot-script | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chroot-script b/chroot-script index 80b45ab..68514e0 100755 --- a/chroot-script +++ b/chroot-script @@ -113,10 +113,16 @@ chrootmirror() { # add security.debian.org: case "$RELEASE" in unstable|sid|lenny) ;; # no security pool available - *) + squeeze|wheezy|jessie|stretch|buster) echo "Adding security.debian.org to sources.list." echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list ;; + *) + # bullseye and newer releases use a different repository layout, see + # https://lists.debian.org/debian-devel-announce/2019/07/msg00004.html + echo "Adding security.debian.org/debian-security to sources.list." + echo "deb http://security.debian.org/debian-security ${RELEASE}-security $COMPONENTS" >> /etc/apt/sources.list + ;; esac } # }}} -- 2.1.4