Erf
Erf

Reputation: 1263

Error "gpg: keyserver receive failed: No name"

I started using GNU Privacy Guard. An error occurs when trying to import a key from any server:

gpg --keyserver keys.gnupg.net --recv-key 908F435E

Output:

gpg: keyserver receive failed: No name

Upvotes: 118

Views: 117585

Answers (6)

Aaquib Jawed
Aaquib Jawed

Reputation: 581

Please use these commands one by one:

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

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

Or you can refer to the rvm.io.

Upvotes: 0

user17533332
user17533332

Reputation: 21

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 Ubuntu 20.04 (Focal Fossa).

Upvotes: 2

Waseem Anwar
Waseem Anwar

Reputation: 299

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

Upvotes: 29

ReeSilva_SPFC
ReeSilva_SPFC

Reputation: 1

keys.gnupg.net is just an alias to pool.sks-keyservers.net. You can point directly to this second address and it will work.

Upvotes: -6

Jacob van Lingen
Jacob van Lingen

Reputation: 9537

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 another GPG key server like:

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

So for example

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

Upvotes: 180

wellthatdidn'twork
wellthatdidn'twork

Reputation: 193

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

Upvotes: 5

Related Questions