summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/00-sources.list5
-rw-r--r--config/chroot_local-includes/etc/apt/sources.list4
2 files changed, 7 insertions, 2 deletions
diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list
index 88be772..880e38a 100755
--- a/config/chroot_local-hooks/00-sources.list
+++ b/config/chroot_local-hooks/00-sources.list
@@ -17,6 +17,11 @@ fi
sed -i -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list
+# old names
+case "${LB_DISTRIBUTION}" in
+ wheezy|jessie|stretch|buster) sed -i -e "s|-security||g" /etc/apt/sources.list ;;
+esac
+
# fix for archive
if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
sed -i -e "s|ftp.de.debian.org/debian wheezy|archive.debian.org/debian wheezy|g" /etc/apt/sources.list
diff --git a/config/chroot_local-includes/etc/apt/sources.list b/config/chroot_local-includes/etc/apt/sources.list
index 236ae7a..3593810 100644
--- a/config/chroot_local-includes/etc/apt/sources.list
+++ b/config/chroot_local-includes/etc/apt/sources.list
@@ -7,6 +7,6 @@ deb http://ftp.de.debian.org/debian @DISTRIBUTION@ main contrib non-free
deb-src http://ftp.de.debian.org/debian @DISTRIBUTION@ main contrib non-free
# Debian @DISTRIBUTION@ Updates
-deb http://security.debian.org @DISTRIBUTION@/updates main contrib non-free
-deb-src http://security.debian.org @DISTRIBUTION@/updates main contrib non-free
+deb http://security.debian.org @DISTRIBUTION@-security/updates main contrib non-free
+deb-src http://security.debian.org @DISTRIBUTION@-security/updates main contrib non-free