Gpg: decryption failed: No secret key, what's the fix without removing and attaching the USB?!

I don’t use your distribution so I can’t tell what is different in Debian.

To start troubleshooting this, please follow my advice in German as follows:

  • Stop gpg-agent and scdaemon with gpgconf --kill all
  • Edit $HOME/.gnupg/gpg-agent.conf and add the following two lines:
log-file /tmp/agent.log
debug 0xffff
  • Edit $HOME/.gnupg/scdaemon.conf and add the following lines:
log-file /tmp/scdaemon.log
debug 0xffff
  • Try to reproduce your problem
  • :warning: Caution /tmp/agent.log and /tmp/scdaemon.log files will contain confidential information, like your PINs, whatever things you might be trying to sign etc. etc. Be careful when publishing them and be ready to change your PIN afterwards.
  • Remove those lines after you are done