You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm upgrading my project's CI to use the new ubuntu-26.04 Github Runner image (x86), and setup-ruby fails with:
Run ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
token: ***
Using 3.4.2 as input from file .ruby-version
Modifying PATH
Entries added to PATH to use selected Ruby:
/opt/hostedtoolcache/Ruby/3.4.2/x64/bin
Downloading Ruby
https://github.com/ruby/ruby-builder/releases/download/ruby-3.4.2/ruby-3.4.2-ubuntu-26.04-x64.tar.gz
Took 0.14 seconds
Error: Error: Unavailable version 3.4.2 for ruby on ubuntu-26.04
You can request it at https://github.com/ruby/setup-ruby/issues
Cause: Unexpected HTTP response: 404
at /home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:50283:15
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async body (/home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:372:14)
I ended up upgrading to 3.4.11, yes - but that meant some regressions (specifically, we were mistakenly calling some private methods, and 3.4.3 triggered that).
We were able to fix that, but, yes - if supporting older releases is meant to be an exception, the error message could be improved. Upgrade to x.y.z, or request exceptional support if you consider it worthy at https://github.com/ruby/setup-ruby/issues?
The link could even be to an issue or discussion explaining when it would make sense to request support vs simply upgrading.
PS: Not even sure how complex it'd be to do the Upgrade to x.y.z part, resolving the specific version - but definitely welcome if viable.
For anyone landing here after encountering this error on ubuntu-26.04: as noted in this thread, newer runner images only preinstall the latest patch of each Ruby series (e.g., 3.4.11 is present, but 3.4.2 is not). The same applies to Python (3.8 and 3.9 are omitted, as are older patch releases from the 26.04 toolcache).
The same class of pin will break in other repos when ubuntu-latest flips between Oct 19 and Nov 19, so it is worth a quick grep for ruby-version / .ruby-version / python-version pins across your workflows before the window opens.
Activity
david-uhlig commentedon Oct 1, 2026
If you can upgrade to the latest patch version Ruby
3.4.11theubuntu-26.04runner should work right away.eregon commentedon Oct 4, 2026
Yes, in general we only build the latest patch releases of every series for new runners.
That should be better documented though, including in this error message.
matiasgarciaisaia commentedon Oct 5, 2026
I ended up upgrading to 3.4.11, yes - but that meant some regressions (specifically, we were mistakenly calling some
privatemethods, and 3.4.3 triggered that).We were able to fix that, but, yes - if supporting older releases is meant to be an exception, the error message could be improved.
Upgrade to x.y.z, or request exceptional support if you consider it worthy at https://github.com/ruby/setup-ruby/issues?The link could even be to an issue or discussion explaining when it would make sense to request support vs simply upgrading.
PS: Not even sure how complex it'd be to do the
Upgrade to x.y.zpart, resolving the specific version - but definitely welcome if viable.alapha888 commentedon Oct 13, 2026
For anyone landing here after encountering this error on
ubuntu-26.04: as noted in this thread, newer runner images only preinstall the latest patch of each Ruby series (e.g., 3.4.11 is present, but 3.4.2 is not). The same applies to Python (3.8 and 3.9 are omitted, as are older patch releases from the 26.04 toolcache).The same class of pin will break in other repos when
ubuntu-latestflips between Oct 19 and Nov 19, so it is worth a quick grep forruby-version/.ruby-version/python-versionpins across your workflows before the window opens.Disclosure: I maintain a small open-source checker that automates this scan and flags version pins that differ between 24.04 and 26.04: https://github.com/alapha888/runner-drift-audit