Lots of "packet(6) too short" errors with gpg 2.1

Werner Koch wk at gnupg.org
Fri Oct 31 10:39:36 CET 2014


On Thu, 30 Oct 2014 16:22, patrick at enigmail.net said:
> After migration to gpg 2.1, I get lots of "packet(6) too short" when
> doing e.g. gpg --list-keys. Furthermore, gpg exits with exit code=2.

Found and fixed: The --keydb-rebuild-caches function which is also used
internally before checking the trustdb, caused the trouble.  It parsed
the key and wrote it back.  Now v3 keys are not anymore supported and
thus a garbled package was written.  The parsing is required to check
actually check the key signatures and write cache packets.  My solution
is to drop v3 keys from the keyring while rebuilding the caches.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list