Odd error

Werner Koch wk at gnupg.org
Mon Nov 30 15:16:20 CET 2020


Hi!

On Mon, 30 Nov 2020 04:16, Robert J. Hansen said:

> gpg: kbx: error computing keygrip
> gpg: error writing keyring '/home/rjh/.gnupg/pubring.kbx': General error

The first one is the real error.  We can't compute the keygrip for the
public key.  If you can build gpg yourself please apply this patch:

--8<---------------cut here---------------start------------->8---
diff --git a/kbx/keybox-openpgp.c b/kbx/keybox-openpgp.c
index 6d6ed77dc..345af0164 100644
--- a/kbx/keybox-openpgp.c
+++ b/kbx/keybox-openpgp.c
@@ -240,6 +240,7 @@ keygrip_from_keyparm (int algo, struct keyparm_s *kp, unsigned char *grip)
 
   if (!err && !gcry_pk_get_keygrip (s_pkey, grip))
     {
+      gcry_log_debugsxp ("pubkey:", s_pkey);
       log_info ("kbx: error computing keygrip\n");
       err = gpg_error (GPG_ERR_GENERAL);
     }
--8<---------------cut here---------------end--------------->8---

or send me your sample key.  In any case please also run our new 2.2.24
command to see how libgcrypt has been built:

  gpgconf --show-versions
  


Shalom-Salam,

   Werner


--
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20201130/21b59ba9/attachment.sig>


More information about the Gnupg-users mailing list