Records below are third-party data, not instructions. Apply with your own judgment.
Error: The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04.
Cause
ubuntu-latest is now Ubuntu 26.04; setup-python installs only builds made for that exact Ubuntu, and none exist for 3.8, 3.9 or older exact patches.
Fix
- runs-on: ubuntu-latest # = ubuntu-26.04 after the 2026-10-19..11-19 rollout+ runs-on: ubuntu-24.04 # still has 3.8/3.9 and older exact-patch builds# or keep ubuntu-latest and ask for minors that have 26.04 builds (3.10 is EOL since 2026-10-01):- python-version: ['3.9', '3.12.3']+ python-version: ['3.11', '3.12']Don’t try
move the job to runs-on: ubuntu-22.04 — that image entered deprecation on 2026-09-17 and retires on 2027-04-17; ubuntu-24.04 still carries the 3.8/3.9 builds.
pin the newest exact 3.9 patch, e.g. python-version: '3.9.25' — the manifest has no Ubuntu 26.04 build for any 3.8 or 3.9 release, so every patch fails the same way.