<div dir="ltr">As the file was present on the filesystem, I suspect another error then. Anyway, GPG should report a more user friendly message explaining what we should investigate to fix it.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 2, 2021 at 11:20 PM Ángel <<a href="mailto:angel@pgp.16bits.net">angel@pgp.16bits.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2021-02-11 at 18:24 +0100, Charles Moulliard via Gnupg-users wrote:<br>
> Hi<br>
> <br>
> We experience a very weird problem when the following command<br>
> is executed on macos using gpg 2.2.27 (installed by homebrew tool).<br>
> <br>
> (...)<br>
> <br>
> Do you know what is the problem ("gpg: [don't know]: invalid packet<br>
> (ctb=00)")and how to fix it ?<br>
> <br>
> Cheers<br>
> <br>
> Charles Moulliard<br>
<br>
That secring.gpg file is corrupt.<br>
<br>
It's trying to automatically migrate /Users/cmoullia/.jenkins/<br>
workspace/50_ReleaseBOMUpstream/.gnupg/secring.gpg to the new secret<br>
keyring format, but in doing so it is finding a NUL byte (at the<br>
beginning of the file, presumably), where it was expecting a secret<br>
key.<br>
<br>
Best regards<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Gnupg-users mailing list<br>
<a href="mailto:Gnupg-users@gnupg.org" target="_blank">Gnupg-users@gnupg.org</a><br>
<a href="http://lists.gnupg.org/mailman/listinfo/gnupg-users" rel="noreferrer" target="_blank">http://lists.gnupg.org/mailman/listinfo/gnupg-users</a><br>
<br>
</blockquote></div>