Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux CI: Update apt package list before installing package #419

Conversation

aoirint
Copy link
Contributor

@aoirint aoirint commented Nov 6, 2023

Recent test CI jobs on Ubuntu 20.04 were failed due to the out-dated apt package list cache of CI virtual machine.

The package list should be updated before installing any apt package on CI.

This pull request add apt-get update before apt-get install to update apt package list.

In the future, maybe this installation command should be removed since libsndfile.so is already bundled in soundfile package on Linux x64 ( #364 ).
Or CI should be rewrited to test both the system library and the bundled library.
This pull request is intended to maintain the current CI behavior without major changes.

Failed CI log ( https://github.com/bastibe/python-soundfile/actions/runs/6613147987/job/18360406630 )

$ sudo apt-get install libsndfile1
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libflac8 libvorbisenc2
The following NEW packages will be installed:
  libflac8 libsndfile1 libvorbisenc2
0 upgraded, 3 newly installed, 0 to remove and 15 not upgraded.
Need to get 344 kB of archives.
After this operation, 1554 kB of additional disk space will be used.
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libflac8 amd64 1.3.3-1ubuntu0.2 [103 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 libvorbisenc2 amd64 1.3.6-2ubuntu1 [70.7 kB]
Ign:4 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libsndfile1 amd64 1.0.28-7ubuntu0.1
Ign:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsndfile1 amd64 1.0.28-7ubuntu0.1
Ign:4 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libsndfile1 amd64 1.0.28-7ubuntu0.1
Err:4 mirror+file:/etc/apt/apt-mirrors.txt focal-updates/main amd64 libsndfile1 amd64 1.0.28-7ubuntu0.1
  404  Not Found [IP: 40.81.13.82 80]
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/libs/libsndfile/libsndfile1_1.0.28-7ubuntu0.1_amd64.deb  404  Not Found [IP: 40.81.13.82 80]
Fetched 174 kB in 1s (140 kB/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.

@bastibe bastibe merged commit ae8d9c0 into bastibe:master Dec 10, 2023
3 of 31 checks passed
@aoirint aoirint deleted the patch-ci-update-apt-package-list-before-install branch December 10, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants