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] ·
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] ·
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] ·
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
Comment from: Arne Saknussem [Visitor]
Thanks a lot, this post has just helped me recover more than 1000 financial records from a Kmymoney file!
Permalink 08/13/14 @ 09:49
Comment from: a3nm [Visitor] ·
Thanks a lot, saved me quite some time!
Permalink 09/01/14 @ 19:59

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>
(Line breaks become <br />)
(Set cookies for name, email & url)

<  October 2020  >
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 31  




Syndicate this blog XML

powered by