Is it possible the two Ubuntu distributions you mentioned ship different versions of gnupg? I am asking about it because gnupg v. 2.0 and earlier and gnupg v. 2.1.x and later have different ways of storing keys. I don’t know the details because i started using gpg from version 2.1.x but this might be where you could start to investigate the issue.
> On 26 Jul 2018, at 11:50, Paul M Furley <p...@paulfurley.com> wrote: > > Hi folks, > > I upgraded from Ubuntu 16.04 LTS to Ubuntu 18.04 LTS and restored my `.gnupg` > directory from a backup disk. > > Now gpg doesn't see any keys... `gpg --list-keys` just exists with no output. > > I've attached the strace output of `strace gpg --list-keys`, and here's the > output of `tree .gnupg/`: > > ``` > /home/paul/.gnupg > ├── crls.d > │ └── DIR.txt > ├── gpg-agent.conf > ├── gpg-agent-info-xps > ├── gpg.conf > ├── hkps.pool.sks-keyservers.net.pem > ├── openpgp-revocs.d > │ └── [REDACTED x2].rev > ├── private-keys-v1.d > │ └── [REDACTED x8].key > ├── pubring.gpg > ├── pubring.kbx > ├── random_seed > ├── S.dirmngr > ├── secring.gpg > ├── S.gpg-agent > ├── sshcontrol > └── trustdb.gpg > > 3 directories, 23 files > > ``` > > Is there anything else I can provide to help debug this? > > Thanks! > > Paul > > [unsigned... obviously ;) ] > <strace-gpg-list-keys.txt> > _______________________________________________ > Gnupg-users mailing list > Gnupg-users@gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnupg-users _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users