1 |
Monday 10 Aug 2015 12:02:25, Daniel Campbell (zlg) wrote : |
2 |
> On 08/10/2015 06:15 AM, Doug Goldstein wrote: |
3 |
> > On Mon, Aug 10, 2015 at 3:36 AM, Chí-Thanh Christopher Nguyễn |
4 |
> > <chithanh@g.o> wrote: |
5 |
> >> Doug Goldstein schrieb: |
6 |
> >>> gpg: cancelled by user gpg: skipped "0xA2BC03DC87ED1BD4": |
7 |
> >>> Operation cancelled gpg: signing failed: Operation cancelled |
8 |
> >>> error: gpg failed to sign the data |
9 |
> >> |
10 |
> >> There was an IRC discussion yesterday about this. Probably your |
11 |
> >> pinentry tries to talk to a GUI and fails. Try: |
12 |
> >> |
13 |
> >> unset DISPLAY export GPG_TTY=$(tty) |
14 |
> >> |
15 |
> >> to make it fall back to curses, or use "eselect pinentry" to |
16 |
> >> select curses as default. |
17 |
> >> |
18 |
> >> Interestingly, git requires GPG_TTY if eselect-pinentry is set to |
19 |
> >> gtk-2 or qt4, but repoman doesn't. |
20 |
> >> |
21 |
> >> |
22 |
> >> Best regards, Chí-Thanh Christopher Nguyễn |
23 |
> >> |
24 |
> >> |
25 |
> > |
26 |
> > $ eselect pinentry show Current pinentry binary implementation: |
27 |
> > pinentry-curses |
28 |
> > |
29 |
> > $ eselect pinentry list Available pinentry binary implementations: |
30 |
> > [1] pinentry-curses * |
31 |
> > |
32 |
> > Its the only version I've got on this machine. The box is headless |
33 |
> > and I ssh into and I use keychain to manage my SSH and GPG agent. |
34 |
> > |
35 |
> What's your keychain line look like in your .bashrc/.bash_profile? |
36 |
> Here's the relevant portion of mine. I was also having problems with |
37 |
> it until I changed the order of the arguments: |
38 |
> |
39 |
> [snip] |
40 |
> /usr/bin/keychain --agents ssh,gpg ~/.ssh/id_rsa ${GPGKEY} |
41 |
> source ~/.keychain/sporkbox-sh > /dev/null |
42 |
> source ~/.keychain/sporkbox-sh-gpg > /dev/null |
43 |
> [snip] |
44 |
> |
45 |
> For some reason, it's important that ssh comes before gpg. I got this |
46 |
> advice straight from drobbins, so unless it's changed, that's the way |
47 |
> to get it working. |
48 |
> -- |
49 |
> Daniel Campbell - Gentoo Developer |
50 |
> OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net |
51 |
> fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 |
52 |
|
53 |
Would someone mind documenting this issue in the wiki? |
54 |
|
55 |
https://wiki.gentoo.org/wiki/Gentoo_git_workflow#Issues |
56 |
|
57 |
So that we all have a point of reference to go to. |
58 |
|
59 |
Thanks! |