打开一个加密的文件没有问题,但是修改保存的时候出现如下信息: Error while encrypting with “/usr/local/bin/gpg”:
gpg: problem with the agent: Inappropriate ioctl for device gpg: error creating passphrase: Operation cancelled gpg: symmetric encryption of ‘[stdin]’ failed: Operation cancelled
请问:这是什么原因?
官方给出了如下建议:EasyPG Assistant User’s Manual
- Do you use GnuPG version 2.1 or 2.0 instead of GnuPG version 1.4?
- Do you use symmetric encryption rather than public key encryption?
- Do you want to use gpg-agent?
Here are configurations depending on your answers:
1 | 2 | 3 | Configuration |
---|---|---|---|
Yes | Yes | Yes | Set up gpg-agent. |
Yes | Yes | No | You can’t, without gpg-agent. |
Yes | No | Yes | Set up gpg-agent. |
Yes | No | No | You can’t, without gpg-agent. |
No | Yes | Yes | Set up elisp passphrase cache. |
No | Yes | No | Set up elisp passphrase cache. |
No | No | Yes | Set up gpg-agent. |
No | No | No | You can’t, without gpg-agent. |
我觉得需要配置Set up gpg-agent,那位大神分享一下这方面的经验?谢谢啦 ~