1 votos

GPG constantemente arroja "no existe tal archivo o directorio" al hacer operaciones

Así que quiero crear un GPG para poder usarlo. Hice gpg --gen-key, ingresé la información pero arrojó el error de No such file or directory (ver abajo).

 gpg --gen-key
gpg (GnuPG) 2.3.1; Copyright (C) 2021 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Note: Use "gpg --full-generate-key" for a full featured key generation dialog.

GnuPG needs to construct a user ID to identify your key.

Real name: oof2win2
Email address: a@a.com
You selected this USER-ID:
    "oof2win2 "

Change (N)ame, (E)mail, or (O)kay/(Q)uit? o
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: No such file or directory
Key generation failed: No such file or directory

Entonces, seguí esta respuesta y ejecuté gpgconf --kill gpg-agent y reinicié mi computadora. Aún así, esto no cambió nada ni lo hizo funcionar. Así que revisé los permisos de archivo y obtuve:

drwx------ 15 oof2win2 staff 480B Jun 17 22:42 .gnupg

700, lo cual parece estar bien. Lo cambié a 770 y obtuve esto, así que creo que los permisos de archivo están bien.

 gpg --list-keys
gpg: WARNING: unsafe permissions on homedir '/Users/oof2win2/.gnupg'
/Users/oof2win2/.gnupg/pubring.kbx

¿Cuál podría ser la causa del problema con GPG? Intenté reinstalar GPG varias veces, reinstalar mi máquina pero ninguno funcionó.

Ejecutando Catalina 10.15.7, GPG 2.3.1

1voto

oof2win2 Puntos 1

Lo resolví instalando pinentry-mac y usando eso en lugar de pinentry

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X