Bug 461071

Summary: Kleopatra on Tails purged all PGP keys, won't create or import new
Product: [Applications] kleopatra Reporter: Luke <antipode51>
Component: generalAssignee: Andre Heinecke <aheinecke>
Status: REPORTED ---    
Severity: major CC: kdepim-bugs, mutz
Priority: NOR    
Version: 3.1.11   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of key creation failure error message "structure needs cleaning"

Description Luke 2022-10-27 15:36:30 UTC
Created attachment 153238 [details]
screenshot of key creation failure error message "structure needs cleaning"

Hello, I'm not the most technically savvy user but hoping I can get assistance or guidance. I've been using Tails sparingly for a couple years, encrypting messages with OpenPGP and had a small collection of users public keys imported as well as my own private key. A few months ago with an upgrade to Tails I started using Kleopatra which was working well, then a couple weeks ago I went to encrypt a message and found that both my PGP key and all public keys were gone and no longer discoverable. I had not upgraded Tails in between it working and no longer working, so it was seemingly random. I've tried creating a new key and it fails with the message "Could not create key pair: Structure needs cleaning", and attempting to import a user's public key does not succeed.

Tails: 5.5 - 20221013
Kleopatra 3.1.11 (20.08.3)

Steps to recreate in Kleopatra: 
1. File > New Key Pair... 
2. Choose Format = Create a personal OpenPGP key pair 
3. Added a name, clicked Next 
4. Review Parameters, clicked Create 
5. Entered password twice 
6. Observed Result = Key Creation Failed, "Could not create key pair. Structure needs cleaning"

Steps for importing: 
1. Copy user's public key, paste in Text Editor, save as .asc file in persistent drive. 
2. Go into Kleopatra > Import > navigate to .asc file and select to import 
3. Observed Result = Results window pops up, "Total number processed: 0, Imported: 0"

I would really appreciate any help figuring out why this is happening. Please let me know if you need more information from me to identify the issue, thank you!!