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.
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -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'
|
||||
|
||||
3
.github/workflows/ci_docker.yml
vendored
3
.github/workflows/ci_docker.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/ci_release.yml
vendored
2
.github/workflows/ci_release.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user