You are not logged in.

#1 2016-03-29 22:24:41

MLG_Sinon
Member
Registered: 2016-03-29
Posts: 7

gpg: keyserver refresh failed: No keyserver available

Hi, I was trying to install nfinality Bundle for Arch Linux (64 Bit) and trying to add key on pacman using this command

sudo pacman-key -r 962DDE58

I was getting this error

gpg: keyserver receive failed: No keyserver available
==> ERROR: Remote key not fetched correctly from keyserver.

I did some search and found this https://bbs.archlinux.org/viewtopic.php … 9#p1501589. After last step

sudo pacman-key --refresh-keys

I am getting this output

gpg: refreshing 85 keys from hkp://pool.sks-keyservers.net
gpg: keyserver refresh failed: No keyserver available
==> ERROR: A specified local key could not be updated from a keyserver.

How can I solve this ? Sorry for bad english/grammer mistakes.

Last edited by MLG_Sinon (2016-03-29 22:26:44)

Offline

#2 2016-03-29 22:31:00

headkase
Member
Registered: 2011-12-06
Posts: 1,840

Re: gpg: keyserver refresh failed: No keyserver available

sudo dirmngr < /dev/null

Might fix the issue, I know it was an issue a while ago but I don't know if it was officially fixed.

If it just sits there after you issue the command then Control + C to break out of it, that's fine to do.

Edit: and then refresh your keys again after that command.

Last edited by headkase (2016-03-29 22:31:44)

Offline

#3 2016-03-29 22:35:32

MLG_Sinon
Member
Registered: 2016-03-29
Posts: 7

Re: gpg: keyserver refresh failed: No keyserver available

headkase wrote:
sudo dirmngr < /dev/null

Might fix the issue, I know it was an issue a while ago but I don't know if it was officially fixed.

If it just sits there after you issue the command then Control + C to break out of it, that's fine to do.

Edit: and then refresh your keys again after that command.

Thanks for quick reply but I already tried that and same results.

Last edited by MLG_Sinon (2016-03-29 22:36:13)

Offline

#4 2016-03-31 11:57:24

AbaddonOrmuz
Member
Registered: 2014-07-05
Posts: 40
Website

Re: gpg: keyserver refresh failed: No keyserver available

Try using another key server:

sudo pacman-key --keyserver pgp.mit.edu -r 962DDE58

Offline

#5 2016-03-31 17:17:58

MLG_Sinon
Member
Registered: 2016-03-29
Posts: 7

Re: gpg: keyserver refresh failed: No keyserver available

AbaddonOrmuz wrote:

Try using another key server:

sudo pacman-key --keyserver pgp.mit.edu -r 962DDE58

Thanks For replying, but same results. I did everything from wiki but no success.

Offline

#6 2016-05-16 00:36:49

TonyC
Member
Registered: 2014-09-22
Posts: 1

Re: gpg: keyserver refresh failed: No keyserver available

I did all of the above and everything in the wiki also with no success until I added a keyserver to ~/.gnupg/gpg.conf and rebooted. 
#
keyserver pgp.mit.edu

Last edited by TonyC (2016-05-16 00:38:23)

Offline

#7 2016-09-13 17:46:41

ebal
Member
From: Athens, Greece
Registered: 2009-05-26
Posts: 223
Website

Re: gpg: keyserver refresh failed: No keyserver available

I have the exactly same problem.

Any ideas on how to fix this ?

thanks in advance


https://balaskas.gr
Linux System Engineer - Registered Linux User #420129

Offline

#8 2016-12-23 18:09:42

AnaconDuck
Member
Registered: 2016-12-23
Posts: 3

Re: gpg: keyserver refresh failed: No keyserver available

I'm getting the same error with "gpg: keyserver receive failed: No keyserver available". I tried with MIT and Ubuntu keyserver along with the default one and they all give me no keyserver found. This seems different to all the dirmngr errors others had as I tried all the recommended fixes that worked for others but it is not working in this case. Has any of you found a solution? Thank you.

Offline

