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
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!
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...
Strange... I did not see this in my experiment... You can do --list-keys and export each key separately... Then import the result.