Normally, gpg2 does a one time migration of keyrings from v1 format to
v2 format, and also most recent gpg2 no longer reads/loads private keys
directly and only via gnupg-agent.

Also, if one ever run gpg2 on a gpg1 directory, the migration of keys
happened and if one adds any new private keys using gpg1 they will never
make it into the gpg2 format.

Normally gnupg-agent is started as a user-session systemd unit gpg-
agent.socket / gpg-agent.service. But it could be something else on your
system.

To troubleshoot this further, what is the output of:

echo $GPG_AGENT_INFO

gpg1 --list-secret-keys


** Changed in: gnupg2 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1862430

Title:
  gpg in focal doesn't find my private keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/1862430/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to