Ubuntu 20.04 no longer supports gcc-5 and libssl1.0-dev, if you try to install ruby versions prior to 2.4 you will find compilation problems as it depends on gcc5 and openssl-1.0.
Add to your /etc/apt/sources.list
file
deb http://cz.archive.ubuntu.com/ubuntu bionic main universe
deb http://security.ubuntu.com/ubuntu bionic-security main