Make a backup of .gnupg with like rsync! Then:
gpg --import ~/.gnupg/secring.gpg should fix this for you Also you want to migrate the rest of the stuff to the new storage format, i.e.: cd ~/.gnupg gpg --export-ownertrust >otrust.lst mv pubring.gpg publickeys gpg --import-options import-local-sigs --import publickeys gpg --import-ownertrust otrust.lst mv pubkeys pubring.gpg Or remove pubring.gpg if you will no longer use gnupg1. Test that everything works as you expect, and remove the backup you did in the beginning. ** Changed in: gnupg2 (Ubuntu) Status: Incomplete => Invalid -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs