diff --git a/stack.sh b/stack.sh index d376bd9897..305687dcb9 100755 --- a/stack.sh +++ b/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.