Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
T
tails
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 970
    • Issues 970
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 12
    • Merge Requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tails
  • tails
  • Issues
  • #17807

Closed
Open
Created Jul 06, 2020 by Big balla@BigBalla69

Automate fix for "GnuPG keys missing" problem

I started up Tails but cannot see my GNUPG keys. They just all randomly disappeared for no reason. Any fix would be nice.

Analysis

In the few cases where users provided enough info for us to analyze anything, ~/.gnupg/pubring.kbx was empty.

Solution

Thankfully, GnuPG stores a backup of pubring.kbx in ~/.gnupg/pubring.kbx~. So we can do this: at login time, if pubring.kbx is empty but pubring.kbx~ is not, then we delete the former, and rename pubring.kbx~ to pubring.kbx. Should tell the user know we're doing this, or even ask them for confirmation first?

Feedback needed

if this problem happens to you, please check the size of ~/.gnupg/pubring.kbx and ~/.gnupg/pubring.kbx~. If the former is empty but the latter is not, please try to delete the former and rename the latter to ~/.gnupg/pubring.kbx: this will hopefully solve the problem. Let us know!

Edited Oct 11, 2020 by intrigeri
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None