Merge "retry apt operations to avoid network issues"
This commit is contained in:
5
stack.sh
5
stack.sh
@@ -211,6 +211,11 @@ sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh
|
||||
# Additional repos
|
||||
# ----------------
|
||||
|
||||
# For debian/ubuntu make apt attempt to retry network ops on it's own
|
||||
if is_ubuntu; then
|
||||
echo 'APT::Acquire::Retries "20";' | sudo tee /etc/apt/apt.conf.d/80retry
|
||||
fi
|
||||
|
||||
# Some distros need to add repos beyond the defaults provided by the vendor
|
||||
# to pick up required packages.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user