actions / runner-images

GitHub Actions runner images
MIT License
9.97k stars 3.02k forks source link

ubuntu:latest (20.04) 404 error for the lintian package download #5603

Closed fin-ger closed 2 years ago

fin-ger commented 2 years ago

Description

Running

sudo apt-get install -y make gettext libglib2.0-bin zip devscripts debhelper rpm

in the ubuntu:latest (20.04) environment fails with a 404 error for the lintian package download.

Virtual environments affected

Image version and build link

Version: 20220515.1

https://github.com/deinstapel/cpupower/runs/6578203651?check_suite_focus=true

Is it regression?

Maybe, the logs of the last successful build are not available anymore: https://github.com/deinstapel/cpupower/runs/4460945245?check_suite_focus=true

Expected behavior

lintian should be succesful to install. I have tried the exact same command in (sudo stripped) in the docker ubuntu:20.04 image and it works.

Actual behavior

The install fails with a 404 for the lintian package.

Repro steps

Run

sudo apt-get install -y make gettext libglib2.0-bin zip devscripts debhelper rpm

within the ubuntu:latest (20.04) environment and the build will fail with a 404 error for the lintian package.

al-cheb commented 2 years ago

https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners

Note: Always run sudo apt-get update before installing a package. In case the apt index is stale, this command fetches and re-indexes any available packages, which helps prevent package installation failures.