我已经从源代码中安装了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命令,但问题仍然存在。我还尝试过使用gpg2从Ubuntu存储库卸载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.发布于 2019-08-22 12:31:43
感谢克莎拉南达帮我找到问题。
问题是gpg-agent仍然是通过apt安装的。运行sudo apt remove gpg-agent,然后运行gpgconf --kill all,修复了这个问题。
https://unix.stackexchange.com/questions/536812
复制相似问题