Mailing List Archive

[jdassen@wi.leidenuniv.nl] Bug#24240: gnupg: import keyring fails without existing one
Hi,

This is a bug report reported via the Debian Bug Tracking System[1],
please reply to 24240@bugs.debian.org and jdassen@wi.leidenuniv.nl as
well as the list.

[1] http://www.debian.org/Bugs/

--
James
~Yawn And Walk North~ http://yawn.nocrew.org/
------- Start of forwarded message -------
Subject: Bug#24240: gnupg: import keyring fails without existing one
Reply-To: jdassen@wi.leidenuniv.nl, 24240@bugs.debian.org
Resent-From: jdassen@wi.leidenuniv.nl
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: James Troup <jjtroup@comp.brad.ac.uk>
Resent-Date: Sat, 04 Jul 1998 15:33:01 GMT
Resent-Message-ID: <handler.24240.B.89956588814402@bugs.debian.org>
Resent-Sender: iwj@debian.org
Message-ID: <19980704171421.14136@wi.leidenuniv.nl>
Date: Sat, 4 Jul 1998 17:14:21 +0200
From: jdassen@wi.leidenuniv.nl
To: submit@bugs.debian.org

Package: gnupg
Version: 0.3.0-2

Importing a keyring fails when ~/.gnupg/pubring.gpg does not exist already:

penguin ray 17:19 ~> ls -ald ~/.gnupg
/bin/ls: /home/ray/.gnupg: No such file or directory
Exit 1
penguin ray 17:20 ~> gpg --import /usr/share/keyrings/debian-keyring.gpg
gpg (GNUPG) 0.3.0a; Copyright (C) 1998 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

gpg: secret keyblock resource '/home/ray/.gnupg/secring.gpg': File open error
gpg: keyblock resource '/home/ray/.gnupg/pubring.gpg': File open error
gpg: private data signature missing; creating ...
gpg: no default secret key: Secret key not available
gpg: error creating /home/ray/.gnupg/gnupg.sig: Secret key not available
gpg: failed to initialize the TrustDB: Secret key not available
gpg: Warning: using insecure memory!
gpg: no default public keyring
gpg: /usr/share/keyrings/debian-keyring.gpg: read error: General error
gpg: import from '/usr/share/keyrings/debian-keyring.gpg' failed: General error
Exit 2

IMHO, the desirable behaviour in this case would be to create
~/.gnupg/pubring.gpg and then import the keyring as requested.

Ray
--
Tevens ben ik van mening dat Nederland overdekt dient te worden.
------- End of forwarded message -------
Re: [jdassen@wi.leidenuniv.nl] Bug#24240: gnupg: import keyring fails without existing one [ In reply to ]
James Troup <james@nocrew.org> writes:

> From: jdassen@wi.leidenuniv.nl

> Importing a keyring fails when ~/.gnupg/pubring.gpg does not exist already:

> gpg: error creating /home/ray/.gnupg/gnupg.sig: Secret key not available
> gpg: failed to initialize the TrustDB: Secret key not available
> gpg: Warning: using insecure memory!
> gpg: no default public keyring

For some reasons (see the next answer) gnupg must have at least one
secret key before any operations (but key generation) are possible.

> IMHO, the desirable behaviour in this case would be to create
> ~/.gnupg/pubring.gpg and then import the keyring as requested.

You are right. I'll change it.


Werner