<div dir="ltr"><div>Most gpg commands give me something like this:</div><div><br></div><div>$ gpg -Kv<br>gpg: using classic trust model<br>gpg: keydb_search failed: Invalid value<br>gpg: Oops: keyid_from_fingerprint: no pubkey<br>~/.gnupg/pubring.kbx</div><div><br></div><div>Followed by what appears to me to be normal output.</div><div><br></div><div>I also see:</div><div><br></div><div>$ kbxutil --stats ~/.gnupg/pubring.kbx<br>Total number of blobs:      600<br>               header:        1<br>                empty:        0<br>              openpgp:      599<br>                 x509:        0<br>          non flagged:      599<br>       secret flagged:        0<br>    ephemeral flagged:        0</div><div><br></div><div>What should I do to clear the Invalid value and no pubkey?</div><div><br></div><div>I only saw this problem after upgrading from gpg 1 to gpg2 and using the given script to migrate from pubring.gpg to pubring.kbx.<br></div><div><br></div><div>These outputs seem to throw a monkey wrench into some scripts such as, for example, with pass generate -i  <br></div><div><br></div><div>This is gpg 2.1.18 atop Debian stretch and Linux  4.9.0-6-amd64, <br></div><div><br></div><div>Thank you.<br></div></div>