summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/chroot-installation.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index f8d10c3f..4fb26f8a 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -63,6 +63,8 @@ echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
chmod +x /usr/sbin/policy-rc.d
echo 'Acquire::http::Proxy "http://localhost:3128";' > /etc/apt/apt.conf.d/80proxy
echo "deb-src $MIRROR $1 main contrib non-free" >> /etc/apt/sources.list
+# work around #703146
+rm /var/lib/apt/lists/*Release
apt-get update
EOF
}
@@ -88,6 +90,8 @@ prepare_upgrade2() {
cat >> $CTMPFILE <<-EOF
echo "deb $MIRROR $1 main contrib non-free" > /etc/apt/sources.list
$SCRIPT_HEADER
+# work around #703146
+rm /var/lib/apt/lists/*Release
apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade