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
I had the same issue but on Debian and I took an alternate approach. In the error message, it says this: "Try to install GPG v2 and then fetch the public key:" with a gpg2
command after it. I went and installed gpg2 first and ran the command it told me to and it worked for me.
sudo apt-get install gnupg2
sudo apt-get install dirmngr
gpg2 --recv-keys
#