Skip to content

Upgrade from ubuntu18 to ubuntu22 failed #469

@PavelSusloparov

Description

@PavelSusloparov

Ensure the following before filing this issue

  • I verified it reproduces with the latest version with - uses: ruby/setup-ruby@v1 (see Versioning policy)

  • [] I tried to reproduce the issue locally by following the workflow steps (including all commands done by ruby/setup-ruby, except for Downloading Ruby & Extracting Ruby),
    and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)

Are you running on a GitHub-hosted runner or a self-hosted runner?

GitHub-hosted runner

The workflow code or a link to the workflow file

- uses: ruby/setup-ruby@v1
  env:
    ImageOS: ubuntu22
  with:
    ruby-version: 3.0.2
    bundler-cache: true


### Link to the log of a failed workflow job, or to a gist with the output

https://gist.github.com/PavelSusloparov/9fc9e328dd17e06751eff1521e8e9340

### The command and output of the failing step

```shell
Run ruby/setup-ruby@v1
/bin/docker exec  1e6d83e0d3886871d7791a6945dd4dd64b228596261ae4c98cfdb84c4b9b19d1 sh -c "cat /etc/*release | grep ^ID"
Modifying PATH
  Entries added to PATH to use selected Ruby:
    /opt/hostedtoolcache/Ruby/3.0.2/x64/bin
Downloading Ruby
  https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.0.2-ubuntu-22.04.tar.gz
  Took   0.87 seconds
Extracting  Ruby
  /bin/tar -xz -C /opt/hostedtoolcache/Ruby/3.0.2 -f /__w/_temp/dec130f4-1643-4745-bea1-e95b68fd6c1b
  Took   0.40 seconds
Print Ruby version
  /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby --version
  /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby)
  /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
  /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
  /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
  /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
  Took   0.00 seconds
Error: The process '/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby' failed with exit code 1


### Any other notes?

Ubuntu18 support was removed in https://github.com/ruby/setup-ruby yesterday.
I tried to upgrade to ubuntu22, but this failed with the error I provided in above.

Metadata

Metadata

Assignees

No one assigned

    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