I\'m trying to install Ruby on Ubuntu 16.04. However when I enter to following command to terminal:
$ \\curl -sSL https://get.rvm.io | bash -s stable --ruby
In addition to the previous answers, if you are behind a firewall, the following command might not work for you.
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
In that case, you can use the following command to get the keys -
sudo apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-keys <