security – "No existe tal archivo o directorio" al generar una clave gpg

Pregunta:

Estoy intentando generar una clave gpg

$ gpg --full-gen-key

pero eventualmente me sale un error

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

Estoy en Arch Linux.

$ gpg --version
gpg (GnuPG) 2.1.15
libgcrypt 1.7.3
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/me123/.gnupg
.............

El directorio /home/me123/.gnupg existe

Respuesta:

¿Borraste el directorio /home/me123/.gnupg y luego fue recreado por gpg? Si es así, probablemente eso es lo que confunde al agente.

Reinicie el agente ( gpgconf --kill gpg-agent ) o, más drásticamente, reinicie su máquina e intente nuevamente.

Leave a Comment

Your email address will not be published. Required fields are marked *

web tasarım