Increase APT retries and timeouts

This commit is contained in:
Kris Lamoureux 2024-08-18 00:18:47 -04:00
parent 1e95dd7b2f
commit e03fbe5c14
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -7,6 +7,13 @@
# Print commands and exit on error
set -xe
# Increase APT retries and timeouts to improve provisioning reliability
sudo tee /etc/apt/apt.conf.d/99custom-retries << EOF
Acquire::Retries "5";
Acquire::http::Timeout "120";
Acquire::ftp::Timeout "120";
EOF
# Prevents interactive prompts during package installation
export DEBIAN_FRONTEND=noninteractive