gpg:密钥生成取消

时间:2018-03-26 16:51:16

标签: linux gnupg

我很难在linux中生成gpg密钥对。我按照本教程中的步骤操作: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.

这可能是什么问题?

1 个答案:

答案 0 :(得分:0)

在shell中运行以下命令

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