我的 debian 安装带有 gpg 1.4.12,而我想运行 2.0.19。前者包含在包装中gnupg,后者包含在包装中gnupg2。据我所知,它们可以和平共处,但我真的很想gpg2用作gpg. 我知道 debian 有update-alternatives哪个用于设置默认值,但我找不到任何提及gpg或gnupg在其中。
我该如何设置?
我有gpg-agent.exe运行,但是当我尝试时git commit,它抱怨找不到 GPG 代理:
$ gpg-agent --daemon
gpg-agent[17440]: a gpg-agent is already running - not starting a new one
$ git commit -m "foo"
You need a passphrase to unlock the secret key for
user: "Oliver Salzburg <oliver.salzburg@gmail.com>"
4096-bit RSA key, ID 5826006B, created 2016-12-05
gpg: gpg-agent is not available in this session
Enter passphrase:
Run Code Online (Sandbox Code Playgroud)
到底是怎么回事?