Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry
Date: Wed, 17 Jan 2018 13:34:23
Message-Id: 521756ff-439b-daa0-1301-5fd9b4ba1855@sys-concept.com
In Reply to: Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry by Alexander Ben Nasrallah
1 On 01/16/2018 11:47 PM, Alexander Ben Nasrallah wrote:
2 > On Tue, Jan 16, 2018 at 10:51:40PM -0700, thelma@×××××××××××.com wrote:
3 >> When I try to decrypt a file I get:
4 >>
5 >> gpg2 text.asc
6 >> ...
7 >> gpg: public key decryption failed: No pinentry
8 >> gpg: decryption failed: No secret key
9 >>
10 >> app-crypt/pinentry-1.0.0-r2 is installed
11 >
12 > Sometime you have to set one of the following.
13 >
14 > # PIN entry program
15 > pinentry-program /usr/bin/pinentry-curses # no X
16 > pinentry-program /usr/bin/pinentry-qt
17 > pinentry-program /usr/bin/pinentry-kwallet
18 > pinentry-program /usr/bin/pinentry-gtk-2
19 >
20 > to whatever suits you in ~/.gnupg/gpg-agent.conf.
21 >
22 > Hope that helps.
23
24 In my ".gnupg/gpg-agent.conf" I have:
25
26 ###+++--- GPGConf ---+++###
27 default-cache-ttl 600
28 max-cache-ttl 6000
29
30 Adding eg. "pinentry-program /usr/bin/pinentry-qt" to the above
31 configuration file doesn't help.
32
33 When I run:
34 pinentry-program /usr/bin/pinentry
35 -bash: pinentry-program: command not found
36
37 --
38 Joseph