From c355e999136f71d5e345bb30bc609903da563366 Mon Sep 17 00:00:00 2001 From: NimBold Date: Wed, 19 Aug 2026 20:39:51 +0330 Subject: [PATCH] fix(ci): normalize Ubuntu package mirrors - replace unreachable Azure runner mirrors with the HTTPS Ubuntu archive - retain bounded apt retries and timeout safeguards --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0114217..bc41997 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,16 @@ jobs: - name: Install Linux dependencies if: runner.os == 'Linux' run: | + # The hosted Ubuntu image can expose an unreachable Azure mirror in + # its apt sources while the public Ubuntu archive is reachable. + # Normalize every apt source, including the image's mirror list, + # before refreshing indexes so a transient runner-local mirror does + # not consume the whole job timeout. + sudo find /etc/apt -type f \ + -exec sed -i \ + -e 's#http://azure\.archive\.ubuntu\.com#https://archive.ubuntu.com#g' \ + -e 's#https://azure\.archive\.ubuntu\.com#https://archive.ubuntu.com#g' \ + {} + sudo env DEBIAN_FRONTEND=noninteractive timeout --foreground --signal=TERM --kill-after=30s 10m apt-get \ -o Acquire::Retries=3 \ -o Acquire::http::Timeout=30 \