From cdf6959a411ac1074d467b910e5c1e0ec055da8f Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sat, 23 Mar 2024 22:38:30 +0100 Subject: [PATCH] make_mirror.sh: retry apt with verbose output --- make_mirror.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index 8849ee3..284b860 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -236,7 +236,11 @@ END esac # shellcheck disable=SC2086 - APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get --yes install $pkgs + APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get --yes install $pkgs \ + || APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get --yes install \ + -oDebug::pkgProblemResolver=true -oDebug::pkgDepCache::Marker=1 \ + -oDebug::pkgDepCache::AutoInstall=1 \ + $pkgs rm "$rootdir/var/cache/apt/archives/lock" rmdir "$rootdir/var/cache/apt/archives/partial"