From 8e936948092849abe09f4ce42ae17d89e345ebd9 Mon Sep 17 00:00:00 2001 From: Luca Toniolo <10792599+grandixximo@users.noreply.github.com> Date: Fri, 27 Nov 2026 22:49:14 +1100 Subject: [PATCH] CI: drop the runner image's packages.microsoft.com source Its 403 on 2026-11-27 failed apt-get update. We install nothing from it. --- .github/scripts/setup-apt-mirrors.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/scripts/setup-apt-mirrors.sh b/.github/scripts/setup-apt-mirrors.sh index 18a2bef0c04..82f4e3dcd34 100755 --- a/.github/scripts/setup-apt-mirrors.sh +++ b/.github/scripts/setup-apt-mirrors.sh @@ -13,6 +13,10 @@ set -x list=/etc/apt/apt-mirrors.txt +# The image also ships packages.microsoft.com, which we install nothing +# from; when it errors (403 on 2026-11-27) apt-get update fails outright. +grep -lsF packages.microsoft.com /etc/apt/sources.list.d/* | xargs -r sudo rm -f + # Fail if the image layout changed, so this cannot become a silent no-op. if ! grep -sq "mirror+file:$list" /etc/apt/sources.list.d/ubuntu.sources; then echo "error: ubuntu.sources does not use mirror+file:$list" >&2