如何更改 gpg-agent 目录

问题描述

我正在尝试做 git-crypt unlock。但是,我收到此错误

gpg: error running '/usr/local/Cellar/gnupg/2.3.1/bin/gpg-agent': probably not installed
gpg: Failed to start gpg-agent '/usr/local/Cellar/gnupg/2.3.1/bin/gpg-agent': Configuration error
gpg: can't connect to the gpg-agent: Configuration error
git-crypt: GPG error: gpg --list-secret-keys Failed

原因是它在寻找错误的路径。没有“/usr/local/Cellar/gnupg/2.3.1/bin/gpg-agent”这样的路径。我的 pgp-agent 实际上在这文件夹中 /opt/brew/bin/gpg-agent

我的问题是如何更改路径以更正 pgp-agent 目录?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)