gpg: [don't know]: invalid packet (ctb=00)

Charles Moulliard cmoullia at redhat.com
Thu Feb 11 18:24:24 CET 2021


Hi

We experience a very weird problem when the following command
is executed on macos using gpg 2.2.27 (installed by homebrew tool).

echo "xxxxxxx" | gpg --batch --yes --passphrase-fd 0 --local-user
4BD5F787F27F97744BC09E019C1CA69653E98E56 --armor --detach-sign
--no-default-keyring --secret-keyring secring.gpg --keyring pubring.gpg
--homedir 50_ReleaseBOMUpstream/.gnupg -output dummy.txt.asc dummy.txt

gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from
'/Users/cmoullia/.jenkins/workspace/50_ReleaseBOMUpstream/.gnupg/secring.gpg'
to gpg-agent
gpg: [don't know]: invalid packet (ctb=00)
gpg: read_block: read error: Invalid packet
gpg: import from
'/Users/cmoullia/.jenkins/workspace/50_ReleaseBOMUpstream/.gnupg/secring.gpg'
failed: Invalid keyring
gpg: skipped "4BD5F787F27F97744BC09E019C1CA69653E98E56": No secret key
gpg: signing failed: No secret key

Do you know what is the problem ("gpg: [don't know]: invalid packet
(ctb=00)")and how to fix it ?

Cheers

Charles Moulliard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210211/d5cad00a/attachment.html>


More information about the Gnupg-users mailing list