I found a tutorial in this site showing how to install Ruby. The problem is I found the terminal is asking to install packages that are already installed
Reading package lists...
Installing required packages: gawk, g++,
libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev,
sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool,
bison, libffi-dev