From b14a9e5c79bbba9299bc7316c439e113f835a414 Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Fri, 25 Sep 2020 11:08:40 +0200 Subject: Tell APT to retry downloads a few times before giving up We want to be resilient to small network hiccups and when you download a large number of packages, the probability of a network hiccup are increasing... as are the chances of hitting one of the apt bugs (cf "Undetermined error"...). --- functions/configuration.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions/configuration.sh b/functions/configuration.sh index 7c9e1e9e1..02a589448 100755 --- a/functions/configuration.sh +++ b/functions/configuration.sh @@ -105,8 +105,8 @@ Prepare_config () LB_APT_SOURCE_ARCHIVES="${LB_APT_SOURCE_ARCHIVES:-true}" LB_APT_INDICES="${LB_APT_INDICES:-true}" - APT_OPTIONS="${APT_OPTIONS:---yes}" - APTITUDE_OPTIONS="${APTITUDE_OPTIONS:---assume-yes}" + APT_OPTIONS="${APT_OPTIONS:---yes -o Acquire::Retries=5}" + APTITUDE_OPTIONS="${APTITUDE_OPTIONS:---assume-yes -o Acquire::Retries=5}" BZIP2_OPTIONS="${BZIP2_OPTIONS:--6}" GZIP_OPTIONS="${GZIP_OPTIONS:--6}" -- cgit v1.2.3