Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/scripts/setup-apt-mirrors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down