You are not logged in.

#1 2020-12-19 19:32:05

kocotian
Member
From: Łaguszów, Poland
Registered: 2020-07-24
Posts: 40
Website

[SOLVED] GnuPG - agent_genkey failed after removal of .gnupg content

Hi!
Today i wanted to recreate a GnuPG key, because every hour i got a password prompt for unlocking a key, so I decided to make new key (i have mail sync in crontab).
I decided to remove .gnupg directory content, because i didn't wanted to write all commands for removing key (probably i could do it in one simple command from 17 line of manpage, nevermind).
When i tried to create new key, i received:

gpg: agent_genkey failed: No such file or directory
Key generation failed: No such file or directory

I had symlink of .gnupg in my home directory to .local/share/gnupg so next i removed .local/share/gnupg directory and made it again, sadly it still doesn't work. I also tried this: https://unix.stackexchange.com/question … -directory, of course also doesn't work. I used

--full-gen-key

.

Solved. Removed once again .gnupg and .local/share/gnupg AND rebooted my machine.

Last edited by kocotian (2020-12-19 19:34:15)

Offline

Board footer

Powered by FluxBB