From 0e91aeea428577b71fa0e2dd21d5cf664a0ebbe9 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 23 Mar 2018 15:13:41 +0000 Subject: Add Acquire::AllowInsecureRepositories to fix apt-secure in sid The apt-secure option does not work anymore when building a sid image, as with apt 1.6 the existing options are no longer enough to get apt to accept an unsigned repository, which is necessary when using a local cached repository (offline build). Pass Acquire::AllowInsecureRepositories "true"; together with the other options when --apt-secure false is used to fix the issue. --- scripts/build/chroot_apt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/build') diff --git a/scripts/build/chroot_apt b/scripts/build/chroot_apt index d48da7ec4..4888ebd9c 100755 --- a/scripts/build/chroot_apt +++ b/scripts/build/chroot_apt @@ -78,11 +78,13 @@ case "${1}" in true) echo "APT::Get::AllowUnauthenticated \"false\";" > chroot/etc/apt/apt.conf.d/00secure echo "Aptitude::CmdLine::Ignore-Trust-Violations \"false\";" >> chroot/etc/apt/apt.conf.d/00secure + echo "Acquire::AllowInsecureRepositories \"false\";" >> chroot/etc/apt/apt.conf.d/00secure ;; false) echo "APT::Get::AllowUnauthenticated \"true\";" > chroot/etc/apt/apt.conf.d/00secure echo "Aptitude::CmdLine::Ignore-Trust-Violations \"true\";" >> chroot/etc/apt/apt.conf.d/00secure + echo "Acquire::AllowInsecureRepositories \"true\";" >> chroot/etc/apt/apt.conf.d/00secure ;; esac -- cgit v1.2.3