FYI, you can solve this problem by 1. add "allow-loopback-pinentry" to ~/.gnupg/gpg-agent.conf 2. add "--gpg-options=--pinentry-mode=loopback" to duplicity command line options.
See https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase for more detail.
FYI, you can solve this problem by loopback- pinentry" to ~/.gnupg/ gpg-agent. conf options= --pinentry- mode=loopback" to duplicity command line options.
1. add "allow-
2. add "--gpg-
See https:/ /wiki.archlinux .org/index. php/GnuPG# Unattended_ passphrase for more detail.