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"...).
This commit is contained in:
Raphaël Hertzog 2020-09-25 11:08:40 +02:00
parent 990dcf2eed
commit b14a9e5c79
No known key found for this signature in database
GPG Key ID: 03881DABEBC29AB9
1 changed files with 2 additions and 2 deletions

View File

@ -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}"