FS#43173 - [gnupg] 2.1.1-1 results in "gpg: keydb_search_first failed: Invalid packet"
Attached to Project:
Arch Linux
Opened by Thomas Jäger (xunil64) - Saturday, 20 December 2014, 14:14 GMT
Last edited by Gaetan Bisson (vesath) - Tuesday, 24 February 2015, 16:03 GMT
Opened by Thomas Jäger (xunil64) - Saturday, 20 December 2014, 14:14 GMT
Last edited by Gaetan Bisson (vesath) - Tuesday, 24 February 2015, 16:03 GMT
|
Details
Description:
After upgrading to gnupg 2.1.1-1 the gpg keys cannot be used/read any longer Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: # === gpg-2.1.0-6 === # gpg --list-keys # <any keys listed> # === gpg-2.1.1-1 === # gpg --list-keys gpg: keydb_search_first failed: Invalid packet |
This task depends upon
Closed by Gaetan Bisson (vesath)
Tuesday, 24 February 2015, 16:03 GMT
Reason for closing: Fixed
Additional comments about closing: gnupg-2.1.2-1
Tuesday, 24 February 2015, 16:03 GMT
Reason for closing: Fixed
Additional comments about closing: gnupg-2.1.2-1
Providing a pubring.gpg that exhibits this behavior would help debugging.
$ gpg --list-keys
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
Used to work just fine before the upgrade.
I just removed the old ~/.gnupg directory, by renaming it to dot.gnupg and then imported the pub- and secring from the old dir:
$ gpg --import dot.gnupg/pubring.gpg
$ gpg --import dot.gnupg/secring.gpg
Then copy the trustdb:
$ cp dot.gnupg/trustdb.gpg .gnupg/
I am not sure, whether this procedures preserves the whole former behaviour (gnupg.conf and the other configuration files, I have left out by purpose!), but it works for me and for now.
Chester
Upstream as above: https://bugs.g10code.com/gnupg/issue1793