Skip to content

Commit b992fef

Browse files
committed
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.
1 parent 788ef4e commit b992fef

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ 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+
for f in $(grep -lsF packages.microsoft.com /etc/apt/sources.list.d/*); do
19+
sudo rm -f "$f"
20+
done
21+
1622
# Fail if the image layout changed, so this cannot become a silent no-op.
1723
if ! grep -sq "mirror+file:$list" /etc/apt/sources.list.d/ubuntu.sources; then
1824
echo "error: ubuntu.sources does not use mirror+file:$list" >&2

0 commit comments

Comments
 (0)