Page MenuHome GnuPG

exits with a fatal error regarding missing trustdb although key is imported
Closed, ResolvedPublic

Description

The following command returns a gpg fatal error regarding being unable to open
trustdb.gpg even though trusted.gpg ends up containing the key being imported.

$ /usr/bin/gpg --no-default-keyring --no-auto-check-trustdb --trust-model
always --keyring /tmp/trusted.gpg --secret-keyring /tmp/secring.gpg
--trustdb-name /tmp/trustdb.gpg --quiet --batch --import
/home/bdmurray/source-trees/software-properties/upstream/tests/data/testkey.gpg

This is true whether or not --trustdb-name is provided as an argument:

$ /usr/bin/gpg --no-default-keyring --no-auto-check-trustdb --trust-model
always --keyring /tmp/trusted.gpg --secret-keyring /tmp/secring.gpg --quiet
--batch --import
/home/bdmurray/source-trees/software-properties/upstream/tests/data/testkey.gpg
gpg: fatal: can't open `/home/bdmurray/.gnupg/trustdb.gpg': No such file or
directory

I believe these changes are related to the Changelog entry from 2013-10-11
regarding trustdb. A similar issue has been reported in the debian bug tracker:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737128&archived=no&mbox=no

I've been testing this on the development release of Ubuntu using gnupg version
1.4.16-1ubuntu1.

Details

External Link
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737128
Version
1.4.16-1ubuntu1

Event Timeline

bdmurray set Version to 1.4.16.
bdmurray set External Link to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737128&archived=no&mbox=no.
bdmurray added a subscriber: bdmurray.
werner changed Version from 1.4.16 to 1.4.16-1ubuntu1.Mar 6 2014, 4:06 PM
werner changed External Link from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737128&archived=no&mbox=no to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737128.Mar 6 2014, 4:11 PM

Fixed with commit 23191d7.
This should be the same patch as used by Debian.

werner claimed this task.
werner removed a project: Restricted Project.