#9 2016-12-23 18:10:59

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,289

Re: gpg: keyserver refresh failed: No keyserver available

AnaconDuck wrote:

I'm getting the same error with "gpg: keyserver receive failed: No keyserver available". I tried with MIT and Ubuntu keyserver along with the default one and they all give me no keyserver found. This seems different to all the dirmngr errors others had as I tried all the recommended fixes that worked for others but it is not working in this case. Has any of you found a solution? Thank you.

It is a totally different issue than what's in this thread. Known problem with 2.1.17-1, fixed in 2.1.17-2.

Offline

#10 2016-12-23 18:34:06

AnaconDuck
Member
Registered: 2016-12-23
Posts: 3

Re: gpg: keyserver refresh failed: No keyserver available

Sorry I must not have written my error clearly, but I am getting the exact same errors as the OP when I perform the same commands.

When I try to receive the infinality key.

sudo pacman-key -r 962DDE58
gpg: keyserver receive failed: No keyserver available
==> ERROR: Remote key not fetched correctly from keyserver

When I try to refresh the keys using pacman-key

sudo pacman-key --refresh-keys
gpg: refreshing 88 keys from hkp://pool.sks-keyservers.net
gpg: keyserver refresh failed: No keyserver available
==> ERROR: A specified local key could not be updated from a keyserver

So this is a known issue? Thank you

Offline

#11 2016-12-23 18:34:53

AlexIL
Member
From: Israel
Registered: 2016-01-02
Posts: 45
Website

Re: gpg: keyserver refresh failed: No keyserver available

I have the same problem on a newly installed arch, none of the solutions mentioned here and on other threads worked.
It seems I get the same error for every keyserver.

Offline

#12 2016-12-23 19:33:42

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: gpg: keyserver refresh failed: No keyserver available

if your using gnupg 2.1.16-2 not the 17(though it seems 17-2 will work as Scimmia says) ones does killall dirmngr work if you just downgraded without reboot etc. you need to downgrade to use the servers this includes pacman and aur.

Offline

#13 2016-12-23 20:14:01

AnaconDuck
Member
Registered: 2016-12-23
Posts: 3

Re: gpg: keyserver refresh failed: No keyserver available

Thanks so much everyone, Scimmia was right. I enabled the testing repository and upgraded to 17-2 and after reboot, pacman-key works fine.

Offline

#14 2017-01-05 16:19:25

rh995
Member
Registered: 2012-03-09
Posts: 75

Re: gpg: keyserver refresh failed: No keyserver available

I am now running gnupg version 2.1.17-3 and the issue occurs.

EDIT: fixed it by

sudo touch /root/.gnupg/dirmngr_ldapservers.conf
sudo killall dirmngr

I don't know if both these are necessary, but they are sufficient.

Last edited by rh995 (2017-01-05 16:24:42)

Offline

#15 2017-01-11 17:33:21

chappjc
Member
Registered: 2015-09-23
Posts: 4

Re: gpg: keyserver refresh failed: No keyserver available

To fix this, only these steps worked for me:

1. Upgrade to gnupg 2.1.17-3 (from 2.1.17-1)
2. sudo killall dirmngr

Then refresh-keys worked.

Last edited by chappjc (2017-01-11 17:33:44)

Offline

#16 2017-01-11 19:56:20

AlexIL
Member
From: Israel
Registered: 2016-01-02
Posts: 45
Website

Re: gpg: keyserver refresh failed: No keyserver available

chappjc wrote:

To fix this, only these steps worked for me:

1. Upgrade to gnupg 2.1.17-3 (from 2.1.17-1)
2. sudo killall dirmngr

Then refresh-keys worked.

I can confirm it worked for me.

Offline

#17 2017-01-25 18:14:40

xantares
Member
Registered: 2013-02-14
Posts: 16

Re: gpg: keyserver refresh failed: No keyserver available

I am stuck by this problem too, with latest gnupg (2.1.17-4)

