Enigmail错误-“找不到匹配的密钥来解密消息"; [英] Enigmail Error - "no matching secret key found to decrypt message"
问题描述
切换Linux发行版后,gpg更改了,我无法加密任何电子邮件.甚至是我自己的Enigmail给了我找不到匹配的密钥来解密消息"错误消息.
After switching the Linux Distributions, gpg changed and I could not encrypt any emails. Even my own. Enigmail gave me "No matching secret key found to decrypt message" error message.
之前:
$gpg --version
gpg (GnuPG) 2.1.18
libgcrypt 1.7.6-beta
现在:
$gpg2 --version
gpg (GnuPG) 2.2.13
libgcrypt 1.8.4
两个都有Enigmail 2.0.9.
Both have Enigmail 2.0.9.
推荐答案
自您撰写以来已经有很长时间了.尽管如此,我还是尝试给它一个机会,因为我认为类似的问题仍然可能发生(再次).
It's been long time since you wrote. Nevertheless I'd try to give it a chance, as I think similar problem still might happen (again).
-
首先请尝试以下命令:
First of all try this command:
gpg-agent --daemon
gpg-agent --daemon
期望是,它会向您显示配置文件是否有问题.输出示例:
Expectation is, it would show you if something is wrong with config file(s). Example output:
gpg-agent[22861]: /home/<REPLACE_WITH_YOUR_USERNAME>/.gnupg/gpg-agent.conf:13: invalid option
例如,这告诉您:该文件中的第13行包含无效的设置选项". 在这种情况下,请编辑该文件,修复错误或注释掉创建错误的行,例如:
This, for example, is telling you: "Line 13 in that file contains invalid setting option". In this case, edit that file, remediate the error or comment out the line creating the error for example like this:
-
编辑文件.例如,在您的控制台/终端中,尝试以下操作之一:
Edit the file. Example, in your console/terminal, try one of this:
nano/home/REPLACE_WITH_YOUR_USERNAME/.gnupg/gpg-agent.conf
nano /home/REPLACE_WITH_YOUR_USERNAME/.gnupg/gpg-agent.conf
gedit/home/REPLACE_WITH_YOUR_USERNAME/.gnupg/gpg-agent.conf
gedit /home/REPLACE_WITH_YOUR_USERNAME/.gnupg/gpg-agent.conf
编辑/home/REPLACE_WITH_YOUR_USERNAME/.gnupg/gpg-agent.conf
editor /home/REPLACE_WITH_YOUR_USERNAME/.gnupg/gpg-agent.conf
现在转到该行(在示例中为第13行),并替换其内容,例如
now go to that line (here in the example it is line 13), and replace its content, example
忽略签名缓存
与行
# ignore-caching-for-signing
请注意该行前面的'#',这是用于停用无效选项的注释符号.
Plsease note the '#' in front of the line, which is the comment sign to deactivate the invalid option.
-
转到上方的第1行,重复执行gpg-agent命令,并逐步执行此步骤,直到gpg-agent启动时不会抱怨无效选项
Go to line 1. above and repeat the gpg-agent command, and the steps up to this line, until the gpg-agent starts without complaining about invalid options
gpg-agent --daemon
gpg-agent --daemon
现在,用enigmail启动thunderbird,然后单击加密的邮件.根据我的经验,您现在应该可以看到其内容.
Now start thunderbird with enigmail, and click on the encrypted mail. From my experience, you should now be able to see its content.
这篇关于Enigmail错误-“找不到匹配的密钥来解密消息";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!