diff --git a/.github/scripts/install-ubuntu-apt-packages.sh b/.github/scripts/install-ubuntu-apt-packages.sh index dd47cdd3390..72881e7231f 100644 --- a/.github/scripts/install-ubuntu-apt-packages.sh +++ b/.github/scripts/install-ubuntu-apt-packages.sh @@ -8,8 +8,8 @@ fi bash "$(dirname "${BASH_SOURCE[0]}")/prepare-ubuntu-apt.sh" -# Both routes and diagnostics fit the previous seven-minute package setup budget. -if timeout 45 sudo apt-get update && timeout 120 sudo apt-get install -y "$@"; then +# Eight minutes of command allowances leave room for tests within the job deadline. +if timeout 45 sudo apt-get update -o Acquire::Languages=none && timeout 120 sudo apt-get install -y "$@"; then exit 0 fi @@ -31,7 +31,7 @@ done # A timed-out install may leave a transaction that apt cannot resume itself. timeout 30 sudo dpkg --configure -a || true # Unrelated repositories may fail refresh; apt still verifies the requested packages. -if ! timeout 60 sudo apt-get update; then +if ! timeout 120 sudo apt-get update -o Acquire::Languages=none; then echo 'Index refresh incomplete; attempting the requested packages with available authenticated indexes.' >&2 fi timeout 150 sudo apt-get install -y "$@"