Page MenuHome GnuPG

gpg --homedir as root fails to convert old keyrings
Closed, ResolvedPublic

Description

Running the following command as root worked with gnupg-2.0.26 but fails with gnupg-2.1:

  gpg --homedir /etc/pacman.d/gnupg/ --recv-keys 941C2A25

The error is:

  gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
  gpg: keyserver receive failed: No dirmngr

The issue seems to be that converting the keyring from the old format (<2.1) to the new one (2.1)
requires dirmngr which fails to launch for some reason. However, if I run:

  dirmngr < /dev/null

or even

  gpg --recv-keys 941C2A25

(without --homedir), then this seems to initialize what is required because subsequent runs of

  gpg --homedir /etc/pacman.d/gnupg/ --recv-keys 941C2A25

to work.

Is there a clean solution to this migration problem?

Details

External Link
https://bugs.archlinux.org/task/42798
Version
2.1

Event Timeline

bisson set External Link to https://bugs.archlinux.org/task/42798.Nov 18 2014, 4:42 AM
bisson added projects: Arch, gnupg, Bug Report.
bisson set Version to 2.1.
bisson added a subscriber: bisson.

Can you please try with the latest version (2.1.4 will be released tomorrow)

This seems to work with gnupg-2.1.4. Thanks!

werner claimed this task.