From b1fac6f423d9d2ca32b762913c1cff8e5f458397 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 10 Jan 2023 09:37:23 +0100 Subject: [PATCH] CI: Work-around the "503 Service Unavailable" erros on azure.archive.ubuntu.com --- build-scripts/gh-actions-setup-inv | 1 + tasks.py | 1 + 2 files changed, 2 insertions(+) diff --git a/build-scripts/gh-actions-setup-inv b/build-scripts/gh-actions-setup-inv index 2a5f441351..39bde3d281 100755 --- a/build-scripts/gh-actions-setup-inv +++ b/build-scripts/gh-actions-setup-inv @@ -5,6 +5,7 @@ exit 101 EOF " sudo chmod 755 /usr/sbin/policy-rc.d +sudo sed -i 's/azure\.//' /etc/apt/sources.list sudo apt-get update sudo apt-get -qq -y dist-upgrade sudo apt-get -qq -y --no-install-recommends install python3-pip diff --git a/tasks.py b/tasks.py index 95c9406166..39ea6840ef 100644 --- a/tasks.py +++ b/tasks.py @@ -119,6 +119,7 @@ auth_test_deps = [ # FIXME: we should be generating some of these from shlibde @task def apt_fresh(c): + c.sudo('sed -i \'s/azure\.//\' /etc/apt/sources.list') c.sudo('apt-get update') c.sudo('apt-get dist-upgrade') -- 2.47.2