GNUPG / GPG / S3 / Duplicity gpg: no default secret key: secret key not available

NIIBE Yutaka gniibe at fsij.org
Fri Jul 17 07:48:00 CEST 2015


On 07/17/2015 01:45 PM, punksgt wrote:
> Still getting this error.
> 
> GPGError: GPG Failed, see log below:
> ===== Begin GnuPG log =====
> gpg: no default secret key: secret key not available
> gpg: [stdin]: sign+encrypt failed: secret key not available
> ===== End GnuPG log =====

I re-read your original post again, and found that you redefine the
environment variable "HOME" in the script, which is the cause of the
trouble.

Please add two lines in your script:
===================================
GNUPGHOME=/home/bege/.gnupg
export GNUPGHOME
===================================

Then, please try with new script.  By setting GNUPGHOME, gpg command
will access that directory.

(Please note that secret subkey for encryption is also needed.)
-- 



More information about the Gnupg-users mailing list