paru/yay "No name" when updating packages
If paru/yay outputs something like:
:: Proceed with installation? [Y/n]: y
:: keys need to be imported:)
B0F4253373F8F6F510D42178520A9993A1C052F8 wanted by: nginx-rtmp-1.18.0-3
8FD3D9A8D3800305A9FFF259D1742AD60D811D58 wanted by: spotify-1:1.1.67.586-1
474E22316ABF4785A88C6E8EA2C794A986419D8A wanted by: llvm7-7.1.0-4 (llvm7-libs)
B6C8F98282B944E3B0D5C2530FC3042E345AD05D wanted by: llvm7-7.1.0-4 (llvm7-libs)
:: import? [Y/n]: y
gpg: keyserver receive failed: No name
error: failed to run: gpg --recv-keys B0F4253373F8F6F510D42178520A9993A1C052F8 8FD3D9A8D3800305A9FFF259D1742AD6
0D811D58 474E22316ABF4785A88C6E8EA2C794A986419D8A B6C8F98282B944E3B0D5C2530FC3042E345AD05D:
First make sure ~/.gnupg/gpg.conf
has a valid keyserver like:
keyserver hkps://keys.openpgp.org:443
Also make sure that /etc/pacman.d/gnupg/gpg.conf
has a valid keyserver.
f.ex:
keyserver hkps://keys.openpgp.org:443
and the keyserver is actually available.
For me this file initially had hkp://pool.sks-keyservers.net
or hkp://keyserver.kjsl.com:80
which are now deprecated and no longer operating.
Available keyservers: * hkps://keys.openpgp.org:443 * hkp://keyserver.ubuntu.com:80