尝试以我只输入一次密码的方式配置 gpg,它将在整个会话中起作用。
但是,这就是我得到的:
$ pgrep gpg-agent | wc
0 0 0
$ gpg-agent --daemon
gpg-agent: a gpg-agent is already running - not starting a new one
$ pgrep gpg-agent
26401
即,gpg-agent --daemon
将启动一个 gpg-agent,但忘记了它已经启动了一个,并阻止了自己。之后尝试了很多次gpgconf --kill gpg-agent
,或者
kill `pgrep gpg-agent`
结果总是一样的。
怎么了?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
# installed packages with KW of gpg:
gpg_2.2.4-1ubuntu1.2
gpg-agent_2.2.4-1ubuntu1.2
gpg-wks-client_2.2.4-1ubuntu1.2
gpg-wks-server_2.2.4-1ubuntu1.2
gpgconf_2.2.4-1ubuntu1.2
gpgsm_2.2.4-1ubuntu1.2
gpgv_2.2.4-1ubuntu1.2