[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04
Dimitri John Ledkov 🌈
launchpad at surgut.co.uk
Tue Jun 19 22:34:36 UTC 2018
what are the permissions of /home/psusi ? and /home/psusi/.gnupg ?
it is not safe if .gnupg; or the directory that contains it; are
group|other writable.
new gpg uses keybox, whilst old gpg uses pub/secring.gpg. whenever new
gpg was first executed against this .gnupg the old secring got auto
converted to a keybox and from that point on the secrings & keybox no
longer maintained in sync.
Please check .gnupg/private-keys-v1.d/* folder and if that contains
expected subkeys. If not try to use old gpg to export the subkeys; and
re-import them with a new gpg, such that they migrate into the keybox
structure.
** Changed in: gnupg2 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gnupg2 in Ubuntu.
https://bugs.launchpad.net/bugs/1777710
Title:
gpg throws out my secret keys after upgrade to 18.04
Status in gnupg2 package in Ubuntu:
Incomplete
Bug description:
I recently upgraded a server from 16.04 to 18.04 and gpg has started
throwing out my secret keys. I even tried deleting the .gnupg
directory and re-importing or just copying the secring from another
working system, and it still throws out the secret keys.
Working system:
C:\Users\psusi\AppData\Roaming\gnupg>gpg --version
gpg (GnuPG) 2.0.28 (Gpg4win 2.2.5)
C:\Users\psusi\AppData\Roaming\gnupg>gpg -K
C:/Users/psusi/AppData/Roaming/gnupg/secring.gpg
------------------------------------------------
sec# 2048R/A70FB705 2011-12-13
uid Phillip Susi <psusi at ubuntu.com>
uid Phillip Susi <psusi at cfl.rr.com>
ssb 2048R/51FEF1C9 2011-12-13
ssb 2048R/FA9EEEF9 2011-12-14
ssb 2048R/3348AAF0 2013-11-26
ssb 2048R/BDCC7F92 2013-11-26
ssb 2048R/9C8E5E51 2014-10-29
ssb 2048R/93A02CCD 2014-10-29
ssb 2048R/5CBBA516 2015-10-05
ssb 2048R/10850B71 2015-10-05
ssb 2048R/6100FE84 2017-01-06
ssb 2048R/0F60068B 2017-01-06
Broken system:
psusi at devserv:~$ gpg --version
gpg: WARNING: unsafe permissions on homedir '/home/psusi/.gnupg'
gpg (GnuPG) 2.2.4
psusi at devserv:~$ gpg -K
gpg: WARNING: unsafe permissions on homedir '/home/psusi/.gnupg'
/home/psusi/.gnupg/pubring.kbx
------------------------------
sec# rsa2048 2011-12-13 [SCA]
1B49F933916A37A3F45A1812015F4DD4A70FB705
uid [ultimate] Phillip Susi <psusi at ubuntu.com>
uid [ultimate] Phillip Susi <psusi at cfl.rr.com>
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/1777710/+subscriptions
More information about the foundations-bugs
mailing list