Hello James, this should not be triggered by Déjà Dup, but by a combination of a file /etc/X11/Xsession.d/90gpg-agent together with an entry "use-agent" inside of ~/.gnupg/gpg.conf.
Can you check, if the file /etc/X11/Xsession.d/90gpg-agent does exist at your system and if your ~/.gnupg/gpg.conf does include use-agent please? I will move this bug report over to the Downstream Triagers of the ubuntu package gnupg-agent, which may ask more questions about this. ** Changed in: deja-dup Status: Incomplete => Invalid ** Changed in: deja-dup (Ubuntu) Status: Incomplete => Invalid ** Also affects: gnupg2 (Ubuntu) Importance: Undecided Status: New ** Summary changed: - Encrypted backup repeatedly asks for password on first use + gnupg-agent not running when needed by Déjà Dup ** Summary changed: - gnupg-agent not running when needed by Déjà Dup + gpg-agent not running when needed by Déjà Dup -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to deja-dup in Ubuntu. https://bugs.launchpad.net/bugs/1700645 Title: gpg-agent not running when needed by Déjà Dup Status in Déjà Dup: Invalid Status in deja-dup package in Ubuntu: Invalid Status in gnupg2 package in Ubuntu: New Bug description: Some have reported problems before with repeated demands for encryption passwords, but mine gives a different error. I've deleted all my previous backups and reinstalled duplicity and deja-dup, but I still get the error: DUPLICITY: . ===== Begin GnuPG log ===== DUPLICITY: . gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect DUPLICITY: . gpg: invalid size of lockfile '/home/username/.gnupg/gnupg_spawn_agent_sentinel.lock' DUPLICITY: . gpg: cannot read lockfile DUPLICITY: . gpg: can't connect to the agent: Invalid argument DUPLICITY: . gpg: problem with the agent: No agent running DUPLICITY: . ===== End GnuPG log ===== DUPLICITY: . DUPLICITY: . DUPLICITY: ERROR 31 GPGError DUPLICITY: . GPGError: GPG Failed, see log below: DUPLICITY: . ===== Begin GnuPG log ===== DUPLICITY: . gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect DUPLICITY: . gpg: invalid size of lockfile '/home/username/.gnupg/gnupg_spawn_agent_sentinel.lock' DUPLICITY: . gpg: cannot read lockfile DUPLICITY: . gpg: can't connect to the agent: Invalid argument DUPLICITY: . gpg: problem with the agent: No agent running DUPLICITY: . ===== End GnuPG log ===== DUPLICITY: . System details: Ubuntu 17.04 deja-dup 34.4-0ubuntu1 duplicity 0.7.06-2ubuntu3 Thank you in advance! To manage notifications about this bug go to: https://bugs.launchpad.net/deja-dup/+bug/1700645/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp