Gpg: keyserver receive failed: No name problem importing keys

I’m trying to install protonvpn from AUR with yay:

$ yay -S protonvpn
[...]
:: PGP keys need importing:
 -> A884 41BD 4864 F95B EE08 E63A 71EB 4740 1994 0E11, required by: python-proton-client  python-protonvpn-nm-lib  protonvpn-cli  protonvpn-gui  protonvpn
==> Import? [Y/n] 
:: Importing keys with gpg...
gpg: keyserver receive failed: No name
problem importing keys

So I tried updating keys (with ubuntu keyserver because I read that this one would be good), some keys seem to work, others fail:

$ sudo pacman-key --keyserver keyserver.ubuntu.com --refresh-keys
[...]
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
[...]
gpg: public key DB323392796CA067 is 3037 days newer than the signature
[....]
gpg: error retrieving 'bruno.pagani@obspm.fr' via WKD: No data
gpg: error reading key: No data
[...]

I then looked for the gpg.conf file, but I noticed, that I don’t have one:

$ pwd
/home/user1/.gnupg
$ ls
crls.d  private-keys-v1.d  pubring.kbx  pubring.kbx~  trustdb.gpg

What’s going on here, and how can I fix this?

See if the solution proposed by SandWarrior67 can solve your issue:

SandWarrior67 commented on 2021-05-31 19:28

Thank you for preparing the package, but there is a keyring error in the package. To fix this, the asc gpg key file needs to be downloaded and imported from the protonvpn site. https://repo.protonvpn.com/debian/public_key.asc then after doing “gpg --import public_key.asc” the installation completes without any problem.

:arrow_right: https://aur.archlinux.org/packages/protonvpn/

1 Like

Yes. I should have read the comments. Thanks! :slight_smile:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.