I ran this command and it solved my problem.

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

Now I see recent versions of Ruby.

Answer from tim_xyz on Stack Overflow
🌐
GitHub
github.com › rbenv › rbenv
GitHub - rbenv/rbenv: Manage your app's Ruby environment · GitHub
To install the latest version, it is recommended to install rbenv using git. ... Set up your shell to load rbenv.
Starred by 16.7K users
Forked by 1.4K users
Languages   Shell 97.8% | Ruby 1.6%
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-20-04
How To Install Ruby on Rails with rbenv on Ubuntu 20.04 | DigitalOcean
September 1, 2022 - Node.js installed using the official PPA, as explained in option 2 of How To Install Node.js on Ubuntu 20.04. A few Rails features, such as the Asset Pipeline, depend on a JavaScript Runtime. Node.js provides this functionality. Ruby relies on several packages that you can install through your package manager. Once those are installed, you can install rbenv and use it to install Ruby.
🌐
GitHub
collectionbuilder.github.io › cb-docs › docs › software › ruby_linux
Linux - Ruby Install | CollectionBuilder Documentation
Once rbenv is updated, you can ... is based on your old versions). Note: there is technically an Ubuntu package available so you can use sudo apt install rbenv ruby-build....
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04
How To Install Ruby on Rails with rbenv on Ubuntu 18.04 | DigitalOcean
July 14, 2018 - Expertise in DevOps areas including Linux, Ubuntu, Debian, and more. ... This textbox defaults to using Markdown to format your answer. You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link! ... Nice tutorial. I come from rvm the last time I touched Ruby. This feels a bit simpler, like there’s less magic going on behind the scenes. ... Excellent tutorial! ... “Then add the command ~/.rbenv/bin/rbenv init to your ~/.basrc file so rbenv loads automatically:”
🌐
DEV Community
dev.to › jessalejo › installing-ruby-using-rbenv-on-your-wsl-ubuntu-system-183f
Installing Ruby using rbenv on your WSL Ubuntu system - DEV Community
August 10, 2024 - Install the necessary dependencies for rbenv and Ruby. sudo apt install -y build-essential libssl-dev libreadline-dev zlib1g-dev libffi-dev libyaml-dev
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install ruby on ubuntu
How to Install Ruby on Ubuntu | phoenixNAP KB
December 16, 2025 - Learn how to install Ruby and Ruby on Rails on Ubuntu using the official repository or third-party tools like Rbenv and RVM.
Find elsewhere
🌐
Ubuntu
manpages.ubuntu.com › manpages › bionic › man1 › rbenv.1.html
Ubuntu Manpage: rbenv - Simple Ruby Version Management
ruby-build package): $ rbenv install 2.4.0 Switch between different Ruby interpreters: $ rbenv global 2.4.0 $ ruby -v ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] $ rbenv global system $ ruby -v ruby [whatever version of Ruby Debian provides by default] The original rbenv README ...
🌐
Shapehost
shape.host › home › resources › step-by-step guide: installing ruby on rails with rbenv on ubuntu 22.04
How To Install Ruby & Rails Using rbenv on Ubuntu 22.04 - Shapehost
December 1, 2023 - In this tutorial, we have walked you through the process of installing Ruby on Rails with rbenv on an Ubuntu 22.04 server. By following these steps, you now have a solid environment for developing and deploying Ruby on Rails applications.
🌐
Linuxize
linuxize.com › home › ruby › how to install ruby on ubuntu 20.04
How to Install Ruby on Ubuntu 20.04 | Linuxize
October 26, 2021 - From the standard Ubuntu repositories. This is the easiest way to install Ruby on Ubuntu and should be sufficient for most use cases. The version included in the Ubuntu repositories is 2.7.0. Using Rbenv.
🌐
OperaVPS
operavps.com › docs › how to install ruby on ubuntu
Install Ruby on Ubuntu [using Rbenv, RVM, Repository, Snap]
February 12, 2026 - Then confirm the installation process by typing Y and pressing the Enter button. 1. At this step, it is time to download the shell script file to download and run the Rbnev tool. For this purpose, run the curl command: curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
🌐
Centron
centron.de › startseite › how to install ruby on ubuntu 24.04 using rbenv, rvm, and apt
Install Ruby on Ubuntu 24.04 with rbenv, RVM, or APT
May 26, 2025 - Download and run the latest rbenv installation script: ... The installation process typically takes between 3 to 5 minutes. Apply the installed version as the system default: ... The Ruby Version Manager (RVM) is a tool for handling multiple ...
🌐
Medium
medium.com › @sourav.moitr › installing-rbenv-and-ruby-on-ubuntu-16-04-cc9471d2674e
Installing rbenv and ruby on Ubuntu 16.04 | by Sourav Moitra | Medium
May 30, 2018 - sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev git -y ... Now all rbenv and ruby-build at its place go ahead we need to install ruby to install any version of ruby we need to do:
🌐
Vultr
docs.vultr.com › how-to-install-ruby-on-ubuntu-24-04
How to Install Ruby on Ubuntu 24.04 - Complete Guide | Vultr Docs
January 31, 2025 - This article explains how to install Ruby on Ubuntu 24.04 using rbenv and RVM.
🌐
Untitled Publication
blog.kerolloz.dev › how-to-install-rbenv-on-ubuntu-or-debian-based-system
How to Install rbenv on Ubuntu or Debian-based System
March 14, 2023 - Learn how to install rbenv, a popular version manager for Ruby, on your Unix-based system in this step-by-step guide.
🌐
GitHub
github.com › rbenv › ruby-build › discussions › 2198
How to decide what version to install from <rbenv install -l> · rbenv/ruby-build · Discussion #2198
May 31, 2023 - Note that the version of rbenv that is packaged and maintained in the Debian and Ubuntu repositories is out of date. To install the latest version, it is recommended to install rbenv using git.
Author   rbenv
🌐
DevPress
devpress.csdn.net › linux › 62e79587a254c06d462e2b40.html
How To Install Ruby on Rails with rbenv on Ubuntu 20.04_ubuntu_weixin_0010034-Linux
August 1, 2022 - In this tutorial, you installed rbenv and gem to install the entire Ruby on Rails framework. From here, you can begin creating your web development application projects. If you want to learn more about making those environments more robust you can check out our series on How To Code In Ruby. # ubuntu # ruby on rails # ruby on rails # 视频编解码
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-22-04
How To Install Ruby on Rails with rbenv on Ubuntu 22.04 | DigitalOcean
January 25, 2023 - First, list all the available versions of Ruby: ... Output2.7.7 3.0.5 3.1.3 3.2.0 jruby-9.4.0.0 mruby-3.1.0 picoruby-3.0.0 truffleruby-22.3.1 truffleruby+graalvm-22.3.1 Only latest stable releases for each Ruby implementation are shown. Use 'rbenv install --list-all / -L' to show all local versions.
🌐
Greenhost
greenhost.cloud › how-to-install-ruby-on-rails-on-ubuntu-24-04-lts-with-rbenv
How To Install Ruby On Rails on Ubuntu 24.04 LTS with rbenv – Sustainable WebHosting Solutions
November 17, 2024 - sudo apt install -y curl git build-essential libssl-dev libreadline-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev libsqlite3-dev libffi-dev · Clone the rbenv repository from GitHub to your home directory: