Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T tails
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 970
    • Issues 970
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tails
  • tails
  • Issues
  • #17807
Closed
Open
Issue 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
Time tracking