I had a similar issue and it was because of openssl in the newer ubuntu. You can install the older openssl by running the command
rvm pkg install openssl
and then when you install ruby you have to supply the openssl-dir that is provided after installing via rvm pkg
rvm install 3.0.0 --with-openssl-dir=/usr/share/rvm/usr