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.2` version `20230219.1`) #7210

Closed ryankurte closed 1 year ago

ryankurte commented 1 year ago

Description

it looks like something has gone wrong with the upstream packaging / repo signing (not technically the image, but, impacting the image). this appears to be intermittent, and has occured in march in the past https://github.com/actions/runner-images/issues/2919, so perhaps one of the repository mirrors is out of sync / hasn't picked up updated keys?

calling apt update or equivalent results in:

Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
...
Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [13.3 kB]
Reading package lists...
E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy Release' is no longer signed.

this may be a recurrence of https://github.com/actions/runner-images/issues/5656

Platforms affected

Runner images affected

Image version and build link

20230219.1

Is it regression?

yes (this is an upstream package repo issue, the same image worked yesterday)

Expected behavior

apt update should work

Actual behavior

apt update fails with E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy Release' is no longer signed.

Repro steps

create an action using ubuntu-latest with a step invoking apt

ddobranic commented 1 year ago

@ryankurte thank you, we will take a look.

terrynguyen255 commented 3 weeks ago

I got this again, today, on Github Action with runs-on: ubuntu-latest @ddobranic Could you have a look?

alxmcs commented 3 weeks ago

Faced the same problem as @terrynguyen255 - Github Action and ubuntu:latest.

E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease' is no longer signed.

I believe yesterday everything was fine 🤷‍♂️

amalsgit commented 3 weeks ago

Started facing the same issue on CI runs today

E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease' is no longer signed.
driesvints commented 2 weeks ago

Hi @mikhailkoliada. Sorry to ping you here directly but could I draw your attention to this issue? This is also happening for us on our build and judging from the activity above this seems like a widespread issue atm.

driesvints commented 2 weeks ago

Want to come back here to say that for us this was solved by placing the apt-get update before out setup-php step in our GHA script. I have no idea why that solved things but glad it did.