即使在运行 gpgconf --kill all 之后,也会出现“gpg-agent 比我们老”的警告消息

即使在运行 gpgconf --kill all 之后,也会出现“gpg-agent 比我们老”的警告消息

我已经从源代码安装了 gpg 版本 2.2.17。

当我运行gpg --card-statusgpg 报告时:

gpg: WARNING: server 'gpg-agent' is older than us (2.2.4 < 2.2.17).
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.

我已尝试运行建议的 gpgconf 命令,但问题仍然存在。我还尝试使用 Ubuntu 存储库卸载 gpg2 sudo apt remove gpg2,然后重新运行,gpgconf --kill all但无济于事。

为了更好地衡量,我什至尝试重新启动计算机来终止旧版本的gpg-agent.

此外,gpg-agent --version报道称:

gpg-agent (GnuPG) 2.2.17
libgcrypt 1.8.4
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

答案1

感谢 Kusalananda 帮助我找到我的问题。

问题是gpg-agent仍然是通过安装的apt。运行sudo apt remove gpg-agentgpgconf --kill all修复了问题。

相关内容