actions / runner-images

GitHub Actions runner images
MIT License
9.17k stars 2.84k forks source link

apt upstream broken in ubuntu-latest (22.04.4 version 20240422.1.0) #9768

Closed driesvints closed 2 weeks ago

driesvints commented 2 weeks ago

Description

Basically exactly the same as https://github.com/actions/runner-images/issues/7210 which is happening for us on our private repo. Running sudo apt-get update will trigger it. I tried adding sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list to prevent it but it didn't help unfortunately.

      - name: Install ghostscript
        run: |
          sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
          sudo apt-get update
          sudo apt install ghostscript
Screenshot 2024-04-30 at 15 55 10

Platforms affected

Runner images affected

Image version and build link

I don't understand where to find this sorry. Where can I find "Set up job"?

Is it regression?

Yes, see link above to old closed issue

Expected behavior

I'd expect to be able to run an apt-get update on GitHub Actions.

Actual behavior

It's failing and giving an invalid signature error.

Repro steps

Run sudo apt-get update in GitHub Actions on ubuntu-latest.

mikhailkoliada commented 2 weeks ago

Hey! your workflow indicates problems with the ondrej/php repo which is not a part of the ubuntu-latest runner, please report the problem to the repository owner

driesvints commented 2 weeks ago

Thanks @mikhailkoliada. Eventually we managed to solve this one by placing the apt-get update before the setup-php action. I have no idea why that solved things but glad it did.