我已经从源代码安装了 gpg 版本 2.2.17。
当我运行gpg --card-status
gpg 报告时:
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-agent
后gpgconf --kill all
修复了问题。