From edf405eda68107cbcde672ab06bd96d1e54f7d3b Mon Sep 17 00:00:00 2001 From: scito Date: Fri, 6 Mar 2026 11:50:17 +0100 Subject: [PATCH] fix: add 'apt-get update' before installing libzbar0 in CI workflows avid error after "sudo apt-get install -y libzbar0": The following additional packages will be installed: libdjvulibre-text libdjvulibre21 libimath-3-1-29t64 libjxr-tools libjxr0t64 libmagickcore-6.q16-7-extra libopenexr-3-1-30 libv4l-0t64 libv4lconvert0t64 libwmflite-0.2-7 ... Err:1 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 libdjvulibre-text all 3.5.28-2ubuntu0.24.04.1 404 Not Found [IP: 91.189.92.21 80] Err:2 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 libdjvulibre21 arm64 3.5.28-2ubuntu0.24.04.1 404 Not Found [IP: 91.189.92.21 80] Fetched 1590 kB in 3s (487 kB/s) E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/d/djvulibre/libdjvulibre-text_3.5.28-2ubuntu0.24.04.1_all.deb 404 Not Found [IP: 91.189.92.21 80] E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/d/djvulibre/libdjvulibre21_3.5.28-2ubuntu0.24.04.1_arm64.deb 404 Not Found [IP: 91.189.92.21 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Error: Process completed with exit code 100. --- .github/workflows/ci.yml | 1 + .github/workflows/ci_docker.yml | 3 +++ .github/workflows/ci_release.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32d1b8b..c43f09e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,7 @@ jobs: - name: Install zbar shared lib for QReader (Linux) if: runner.os == 'Linux' run: | + sudo apt-get update sudo apt-get install -y libzbar0 - name: Install zbar shared lib for QReader (macOS) if: runner.os == 'macOS' diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index 1f9226e..604f6a7 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -48,6 +48,7 @@ jobs: # avoid building if there are testing errors - name: Run smoke test run: | + sudo apt-get update sudo apt-get install -y libzbar0 python -m pip install --upgrade pip pip install -U -r requirements-dev.txt @@ -174,6 +175,7 @@ jobs: # avoid building if there are testing errors - name: Run smoke test run: | + sudo apt-get update sudo apt-get install -y libzbar0 python -m pip install --upgrade pip pip install -U -r requirements-dev.txt @@ -302,6 +304,7 @@ jobs: # avoid building if there are testing errors - name: Run smoke test run: | + sudo apt-get update sudo apt-get install -y libzbar0 python -m pip install --upgrade pip pip install -U -r requirements-dev.txt diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 5eb124c..7bf764a 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -131,6 +131,7 @@ jobs: # avoid building if there are testing errors - name: Run smoke test run: | + sudo apt-get update sudo apt-get install -y libzbar0 python -m pip install --upgrade pip pip install -U -r requirements-dev.txt @@ -304,6 +305,7 @@ jobs: - name: Install zbar shared lib for QReader (Linux) if: runner.os == 'Linux' run: | + sudo apt-get update sudo apt-get install -y libzbar0 - name: Install zbar shared lib for QReader (macOS) if: runner.os == 'macOS'