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

When I run this command :

gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

I keep getting the error :

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

Does anyone know how to resolve this?

Thanks IS


You can download the signature and import it manually.

curl -#LO
gpg --import mpapis.asc

And now install RVM. That should work

\curl -sSL | bash


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

rm -rf ~/.gnupg/

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 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:// --recv-keys D39DC0E3. Which succeeds for a reason I don't understand.

Try this

gpg --keyserver --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

an IP instead of hkp://

I recently came across this issue while trying to upgrade from docker to docker for Mac on one of our Ubuntu images for ruby.

Here is my workaround:

gpg --keyserver $(getent hosts | awk '{ print $1 }' | head -1) --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

This resolved the issue and seemed to be the least hacky solution.

It worked for me after I added google's DNS in network settings.

The right workaround to this issue is:

gpg --keyserver $(ping --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Need Your Help

How to iterate over function arguments

python arguments

I have a Python function accepting several string arguments def foo(a, b, c): and concatenating them in a string.

Which .NET Memcached client do you use, EnyimMemcached vs. BeITMemcached?

c# caching memcached

Seems like both EnyimMemcached ( and BeITMemcached ( are popular .NET Memcached libraries. Both are reasonably active