Error installing ruby on rvm using wsl1

Hey guys, i am facing an issue installing ruby for my development setup using rvm as stated on the docs link here.

the only thing i modified to setup rvm is :

sudo apt update
sudo apt install curl g++ gnupg gcc autoconf automake bison build-essential libc6-dev \
 	libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool \
 	libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev \
 	libreadline-dev libssl-dev
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
curl -sSL https://get.rvm.io | sudo bash -s stable
sudo usermod -a -G rvm `whoami`

Note: am using window 11Pro wsl1.

Here is the error :

thanks

Try WSL2? It’s a bit odd from the screenshot taken, but it looks like Ruby 2.7.5 needs to be installed before 3.0.0. That doesn’t seem right. You might want to go straight for 3.2.2.

Another option is to use Docker to perform the build.