Skip to content

Ubuntu-26.04 does not have builds of Ruby <= 3.1 #954

Closed
rbenv/ruby-build
#2649

Description

@nobu

GitHub now rolling ubuntu-latest from 24.04 to 26.04.
As a result, workflows that have been assigned to a 26.04 runner are failing to install Ruby using setup-ruby.

Activity

  1. ntkme commented on Oct 22, 2026

    @ntkme
    Collaborator

    Please see this comment: #943 (comment)

    Are you using a ruby version that's not the latest patch version on any current supported branch?

    Otherwise, if you're using a supported ruby version but it still fails, can you please post a link to failed workflow or provide the config options you are using for setup-ruby?

  2. hsbt commented on Oct 31, 2026

    @hsbt
    Member

    Even the latest patches of Ruby 3.1 and older, such as 3.1.7, are missing on ubuntu-26.04 because they fail to build with GCC 15 there. ruby/ruby-builder#31 adds the flags to build them.

  3. changed the title [-]Packages for ubuntu-26.04[/-] [+]Ubuntu-26.04 does not have builds of Ruby <= 3.1[/+] on Oct 31, 2026
  4. eregon commented on Oct 31, 2026

    @eregon
    Member

    Thanks for raising this.
    With the default changing I agree we should try to fix this ASAP.

  5. eregon commented on Oct 31, 2026

    @eregon
    Member

    Previous discussion on this: #922 (comment)

  6. reopened this on Oct 31, 2026
  7. self-assigned this
    on Oct 31, 2026
  8. eregon commented on Oct 31, 2026

    @eregon
    Member

    Ruby 2.4 - 3.1 (latest patch releases only, so that's ruby-2.4.10, ruby-2.5.9, ruby-2.6.10, ruby-2.7.8, ruby-3.0.7, ruby-3.1.7) are now built on ubuntu-26.04 and are being added to CI in #961.

    Thank you @hsbt for the help with ruby/ruby-builder#31 and @Earlopain for investigating this back in #922.
    I didn't realize back then the potential issue with workflows failing once ubuntu-latest changes from 24.04 to 26.04, my bad.

    I will not build Ruby 2.3 and older, even OpenSSL fails to link, and Ruby 2.2 didn't build on 24.04 either, and they require workarounds which seem less reasonable and more risky.
    See ruby/ruby-builder#31 for details

  9. added a commit that references this issue on Nov 1, 2026
  10. eregon commented on Nov 3, 2026

    @eregon
    Member

    Update: 2.3.8 is also supported now thanks to rbenv/ruby-build#2651.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions