Deja-dup一直要求输入密码

我有deja-dup的问题。 当我尝试备份到我的服务器时,启动备份+ – 10秒,然后一遍又一遍地请求我的加密密码。

到目前为止我做了什么:

  • delete ~/.cache/deja-dup/
  • 删除我在服务器上上传的目录并创建一个新目录

我试图调试这个问题:

 export DEJA_DUP_DEBUG=1 deja-dup --backup 

Deja-dup开始扫描,然后说它创建了第一个备份,之后调试日志状态:

 DUPLICITY: INFO 1 DUPLICITY: . GPG error detail: Traceback (most recent call last): DUPLICITY: . File "/usr/bin/duplicity", line 1532, in  DUPLICITY: . with_tempdir(main) DUPLICITY: . File "/usr/bin/duplicity", line 1526, in with_tempdir DUPLICITY: . fn() DUPLICITY: . File "/usr/bin/duplicity", line 1380, in main DUPLICITY: . do_backup(action) DUPLICITY: . File "/usr/bin/duplicity", line 1496, in do_backup DUPLICITY: . full_backup(col_stats) DUPLICITY: . File "/usr/bin/duplicity", line 567, in full_backup DUPLICITY: . globals.backend) DUPLICITY: . File "/usr/bin/duplicity", line 425, in write_multivol DUPLICITY: . at_end = gpg.GPGWriteFile(tarblock_iter, tdp.name, globals.gpg_profile, globals.volsize) DUPLICITY: . File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 356, in GPGWriteFile DUPLICITY: . file.close() DUPLICITY: . File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 241, in close DUPLICITY: . self.gpg_failed() DUPLICITY: . File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 226, in gpg_failed DUPLICITY: . raise GPGError(msg) DUPLICITY: . GPGError: GPG Failed, see log below: DUPLICITY: . ===== Begin GnuPG log ===== DUPLICITY: . gpg: keyblock resource `/etc/pacman.d/gnupg/pubring.gpg': file open error DUPLICITY: . ===== End GnuPG log ===== DUPLICITY: . DUPLICITY: . DUPLICITY: ERROR 31 GPGError DUPLICITY: . GPGError: GPG Failed, see log below: DUPLICITY: . ===== Begin GnuPG log ===== DUPLICITY: . gpg: keyblock resource `/etc/pacman.d/gnupg/pubring.gpg': file open error DUPLICITY: . ===== End GnuPG log ===== DUPLICITY: . 

据我所知,由于我没有运行arch,因此双重性无法打开/etc/pacman.d/gnupg/pubring.gpg

任何有关为什么/etc/pacman.d/ / deja-dup尝试打开/etc/pacman.d/而不是使用我的默认gpg密钥环的建议?

刚解决了这个问题,出于某种原因我的〜/ .gnupg / gpg.conf中有一行“keyring /etc/pacman.d/gnupg/pubring.gpg”

我评论过,现在它的工作原理。