problem importing gpg keys "Fatal: can't create directory '/home/hazrpg/~/.gnupg': No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
seahorse (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
There is a problem when importing a GPG private key from a backup, the error message says the File or Directory does not exist - and it looks like its because of the way it's trying to access it.
Here's the exact error (verbose as its displayed):
Import failed: Fatal: can't create directory '/home/
It looks like its trying to access ~/.gnupg and at the same time trying to put that in the /home/hazrpg/ directory (hazrpg being my username). It should be one or the other, so its probably a simple fix.
Steps to reproduce:
1) Open up seahorse.
2) Click on "File" -> "Import...".
3) Select any valid GPG key file (public, private, etc).
4) Verify its valid with the "Data to be imported:" section and then click on "Import".
5) Error message shows in red below the "Data to be imported:" section with the above message.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: seahorse 3.20.0-5
ProcVersionSign
Uname: Linux 4.15.0-66-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Nov 12 11:38:18 2019
InstallationDate: Installed on 2019-03-05 (252 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: seahorse
UpgradeStatus: No upgrade log present (probably fresh install)
Interesting, a PGP key can't be created either. I'll attach what happens when I try to.
Steps to reproduce:
1) Open seahorse.
2) Click on GnuPG keys.
3) Click on the + sign.
4) Select PGP key and click on continue.
5) Type in a Full Name and E-mail address.
6) Click Create.
7) Enter in a passphrase to protect the key.
8) Error message says "Couldn't generate PGP key" in the title, "No agent running" in the body and a "Close" button is displayed.