You are not logged in.

#1 2021-08-19 15:52:07

MediocreTom
Member
Registered: 2021-08-19
Posts: 2

[SOLVED] gpg: keyserver receive failed: No name

When attempting to downloading "moc_notify-git" from the AUR using "yay", gpg fails to import the key.

:: PGP keys need importing:
 -> BADA62B7B55622A8B764DC6CB1B08540E74FE8A2, required by: moc_notify-git
==> Import? [Y/n] y
:: Importing keys with gpg...
gpg: keyserver receive failed: No name
problem importing keys

When attempting to refresh, all keys seem to fail with errors varying from "error reading key: (No data/General error/Connection refused)".

I have tried solutions from the following forum posts:
https://bbs.archlinux.org/viewtopic.php?id=267750
https://bbs.archlinux.org/viewtopic.php?id=233362

Both offering no solution that worked for me. I'm not quite a newbie anymore as I've spent about the past year trying to learn as much about Linux as possible.
So far I've been able to figure out my issues but this one has made me feel like a newbie.
Any help is appreciated and if there is any outputs you would like to see, just let me know.

Edit: "sudo pacman-key --refresh-keys" outputs the varying error messages "error reading key: (No data/General error/Connection refused)".

Last edited by MediocreTom (2021-08-29 14:06:34)

Offline

#2 2021-08-19 16:00:51

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] gpg: keyserver receive failed: No name

You can set the keyserver in your gnupg dirmngr configuration. If that file does not exist and you have the newest gnupg package, that should not be necessary, though.

# ~/.gnupg/dirmngr.conf
#
keyserver hkps://keyserver.ubuntu.com

Edit: For your specific package, the maintainer/developer did not upload their key to the common keyservers, but uses another. Please read the AUR comments.
https://aur.archlinux.org/packages/moc_notify-git/

Last edited by progandy (2021-08-19 16:10:07)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2021-08-19 16:23:42

MediocreTom
Member
Registered: 2021-08-19
Posts: 2

Re: [SOLVED] gpg: keyserver receive failed: No name

You can set the keyserver in your gnupg dirmngr configuration. If that file does not exist and you have the newest gnupg package, that should not be necessary, though.

I am currently using gpg 2.2.29, so the newest version.

Edit: For your specific package, the maintainer/developer did not upload their key to the common keyservers, but uses their own. Please read the AUR comments.
https://aur.archlinux.org/packages/moc_notify-git/

Thank you, I had complete forgot to check the AUR itself and instead kept referring to the github.
That allowed me to install the package. I'm just still confused on why "sudo pacman-key --refresh-keys" outputs so many errors. I thought the two were connected.

Offline

Board footer

Powered by FluxBB