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

Failing with current ubuntu:latest container #854

Open
3 of 5 tasks
ay0o opened this issue Apr 26, 2024 · 5 comments
Open
3 of 5 tasks

Failing with current ubuntu:latest container #854

ay0o opened this issue Apr 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ay0o
Copy link

ay0o commented Apr 26, 2024

Description:
Starting somewhere between yesterday and today, setup-python is failing with the current ubuntu:latest container.

Action version:
v4, v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
All versions.

Repro steps:
Use the action with any job with container: ubuntu:latest

Expected behavior:
Python is configured

Actual behavior:

 Version 3.12 was not found in the local cache
  Error: The version '3.12' with architecture 'x64' was not found for this operating system.
  The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Workaround:
Instead of latest, use another tag such as 22.04.

@ay0o ay0o added bug Something isn't working needs triage labels Apr 26, 2024
@HarithaVattikuti
Copy link
Contributor

Hello @ay0o
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

@ay0o
Copy link
Author

ay0o commented Apr 29, 2024

this is the SHA of the current latest: sha256:562456a05a0dbd62a671c1854868862a4687bf979a96d48ae8e766642cd911e8

@bdlake
Copy link

bdlake commented Apr 29, 2024

Experienced the same error on our self-hosted runners using ubuntu:latest base image. Just as @ay0o suggested, using ubuntu:22.04 for latest 22.04 image fixed the issue. Seems that latest 24.04 image caused it https://hub.docker.com/layers/library/ubuntu/latest/images/sha256-28a2b328825ac02db5c29d9356bfba80ba6c4b6ebfcac5a91a4656fa3453775a?context=explore

@ay0o
Copy link
Author

ay0o commented May 1, 2024

the content of /etc/lsb-release has not changed and uses the same format as expected by the code of the action in the _getOsVersion() function:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04 LTS"

Also, just in case something odd happened, os.platform() returns linux as expected:

> os.platform()
'linux'

EDIT:

ah well... never mind, the issue is as simple as Ubuntu 24.04 is missing here https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

@ay0o
Copy link
Author

ay0o commented May 1, 2024

So, in summary:

Ubuntu 24.04 was released a week ago and since then, marking the beginning of this issue because the tag latest replaced the previous version.

However, python-versions has not caught up with it and it's missing the release for 24.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants