gpg2 --use-agent --decrypt encrypted.asc
...
gpg: decryption failed: No secret key
FAIL
--use-agent --decrypt encrypted.asc
..
You need a passphrase to unlock the secret key for
...SUCCESS
This for example makes enigmail fail, and to make things worse: enigmail refuses
to work with gpg1
Using:
gpg (GnuPG) 2.1.11
libgcrypt 1.6.5
on Ubuntu 16.04.1 LTS
I have multiple keys in .gnupg, this might be triggering the problem.