gpg: keyserver receive failed: No name

Solution 1:

I stumbled upon this today, and found the fix at Maven Central Repository Documentation. The SKS Keyserver Network is being deprecated and probably gone by now. Just use an other GPG key server like:

  • keyserver.ubuntu.com
  • keys.openpgp.org
  • pgp.mit.edu

So for example

gpg --keyserver keyserver.ubuntu.com --recv-key 908F435E

Solution 2:

Try these command one by one, It works for me.

curl -sSL https://rvm.io/mpapis.asc | gpg2 --import
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import

Solution 3:

Please use this commands one by one.

curl -sSL https://rvm.io/mpapis.asc | gpg --import -

curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -

Solution 4:

As an alternative to the options above, from the RVM security documentation,

If you encounter problem with the key server above, try a different one. Some alternatives are presented below:

  • hkp://ipv4.pool.sks-keyservers.net
  • hkp://pgp.mit.edu
  • hkp://keyserver.pgp.com

The second one worked for me, hkp://pgp.mit.edu

Solution 5:

Replace $key with the corresponding $key you want to add.####

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys $key`

this works on Ubuntu20.04