gpg --gen-key fails with "invalid packet (c2b=2d)" using gpg4win-1.1.1 and XP Pro

Werner Koch wk at
Thu Jul 12 12:41:45 CEST 2007

On Wed, 11 Jul 2007 20:27, dara.parsavand at said:

> That was exactly the issue - after moving pubring.gpg and secring.gpg to
> a backup directory, key generation works fine.  Would it be worth
> modifying the code so that it checks for existence of these files and
> asks for permission to overwrite them or simply exits with a message
> saying that these files must be deleted in order to generate new keys?

No that does not make sense.  These files make up the key database used
to store all keys.  In general you don't want to delete them.  Your
system was messed up for some reason.

More information about the Gnupg-users mailing list