-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 08/10/2015 06:15 AM, Doug Goldstein wrote:
> On Mon, Aug 10, 2015 at 3:36 AM, Chí-Thanh Christopher Nguyễn 
> <[email protected]> wrote:
>> Doug Goldstein schrieb:
>>> gpg: cancelled by user gpg: skipped "0xA2BC03DC87ED1BD4":
>>> Operation cancelled gpg: signing failed: Operation cancelled 
>>> error: gpg failed to sign the data
>> 
>> There was an IRC discussion yesterday about this. Probably your
>> pinentry tries to talk to a GUI and fails. Try:
>> 
>> unset DISPLAY export GPG_TTY=$(tty)
>> 
>> to make it fall back to curses, or use "eselect pinentry" to
>> select curses as default.
>> 
>> Interestingly, git requires GPG_TTY if eselect-pinentry is set to
>> gtk-2 or qt4, but repoman doesn't.
>> 
>> 
>> Best regards, Chí-Thanh Christopher Nguyễn
>> 
>> 
> 
> $ eselect pinentry show Current pinentry binary implementation: 
> pinentry-curses
> 
> $ eselect pinentry list Available pinentry binary implementations: 
> [1]   pinentry-curses *
> 
> Its the only version I've got on this machine. The box is headless
> and I ssh into and I use keychain to manage my SSH and GPG agent.
> 
What's your keychain line look like in your .bashrc/.bash_profile?
Here's the relevant portion of mine. I was also having problems with
it until I changed the order of the arguments:

[snip]
/usr/bin/keychain --agents ssh,gpg ~/.ssh/id_rsa ${GPGKEY}
source ~/.keychain/sporkbox-sh > /dev/null
source ~/.keychain/sporkbox-sh-gpg > /dev/null
[snip]

For some reason, it's important that ssh comes before gpg. I got this
advice straight from drobbins, so unless it's changed, that's the way
to get it working.
- -- 
Daniel Campbell - Gentoo Developer
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
fpr: AE03 9064 AE00 053C 270C  1DE4 6F7A 9091 1EA0 55D6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVyPVAAAoJEAEkDpRQOeFwOb4P/1o4qUuUTstuz5A57V9bGX97
D6sWioMhjjRX//951064Q7sHmQbb3CbDpUanPg0Np0devXai4OipuQCKf773OkVI
iFCHH1vm9U5qi70O7ylBKpjzfI5SLS/evlFOmP9e/wmrp482FsuODM+VqSx6i1Yb
P1wIbnttNJI/qFu23Y6XkE3cIwrzXWUrjm1ROFWir1x/xy9SwoWe3hcdy/HNVokS
jlM+RJL9bByEioWQXnxR0p2VLHr45bGXtBj+8m4rciAFFiqbNLaoGWt6+fpCR36g
YYLYPiZ4XTWUamTBtsIVBwx+t0E2oj9AReejKjIxbysUFyd0KyrVqg4Ri+YMdr0x
4j1uR9MZ39ItKjlGIncizPNjc7IAUDubxt8tuY4ndayr5lgtML4vGSbb2XDd2H3A
tlAS5QbV0k+eQQak8Mff0UmRfQE/IsWaPKe21ymBXI7wQPhrXCAZ+LwqdvTtiYJT
bFzezJ9HKTscHrRywDNPmzIDER6y6tkOdCkhjFpOGt+9zvadTN3Mt0ZJSiknZasT
35irU1s+ulFFgczW8FBm0kliFRJIf7n8BbyJpsMcIE4qekTiwRLi2x4VbrFVDn1v
/0R8sGAWNJRcSv0e9OI7oLfbT76seP+Bh5nK6Vt4szDzm+XCiPeQEZc8jCqwc9M0
PigIGXV12N6k/4usjY8e
=OUvd
-----END PGP SIGNATURE-----

Reply via email to