Windows WSLのubuntu20.04にRubyをインストールしようとして数回失敗。
以前、Chromebook(Debian: penguin)にRubyをインストールしたときはあっさり入ったのになぜ?と言うことで、成功していたChromebookのhistryを見て同様のことをwsl のubuntu20.04に行ったらあっさりインストールできた。
rubyinstall
sudo apt-get install ruby -y
これだけで出来た。
(というか、apt-get install rubyって普通ですよね。Rubyのバージョン管理ツールrbenvやらを意識したインストールで失敗したので・・・。)
作業を行った2021年09月時点では ruby 2.7.4 (ver. 2の最新)がインストールされた。
rbenvとか使用しないのであればとりあえず。