From dfb8e89a1409e2e165e1acd7ec53b27c19d47b50 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Mar 2016 14:24:11 -0500 Subject: Try running apt-get three times Sometimes a mirror server will close the connection before sending a response. --- (limited to 'inst') diff --git a/inst b/inst index 36dde95..a9e0f3f 100755 --- a/inst +++ b/inst @@ -356,11 +356,17 @@ do_debconf_setup() do_install_extra() { + local i= + info 'Installing extra packages' - in_target apt-get -q -y install ${postinst_pkgs} || return 1 + i=0 + while [ ${i} -lt 3 ]; do + in_target apt-get -q -y install ${postinst_pkgs} && return 0 + i=$((${i} + 1)) + done - return 0 + return 1 } do_chroot_cleanup() -- cgit v0.9.1