[Pkg-gnupg-maint] Bug#727013: [gnupg2] gpg2 cannot connect to pinentry, although it is installed

Eric Dorland eric at debian.org
Sun Jan 4 23:36:25 UTC 2015


Control: tags -1 unreproducible

* Thomas Hackert (thackert at nexgo.de) wrote:
> Package: gnupg2
> Version: 2.0.20-1
> Severity: normal
> 
> --- Please enter the report below this line. ---
> Hello @ll,
> when I create a test file via
> <quote>
> echo test > test
> </quote>
> and then use
> <quote>
> gpg2 --sign test
> </quote>
> to sign my test file, I get the following message
> <quote>
> You need a passphrase to unlock the secret key for
> user: "Test User"
> 2048-bit RSA key, ID $secret, created 2013-10-21
> 
> gpg: can't connect to the agent - trying fall back
> gpg-agent[4199]: enabled debug flags: assuan
> gpg: problem with the agent: No pinentry
> gpg: no default secret key: Operation cancelled
> gpg: signing failed: Operation cancelled
> </quote>

Odd. Could you try running your agent under strace to try to see where
it's failing to find pinentry?

> ... :( If I try the same with gpg (1.4.15)
> <quote>
> gpg --sign test
> </quote>
> , I get
> <quote>
> You need a passphrase to unlock the secret key for
> user: "Test User"
> 2048-bit RSA key, ID $secret, created 2013-10-21
> 
> can't connect to `/tmp/gpg-rz6R90/S.gpg-agent': No such file or
> directory
> gpg: can't connect to `/tmp/gpg-rz6R90/S.gpg-agent': connect failed
> </quote>
> and - despite of the "No such file..." and "connect failed" messages -
> am able to sign my test file ... ;) I have installed different pinentry
> packages (dpkg -l | grep pinentry says
> <quote>
> ii  pinentry-curses                                   0.8.1-1
> amd64        curses-based PIN or pass-phrase entry dialog for GnuPG
> ii  pinentry-qt4                                      0.8.1-1
> amd64        Qt-4-based PIN or pass-phrase entry dialog for GnuPG) and
> have an entry for it in ~/.gnupg/gpg-agent.conf ("pinentry-program
> /usr/bin/pintentry-curses", but it does not make any differnce, if I
> enter "pinentry-program /usr/bin/pintentry-qt4" here ... :( ), but still
> I am not able to use gpg2 ... :( It would be nice, if this can get fixed
> ... ;)
> Sorry for the inconvenience
> Thomas.

-- 
Eric Dorland <eric at kuroneko.ca>
43CF 1228 F726 FD5B 474C  E962 C256 FBD5 0022 1E93
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20150104/ebe70516/attachment.sig>


More information about the Pkg-gnupg-maint mailing list