keydb_search failed: Invalid argument

NIIBE Yutaka gniibe at
Thu Jun 3 02:43:02 CEST 2021


ಚಿರಾಗ್ ನಟರಾಜ್ wrote:
> I'm getting this error/warning even when I just decrypt an encrypted
> file using plain gpg.

If you keep using ~/.gnupg/pubring.gpg, I think this is the cause of
your problem.

In this case, see this comment in the bug tracker of GnuPG:

To excerpt the solution from the comment, it's:
cd ~/.gnupg
gpg --export-options backup --export >allkeys.gpg
mv pubring.gpg pubring.gpg-saved
gpg --import-options restore --import <allkeys.gpg
rm allkeys.gpg

More information about the Gnupg-users mailing list