I went through your solutions, but
- tried sudo touch /root/.gnupg/dirmngr_ldapservers.conf, sudo killall dirmngr
- tried to change keyserver "keyserver hkp://keyserver.kjsl.com:80" in /etc/pacman.d/gnupg/gpg.conf
- tried to run dirmng directly, launches ok
- tried deleting pacman cache: sudo pacman -Sc
- tried rebuilding everythin: pacman-key init, pacman-key populate archlinux

Interesting instructions are available here, but no soultion fixed my problem:
https://wiki.archlinux.org/index.php/Pa … mport_keys

Offline

#18 2017-01-26 17:40:26

xantares
Member
Registered: 2013-02-14
Posts: 16

Re: gpg: keyserver refresh failed: No keyserver available

today 2.1.18 came in, not better, also tried

rm -R /etc/pacman.d/gnupg/
rm -R /root/.gnupg/
gpg --refresh-keys
pacman-key --init && pacman-key --populate archlinux manjaro
pacman-key --refresh-keys

from http://www.cupoflinux.com/SBB/index.php?topic=2959.15

Offline

#19 2017-01-26 17:56:10

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,289

Re: gpg: keyserver refresh failed: No keyserver available

xantares wrote:

today 2.1.18 came in, not better, also tried

rm -R /etc/pacman.d/gnupg/
rm -R /root/.gnupg/
gpg --refresh-keys
pacman-key --init && pacman-key --populate archlinux manjaro
pacman-key --refresh-keys

from http://www.cupoflinux.com/SBB/index.php?topic=2959.15

If you're on manjaro, you're in the wrong place.

Offline

#20 2017-01-26 20:49:32

xantares
Member
Registered: 2013-02-14
Posts: 16

Re: gpg: keyserver refresh failed: No keyserver available

well spoted it's arch, no luck without the "manjaro" arg either

Offline

#21 2017-01-26 23:54:35

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,289

Re: gpg: keyserver refresh failed: No keyserver available

Stock nsswitch.conf?

Offline

#22 2017-01-27 21:45:51

xantares
Member
Registered: 2013-02-14
Posts: 16

Re: gpg: keyserver refresh failed: No keyserver available

yes

Offline

#23 2017-01-28 19:29:05

titaniumbones
Member
Registered: 2013-12-20
Posts: 49

Re: gpg: keyserver refresh failed: No keyserver available

I'm seeing something that I think is pretty similar.:

➜  pacman -Qs gnupg
local/gnupg 2.1.18-1
    Complete and free implementation of the OpenPGP standard
local/gpgme 1.7.1-2
    A C wrapper library for GnuPG
local/lib32-libgcrypt 1.7.3-1
    General purpose cryptographic library based on the code from GnuPG (32-bit)
local/libassuan 2.4.3-1
    IPC library used by some GnuPG related software
local/libgcrypt 1.7.5-1
    General purpose cryptographic library based on the code from GnuPG
local/qca-qt4 2.1.1-6
    Qt Cryptographic Architecture
➜  gpg --refresh-keys --keyserver hkp://pgp.mit.edu
gpg: refreshing 16 keys from hkp://pgp.mit.edu
gpg: keyserver refresh failed: No keyserver available
➜  

stock nsswitch.conf here, too.  Thank for any help!

Offline

#24 2017-02-01 16:56:39

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,289

Re: gpg: keyserver refresh failed: No keyserver available

Every time I've come across this with 2.1.18, it's been an old nsswitch.conf. Post yours, let's make sure.

Offline

#25 2017-02-01 17:18:35

titaniumbones
Member
Registered: 2013-12-20
Posts: 49

Re: gpg: keyserver refresh failed: No keyserver available

# Begin /etc/nsswitch.conf

passwd: files
group: files
shadow: files

publickey: files

hosts: files mdns_minimal [NOTFOUND=return] dns myhostname
# hosts: files dns myhostname
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

# End /etc/nsswitch.conf

not immediately obvious to me how I determine whether it's old or not.  Date of creation is Oct. 30 2016, when i initially installed.

Offline

Board footer

Powered by FluxBB