Last night I installed ruby 3.0.0 and ruby on rails 6.1.1 on my Ubuntu system by following the instructions at this link http://railsapps.github.io/installrubyonrails-ubuntu.htm