linux - gpg : Key generation canceled

标签 linux gnupg

我很难在 Linux 中生成 gpg key 对。我正在按照本教程中的步骤操作:https://www.gnupg.org/gph/en/manual/c14.html

但是,在它要求我输入密码并输入密码后,我收到以下消息:

gpg: can't connect to the agent: IPC connect call failed
gpg: problem with the agent: No agent running                                 
gpg: can't connect to the agent: IPC connect call failed
gpg: problem with the agent: No agent running
gpg: Key generation canceled.

这可能是什么问题?

最佳答案

在 shell 中运行以下命令

kill -9 gpg-agent
source <(gpg-agent --daemon)

关于linux - gpg : Key generation canceled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49496667/

相关文章:

clojure - 尝试部署 Clojure jar 时,签名失败并显示 : secret key not available

linux - 我愚蠢地运行了 "chmod 400 chmod",现在它似乎永远坏掉了

c - 内存初始化时linux高内核cpu使用率

用于从ubuntu服务器获取centOS服务器日期时间的C程序?

unix - gpg解密 block 大小限制

security - 当我尝试使用旧 key 时,gnupg 给我错误 "Invalid public key algorithm"

linux - 如何在PS1环境变量中高亮文本

linux - "cat/dev/random"与 "tail -f/dev/random"

C GPGMe 忽略用户 key 环

postgresql - 安装 PostgreSQL 9.4 : "gpg: no valid OpenPGP data found"