encryption failed: No dirmngr

Ingo Klöcker kloecker at kde.org
Wed Mar 29 14:42:59 CEST 2023


On Mittwoch, 29. März 2023 12:20:08 CEST Fourhundred Thecat via Gnupg-users 
wrote:
> I am getting this error:
> 
> $ gpg --lock-never --no-verbose --batch --yes --pinentry-mode loopback -e -r
> 'name at domain.com' -o zz.gpg zz gpg: failed to start the dirmngr
> '/usr/bin/dirmngr': No such file or directory gpg: connecting dirmngr at
> '/var/lib/asterisk/.gnupg/S.dirmngr' failed: No such file or directory gpg:
> error retrieving 'name at domain.com' via WKD: No dirmngr
> ogpg: name at domain.com: skipped: No dirmngr
> gpg: zz: encryption failed: No dirmngr
> .
> this is on a server where gpg worked before without problems.

Could it be that the used key has expired? This would explain why all of the 
sudden gpg tries to look for the key via WKD. It should only do this if the 
local lookup failed.

To prevent automatic remote key lookup add
no-auto-key-locate
to your gpg.conf.

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20230329/56c2228e/attachment.sig>


More information about the Gnupg-users mailing list