You are not logged in.

#1 2014-11-27 05:07:54

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

[SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Hi there,

I just upgraded my system and since gnupg replaced dirmngr, everytime i try to add a new key or even refresh the keys i get this error:

gpg: refreshing 77 keys from hkp://pool.sks-keyservers.net
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr

I tried to delete the /etc/pacman.d/gnupg directory and then run "pacman-key --init" again, but i don't think that could help.

# pacman-key --init
# pacman-key --refresh-keys
gpg: refreshing 77 keys from hkp://pool.sks-keyservers.net
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver.
# pacman-key -r <KEY>
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr

In this topic [0], the OP solved the problem by rebooting, but i did it just after upgrade (i always do that), but it didn't solve the problem.

[0] - https://bbs.archlinux.org/viewtopic.php?id=190324

How can i solve this?

Last edited by AbaddonOrmuz (2014-11-27 17:06:39)

Offline

#2 2014-11-27 06:01:12

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,765

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Did you try renaming the .gnupg folder?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2014-11-27 06:40:39

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,479

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Mine no problem.

$ pacman-key -V
pacman-key (pacman) 4.1.2

What's the version out there?
I suppose some problem with the connection.


do it good first, it will be faster than do it twice the saint wink

Offline

#4 2014-11-27 06:43:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,247
Website

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

TheSaint wrote:

Mine no problem.

$ pacman-key -V
pacman-key (pacman) 4.1.2

What's the version out there?
I suppose some problem with the connection.


The error message makes it pretty clear this is related to the gnupg upgrade. Please focus more on the content of the OPs posts than your own post count...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2014-11-27 07:05:46

cowsquad
Member
From: portland oregon
Registered: 2012-12-15
Posts: 16

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

I am facing the same issue as the OP's one

Offline

#6 2014-11-27 07:10:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,247
Website

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Did you follow loafer's suggestion?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#7 2014-11-27 07:13:16

cowsquad
Member
From: portland oregon
Registered: 2012-12-15
Posts: 16

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

jasonwryan wrote:

Did you follow loafer's suggestion?

No, but I just fixed by running the following command as root smile
# dirmngr </dev/null

Offline

#8 2014-11-27 14:01:56

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,781
Website

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Which is done in the gnupg update script...  Is your system fully up to date?

Offline

#9 2014-11-27 17:06:00

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

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

I thing it's solved now:

I deleted my $HOME/.gnupg and /root/.gnupg directory and then:

# dirmngr --debug-level guru
dirmngr[20243.0]: error opening '/root/.gnupg/dirmngr_ldapservers.conf': No such file or directory
dirmngr[20243.0]: permanently loaded certificates: 0
dirmngr[20243.0]:     runtime cached certificates: 0
dirmngr[20243.0]: failed to open cache dir file '/root/.gnupg/dirmngr-cache.d/DIR.txt': No such file or directory
dirmngr[20243.0]: creating directory '/root/.gnupg'
dirmngr[20243.0]: creating directory '/root/.gnupg/dirmngr-cache.d'
dirmngr[20243.0]: new cache dir file '/root/.gnupg/dirmngr-cache.d/DIR.txt' created
dirmngr[20243.0]: DBG: chan_3 -> # Home: ~/.gnupg
# Home: ~/.gnupg
dirmngr[20243.0]: DBG: chan_3 -> # Config: [none]
# Config: [none]
dirmngr[20243.0]: DBG: chan_3 -> OK Dirmngr 2.1.0 at your service
OK Dirmngr 2.1.0 at your service

I created an empty dirmngr_ldapservers.conf file and now i can refresh and add new keys big_smile

Thank you all cool

Last edited by AbaddonOrmuz (2014-12-05 21:19:41)

Offline

#10 2014-11-30 13:16:41

Carl Karl
Member
Registered: 2013-06-12
Posts: 226

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks for sharing your solution. I had a similar problem when I tried to

# pacman-key -r 962DDE58

just adding an empty /root/.gnupg/dirmngr_ldapservers.conf solved that problem.

Offline

#11 2014-12-04 22:35:39

jmontano
Member
From: Colombia
Registered: 2013-04-29
Posts: 9

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks AbaddonOrmuz, your solution worked for me!

Offline

#12 2014-12-05 07:29:36

dharmaslacker
Member
From: Seattle, WA, USA
Registered: 2014-12-04
Posts: 6

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

I just encountered the same issue, and this solution of creating an empty dirmngr_ldapservers.conf file fixed it.

Offline

#13 2014-12-06 10:08:39

asanka126
Member
Registered: 2014-12-06
Posts: 1

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks @cowsquad.
I had the same problem. Running "dirmngr </dev/null"  fixed the problem for me.

Offline

#14 2014-12-08 05:14:59

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,020

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

No, none work for me, but I read that this could be a bug in gnupg 1 so I will wait until or Allan come to a solution for pacman 4.2 or gnupg fix it.

PD: gnupg 2.1.1-beta17 supposedly fix the issue

Last edited by Jristz (2014-12-08 05:16:12)


Well, I suppose that this is somekind of signature, no?

Offline

#15 2014-12-12 12:57:37

daniel_shub
Member
Registered: 2012-06-21
Posts: 42

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

I am having what I think is the same issue with gnupg 2.1.0-6, but the Bug # 42798 says that the issue has been fixed in gnupg-2.1.0-4. Has the bug resurfaced?

Offline

#16 2014-12-26 13:01:42

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 670
Website

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks @loafer and @cowsquad.
Had a different error and your inputs (posts #2 and #9) helped solve it.

Note: Error happened on a laptop where gnupg upgrade had been done, following the official note. 'pacman-key -r <unofficial-repo-key>' couldn't import the key. Output was something like 'gpg: <SNIP> unsupported server family'.


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#17 2014-12-31 19:57:42

nicolito
Member
Registered: 2014-02-25
Posts: 7

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks for the solution AbaddonOrmuz. I had the same issue as Carl Karl.
I added the empty dirmngr_ldapservers.conf to ~/.gnupg/ though, and it worked fine.

Offline

#18 2015-02-19 18:28:16

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 605

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

btw. this one still exists on a freshly installed arch box. There is some issue there with the packaging and/or gnupg.


Ability is nothing without opportunity.

Offline

#19 2015-02-19 19:32:35

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Hi STiAT,

take a look to this thread https://bbs.archlinux.org/viewtopic.php … 9#p1501589.
Also note that the Bug # 42798 has been reopened.
However, I could be wrong but if you have problems I think you should open a new thread since this has been already marked as [SOLVED].

Last edited by mauritiusdadd (2015-02-19 19:33:01)


registered linux user #588260github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#20 2015-02-26 02:35:51

Pazzo di Borgo
Member
Registered: 2015-02-26
Posts: 1

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks @dharmaslacker for the solution

Offline

#21 2015-03-06 10:46:31

belissner
Member
Registered: 2014-01-15
Posts: 1

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Thanks for the solution AbaddonOrmuz. I also added the empty dirmngr_ldapservers.conf to  /root/.gnupg/, and it worked fine.That worked me too! THX! smile

Last edited by belissner (2015-03-06 10:48:21)

Offline

#22 2015-07-08 01:22:54

ludenticus
Member
Registered: 2013-05-14
Posts: 13

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

# dirmngr </dev/null

It worked as well for me as I tried to add the repo-ck.

Offline

#23 2015-09-06 03:36:34

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 657
Website

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

Why does this also resolve the issue?

# touch /root/.gnupg/dirmngr_ldapservers.conf

Something shouldn't be depending on that file to exist.

Offline

#24 2015-10-17 10:06:59

Klagor
Member
Registered: 2015-10-17
Posts: 11

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

SOLVED

moved to https://bbs.archlinux.org/viewtopic.php?id=203944

Last edited by Klagor (2015-10-18 11:15:28)

Offline

#25 2016-01-24 22:21:41

luuuciano
Member
Registered: 2007-01-27
Posts: 309

Re: [SOLVED] {pacman-key} keyserver refresh failed: No dirmngr

quequotion wrote:

Why does this also resolve the issue?

# touch /root/.gnupg/dirmngr_ldapservers.conf

Something shouldn't be depending on that file to exist.

Been there! thanks for the tip... solved here too


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

Board footer

Powered by FluxBB