Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gpg: keyserver receive failed: No name

Tags:

gnupg

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 
like image 421
Erf Avatar asked Feb 16 '21 01:02

Erf


People also ask

What happened to GnuPG's main keyserver?

The main keyserver that GnuPG has been using for a very long time, is no more. So you need to change your ~/.gnupg/gpg.conf file to have:

How do I change the signing key for PacMan-key keyring?

You can try changing the gpg.conf of your pacman-key keyring in /etc/pacman.d/gnupg/ to use the hkps:// keyserver instead of the hkp:// keyserver, since hkps runs over the common 443 port also used for HTTPS. Alternatively, install the archlinux-keyring package from testing as it contains my new signing key also.

How do I solve the Ubuntu keyserver problem?

I solved it by switching from keyserver.ubuntu.com to keys.gnupg.net in the apt-key command. Thanks for contributing an answer to Ask Ubuntu!


Video Answer


1 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 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 
like image 68
Jacob van Lingen Avatar answered Sep 30 '22 00:09

Jacob van Lingen