Skip to content

Commit 1dfbd9d

Browse files
authored
Merge pull request #4909 from grandixximo/ci-drop-ms-repo
CI: drop the runner image's packages.microsoft.com source
2 parents 788ef4e + 8e93694 commit 1dfbd9d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/scripts/setup-apt-mirrors.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ set -x
1313

1414
list=/etc/apt/apt-mirrors.txt
1515

16+
# The image also ships packages.microsoft.com, which we install nothing
17+
# from; when it errors (403 on 2026-11-27) apt-get update fails outright.
18+
grep -lsF packages.microsoft.com /etc/apt/sources.list.d/* | xargs -r sudo rm -f
19+
1620
# Fail if the image layout changed, so this cannot become a silent no-op.
1721
if ! grep -sq "mirror+file:$list" /etc/apt/sources.list.d/ubuntu.sources; then
1822
echo "error: ubuntu.sources does not use mirror+file:$list" >&2

0 commit comments

Comments
 (0)