Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616336 - =app-crypt/gnupg-2.1.20: keyring_get_keyblock: read error: Invalid packet / failed to rebuild keyring cache: Invalid keyring
Summary: =app-crypt/gnupg-2.1.20: keyring_get_keyblock: read error: Invalid packet / f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kristian Fiskerstrand (RETIRED)
URL: https://git.gnupg.org/cgi-bin/gitweb....
Whiteboard:
Keywords:
Depends on:
Blocks: 617960
  Show dependency tree
 
Reported: 2017-04-22 19:08 UTC by Kristian Fiskerstrand (RETIRED)
Modified: 2017-05-09 13:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-04-22 19:08:18 UTC
Multiple people reports issues when doing gpg --refresh-keys (or likely specifically --check-trustdb that is implied behavior when the previous finds updates). Trying to narrow it down

gpg: Total number processed: 664
gpg:              unchanged: 651
gpg:         new signatures: 1249
gpg: [don't know]: invalid packet (ctb=21)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: [don't know]: invalid packet (ctb=38)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key of ultimately trusted key 47DCC4A825D5DBB4 not found
gpg: [don't know]: invalid packet (ctb=7c)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key of ultimately trusted key F2097FC5C40D00D2 not found
gpg: [don't know]: invalid packet (ctb=55)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key of ultimately trusted key 49549808154ABE02 not found
gpg: [don't know]: partial length invalid for packet type 27
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key of ultimately trusted key 13C658AFF6E87884 not found
gpg: [don't know]: invalid packet (ctb=67)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key of ultimately trusted key 43FE956C542CA00B not found
gpg: [don't know]: invalid packet (ctb=06)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key of ultimately trusted key 1088280EC805EAEA not found
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
Comment 1 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-04-22 19:09:03 UTC
I'm contemplating p.masking 2.1.20 until this is narrowed down
Comment 2 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-04-24 17:15:44 UTC
(In reply to Kristian Fiskerstrand from comment #1)
> I'm contemplating p.masking 2.1.20 until this is narrowed down

Seems it only affects the old keyring format (pubring.gpg) and not the newer keybox format (pubring.kbx) that is created by default for new setups (old setups can migrate to it by moving pubring.gpg out of gnupg homedir and doing an --import along with a trustdb export and import)
Comment 3 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-05-09 12:24:05 UTC
This is fixed upstream in https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=22739433e98be80e46fe7d01d52a9627c1aebaae
Comment 4 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-05-09 13:03:28 UTC
commit 68d406d2de327f13ad3906d50c458c9727f7e024
Author: Kristian Fiskerstrand <k_f@gentoo.org>
Date:   Tue May 9 14:59:22 2017 +0200

    app-crypt/gnupg: Fix regression from 2.1.19
    
    Gentoo-Bug: 616336
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1