Package: libgpgme11 Followup-For: Bug #714491 I can no longer reproduce this bug, but I've attached the test case anyway in case you want to try it on an old version - it works for me on my current system.
I'm pretty sure I haven't changed any configs since my original report, and that I wasn't doing anything weird such as running from an ssh session. In case anyone *does* want to test this inside an ssh session, you must run the following to get gpg-agent working correctly: $ export GPG_TTY=$(tty) $ gpg-agent --daemon --pinentry-program=/usr/bin/pinentry-curses --keep-tty bash $ # then run the test If you are su-d as another user *inside* an ssh session, you must first run $ script /dev/null *before* the previous set of commands. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libgpgme11 depends on: ii gnupg2 2.0.20-1 ii libassuan0 2.1.1-1 ii libc6 2.17-7 ii libgpg-error0 1.10-3.1 ii multiarch-support 2.17-7 libgpgme11 recommends no packages. Versions of packages libgpgme11 suggests: pn gpgsm <none> -- no debconf information
#!/bin/sh set -x rm -rf gtmp && mkdir gtmp && chmod 700 gtmp export GNUPGHOME=$(readlink -m gtmp) # create key gpg --no-use-agent --passphrase password --command-fd 0 --gen-key <<EOF 1 1024 0 y Testing Key test...@debian.org O EOF KEYID=$(gpg --with-colons -k | grep pub | cut -d: -f5) # create S subkey gpg --no-use-agent --passphrase password --command-fd 0 --edit-key "$KEYID" <<EOF addkey 4 1024 0 save EOF # export master key and re-import only subkeys gpg --export-secret-keys $KEYID > master.key gpg --export-secret-subkeys $KEYID > sub.key gpg --command-fd 0 --delete-secret-key $KEYID <<EOF y y EOF gpg --import sub.key gpg -K $KEYID cd gtmp && mkdir -p conf && cat > conf/distributions <<EOF Origin: Testing Suite: unstable Codename: sid Architectures: i386 amd64 source Components: contrib Description: dummy repo for testing #714491 SignWith: test...@debian.org EOF reprepro export gpg --verify dists/sid/InRelease gpg -k