即使在运行 gpgconf --kill all 之后,“gpg-agent is old than us”警告消息

Dra*_*mer 4 gpg pgp 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.
Run Code Online (Sandbox Code Playgroud)

我已尝试运行建议的 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.
Run Code Online (Sandbox Code Playgroud)

Dra*_*mer 9

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

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

  • 就我而言,只有 `gpgconf --kill all` 解决了这个问题。我的机器的正常运行时间是 36 天,并且在此期间 GPG 得到了更新,这导致了警告。 (3认同)