Gpg: Keyserver Receive Failed: No Name

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

@ubuntu:~/Desktop$ gpg --keyserver keys.gnupg.net --recv-key 908F435E
gpg: keyserver receive failed: No name
0

5 Answers

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
4

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

curl -sSL  | gpg2 --import
curl -sSL  | gpg2 --import
1

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

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

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

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest