From 69ac109cdbde5734d33c935b48aab3b477ac3901 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 13 Jan 2023 18:48:24 +0900 Subject: [PATCH] mk-sbuild: fix security update repository for Debian bullseye and later If I run "apt-get update" in the bullseye chroot, I get the following error: Err:4 http://security.debian.org bullseye-updates Release 404 Not Found [IP: 2a04:4e42:600::644 80] It looks like the directory path was changed since bullseye. buster: deb https://security.debian.org/debian-security buster/updates main bullseye: deb https://security.debian.org/debian-security bullseye-security main Signed-off-by: Masahiro Yamada --- mk-sbuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mk-sbuild b/mk-sbuild index fe166fe..52e15a1 100755 --- a/mk-sbuild +++ b/mk-sbuild @@ -675,7 +675,11 @@ debian) # Debian only performs security updates SKIP_UPDATES=1 if [ -z "$SOURCES_SECURITY_SUITE" ]; then - SOURCES_SECURITY_SUITE="RELEASE/updates" + if debian_dist_ge "$RELEASE" "bullseye"; then + SOURCES_SECURITY_SUITE="RELEASE-security" + else + SOURCES_SECURITY_SUITE="RELEASE/updates" + fi fi if [ -z "$SOURCES_SECURITY_URL" ]; then SOURCES_SECURITY_URL="http://security.debian.org/"