Gentoo Archives: gentoo-user

From: Alexander Ben Nasrallah <me@×××.sh>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry
Date: Wed, 17 Jan 2018 06:47:45
Message-Id: 20180117064727.GA49075@scherox.fritz.box
In Reply to: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry by thelma@sys-concept.com
1 On Tue, Jan 16, 2018 at 10:51:40PM -0700, thelma@×××××××××××.com wrote:
2 > When I try to decrypt a file I get:
3 >
4 > gpg2 text.asc
5 > ...
6 > gpg: public key decryption failed: No pinentry
7 > gpg: decryption failed: No secret key
8 >
9 > app-crypt/pinentry-1.0.0-r2 is installed
10
11 Sometime you have to set one of the following.
12
13 # PIN entry program
14 pinentry-program /usr/bin/pinentry-curses # no X
15 pinentry-program /usr/bin/pinentry-qt
16 pinentry-program /usr/bin/pinentry-kwallet
17 pinentry-program /usr/bin/pinentry-gtk-2
18
19 to whatever suits you in ~/.gnupg/gpg-agent.conf.
20
21 Hope that helps.

Replies