Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207363 - GNUPG 2.0 upgrade breaks keyring
Summary: GNUPG 2.0 upgrade breaks keyring
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 09:52 UTC by Stefano
Modified: 2008-01-26 10:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano 2008-01-25 09:52:14 UTC
After upgrading to gpg2, I obtain the following:
$ gpg --check-trustdb
an mpi of size 0 is not allowed
an mpi of size 0 is not allowed
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model
an mpi of size 0 is not allowed
an mpi of size 0 is not allowed
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed

It may be related to:
https://bugzilla.novell.com/show_bug.cgi?id=310013#c2

Reproducible: Always
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2008-01-26 00:43:02 UTC
Found this one:
http://www.gryniewicz.com/dang/blog/?p=379

And checked... It seems to work.
Just export all keys and import them again.

Reopen if it does not help.
As I know upstream, they will not fix this issue, as they don't care about compatibility.

Thanks!
Comment 2 Stefano 2008-01-26 09:57:44 UTC
I would just add, for the sake of anybody trying, that this led to loss of 2/3 of my keyring anyway... but it fixes the error message, if nothing else. Thanks...
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2008-01-26 10:00:39 UTC
Strange... I did not see this in my experiment... You can do --list-keys and export each key separately... Then import the result.