Skip to content

Commit 2925c21

Browse files
committed
Merge pull request #1946 from bettio/fix-cross-build-apt-problem
Fix cross-build apt problem These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 2b10328 + f3e98cd commit 2925c21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,15 @@ jobs:
388388
- name: "Setup cross compilation architecture"
389389
if: matrix.library-arch != ''
390390
run: |
391+
# Replace Azure mirrors with official Ubuntu repositories
392+
sudo sed -i 's|azure\.||g' /etc/apt/sources.list
393+
sudo sed -i 's|azure\.||g' /etc/apt/sources.list.d/*.list 2>/dev/null || true
394+
395+
# Handle new DEB822 format
396+
if [ -f /etc/apt/apt-mirrors.txt ]; then
397+
sudo sed -i 's|azure\.||g' /etc/apt/apt-mirrors.txt
398+
fi
399+
391400
sudo dpkg --add-architecture ${{ matrix.arch }}
392401
cat > ${RUNNER_TEMP}/cross-compile-sources.list <<EOF
393402
deb [arch=${{ matrix.arch }}] http://ports.ubuntu.com/ noble main restricted

0 commit comments

Comments
 (0)