Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fix APT mirrors for Debian Packages job (#35393)

Andrey Babushkind2ad2e0b6472
diff --git a/.github/workflows/job_debian_packages.yml b/.github/workflows/job_debian_packages.yml
index 68083296604..2d90d2c9ff2 100644
--- a/.github/workflows/job_debian_packages.yml
+++ b/.github/workflows/job_debian_packages.yml
@@ -37,7 +37,10 @@ jobs:
- name: Switch Ubuntu APT sources to Azure mirrors
if: runner.os == 'Linux'
run: |
+ # compatible with both Ubuntu 22.04 and 24.04, which have different formats of sources.list files
+ touch /etc/apt/sources.list.d/ubuntu.sources
sed -i -E 's|http://(archive\|security).ubuntu.com/ubuntu|http://azure.archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list
+ sed -i -E 's|http://(archive\|security).ubuntu.com/ubuntu|http://azure.archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list.d/ubuntu.sources
- name: Download OpenVINO debian packages
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0