Post details: keychain gpg-agent pinentry problems

Feb 06, 2007 : keychain gpg-agent pinentry problems

I use keychain to setup my ssh-agent and gpg-agent sessions so that it remembers my passphrases and I don't have to retype them every time I use them. But recently I was getting this error:

Error: Problem adding (is pinentry installed?); giving up

Digging into /usr/bin/keychain I found that it was having trouble running gpg --use-agent --no-tty --sign. Running that directly gave me this error:

gpg: problem with the agent - disabling agent use
gpg: Sorry, no terminal at all requested - can't get input

The problem turned out to be ~/.gnupg/gpg-agent.conf had an old entry pinentry-program /usr/bin/pinentry-gtk which didn't exist any more. Change that entry to /usr/bin/pinentry or delete it altogether. Note: you'll have to restart gpg-agent (killall gpg-agent && eval `gpg-agent --daemon`) for changes to gpg-agent.conf to take effect.

Hope this helps somebody, since none of my googling found this solution.

Comments, Pingbacks:

Comment from: Sam Tucker [Visitor] · http://www.xqtn.org
Thanks very much for this--it provided the clues I needed to get it working.
Permalink 02/19/07 @ 16:48
Comment from: Stefan [Visitor] · http://stefan.ploing.de/
I just updated to Thunderbird 2.0 - and Enigmail refuses to work correctly at the moment :-( It won't ask for a passphrase, so I'll use gpg-agent as a workarount in the meantime.
Thanks for the hint, you saved my day :-)
Permalink 05/22/07 @ 11:20
Comment from: naguz [Visitor]
Thanks. :D
Permalink 11/11/08 @ 15:37
Comment from: Donnie Berkholz [Visitor] · http://dberkholz.wordpress.com/
Thanks! This had been bugging me for ages.
Permalink 08/09/10 @ 12:11
Comment from: Lars [Visitor]
I followed a link here from Google and got your "stopped due to referrer spam" error. Don't know if I would describe Google as a source of referrer spam.
Permalink 09/14/13 @ 22:02

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.
What is the 2-letter abbreviation for Michigan?
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)

<  April 2014  >
Mon Tue Wed Thu Fri Sat Sun
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

Categories


Archives

Misc

Syndicate this blog XML

powered by
b2evolution