[pkg-gnupg-maint] Bug#791379: gpg2 fails to use agent started by Xsession; automatically started agent works ok

Joey Hess id at joeyh.name
Sat Jul 4 03:31:57 UTC 2015


Package: gnupg-agent
Version: 2.1.0-1
Severity: normal

Every time I log in, gpg2 fails to access my secret key;
something is preventing it from using the gpg agent to prompt for
the passphrase:

joey at darkstar:~>ps -fax |grep gpg-agent
15743 ?        Ss     0:00 /usr/bin/gpg-agent --daemon
15967 pts/2    S+     0:00          \_ grep gpg-agent
joey at darkstar:~>gpg2 --decrypt me.gpg 
gpg: encrypted with 4096-bit RSA key, ID 17065459, created 2009-06-17
      "Joey Hess <id at joeyh.name>"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key

If I kill the gpg-agent process started by Xsession, and let gpg2
start the agent up for itself, it works:

joey at darkstar:~>kill 15743
joey at darkstar:~>ps -fax |grep gpg-agent
16008 pts/2    S+     0:00          \_ grep gpg-agent
joey at darkstar:~>gpg2 --decrypt me.gpg 
gpg: encrypted with 4096-bit RSA key, ID 17065459, created 2009-06-17
      "Joey Hess <id at joeyh.name>"
hi

This is a new problem seen after an upgrade today, and it happens every
time.

(gpg v1 is able to use the gpg-agent started by Xsession without
difficulty)

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnupg-agent depends on:
ii  libassuan0                  2.2.1-1
ii  libc6                       2.19-18
ii  libgcrypt20                 1.6.3-2
ii  libgpg-error0               1.19-2
ii  libnpth0                    1.2-1
ii  libreadline6                6.3-8+b3
ii  pinentry-gnome3 [pinentry]  0.9.4-2
ii  pinentry-gtk2 [pinentry]    0.9.4-2

Versions of packages gnupg-agent recommends:
ii  gnupg   1.4.19-3
ii  gnupg2  2.1.0-1
ii  gpgsm   2.1.0-1

gnupg-agent suggests no packages.

-- no debconf information

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20150703/5764bfc7/attachment.sig>


More information about the pkg-gnupg-maint mailing list