diff options
author | Holger Levsen <holger@layer-acht.org> | 2013-03-17 17:56:15 -0700 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2013-03-17 17:56:15 -0700 |
commit | 8143a8d74e4c7fedd7320575d47ed78aa4066437 (patch) | |
tree | 21b0b2f50e55da6a7656724353707d62976cb720 /bin | |
parent | fca92bad3ee4f945f16a50af05d2c8cb951207cd (diff) | |
download | jenkins.debian.net-8143a8d74e4c7fedd7320575d47ed78aa4066437.tar.xz |
work around #703146
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-installation.sh | 4 |
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 |