Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Key issue with installing RVM (Ruby Version Manager)

I am trying to install the Ruby Version Manager( RVM) on my CentOS 6.6 machine.

I followed the instructions on the home page at https://rvm.io/rvm/install

When I run this command :

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

I keep getting the error :

gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpgkeys: HTTP fetch error 6: Couldn't resolve host 'keys.gnupg.net'
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

Does anyone know how to resolve this?

Thanks IS

like image 390
user1805458 Avatar asked Mar 23 '15 18:03

user1805458


People also ask

What is RVM install?

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Is RVM deprecated?

∞RVM PackagesThis functionality has been deprecated by autolibs which is now enabled by default, however if you still need it - it is there.


2 Answers

You can download the signature and import it manually.

curl -#LO https://rvm.io/mpapis.asc
gpg --import mpapis.asc

And now install RVM. That should work

\curl -sSL https://get.rvm.io | bash

Note:

If you have a .gnupg directory, remove it first.

rm -rf ~/.gnupg/
like image 106
Sanjay Karki Avatar answered Oct 01 '22 15:10

Sanjay Karki


The one at fault here is virtualbox's dns proxy. The issue manifests itself only under vagrant, because the latter enables it (dns proxy). By default it's disabled. So, one way to remedy it is to disable dns proxy (VBoxManage modifyvm ... --natdnsproxy off). Or change 10.0.2.3 in /etc/resolv.conf to your host's resolver IP address. And do gpg again, while it didn't change. Or, do gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys D39DC0E3. Which succeeds for a reason I don't understand.

like image 39
x-yuri Avatar answered Oct 01 '22 16:10

x-yuri