[pkg-gnupg-maint] Bug#863557: gpg: Prints message on stderr about primary-keyring file existence

Guillem Jover guillem at debian.org
Sun May 28 13:57:14 UTC 2017

Package: gnupg
Version: 2.1.21-2
Severity: normal


I've got configured my personal keyring as the primary one so that I
can add additional third-party ones, something like this:

  # Set the primary keyring
  primary-keyring ~/.gnupg/pubring.kbx

  # Additional keyrings: Debian
  keyring /usr/share/keyrings/debian-keyring.gpg
  keyring /usr/share/keyrings/debian-maintainers.gpg
  keyring /usr/share/keyrings/debian-nonupload.gpg
  keyring /usr/share/keyrings/debian-role-keys.gpg

  # Keyservers
  keyserver hkps://hkps.pool.sks-keyservers.net

But this makes gpg, emit the following message on stderr:

 gpg: keyblock resource '<HOME>/.gnupg/pubring.kbx': File exists

which at least messes up with mutt when sending encrypted mail, as it
detects that there is stuff on stderr and considers it a problem, and
then aborts the send action.

If the notice/warning/error was because the file is missing that would
make some sense, but as it is, it looks just unnecessarily chatty? :)


More information about the pkg-gnupg-maint mailing list