ci: change the azure mirror URL in /etc/apt/sources.list too

This commit is contained in:
Delyan Angelov 2025-09-08 10:12:14 +03:00
parent 9158aed80a
commit 2c392f848b
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
echo "APT MIRRORS BEFORE:" echo "APT MIRRORS BEFORE:"; cat /etc/apt/apt-mirrors.txt
cat /etc/apt/apt-mirrors.txt
sudo sed -i 's@http://azure.archive.ubuntu.com@http://archive.ubuntu.com@gm' /etc/apt/apt-mirrors.txt sudo sed -i 's@http://azure.archive.ubuntu.com@http://archive.ubuntu.com@gm' /etc/apt/apt-mirrors.txt
echo "APT MIRRORS AFTER:" echo "APT MIRRORS AFTER:"; cat /etc/apt/apt-mirrors.txt
cat /etc/apt/apt-mirrors.txt
echo "ls -la /etc/apt/sources.list.d/" echo "ls -la /etc/apt/sources.list.d/"; ls -la /etc/apt/sources.list.d/
ls -la /etc/apt/sources.list.d/
for f in /etc/apt/sources.list.d/*; do echo "####### $f ######"; cat $f; done for f in /etc/apt/sources.list.d/*; do echo "####### $f ######"; cat $f; done
echo "APT SOURCES BEFORE:"; echo "ls -la /etc/apt/sources.list"; ls -la /etc/apt/sources.list; cat /etc/apt/sources.list
sudo sed -i 's@http://azure.archive.ubuntu.com@http://archive.ubuntu.com@gm' /etc/apt/sources.list
echo "APT SOURCES AFTER:"; echo "ls -la /etc/apt/sources.list"; ls -la /etc/apt/sources.list; cat /etc/apt/sources.list