如何使用备份修复此 gpg 错误(deja-dup、口是心非)?

如何使用备份修复此 gpg 错误(deja-dup、口是心非)?

每天当我运行计划备份时,我都会看到以下错误:

Error processing remote manifest (duplicity-inc.20190724T191929Z.to.20190726T191408Z.manifest.gpg): GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====

我该如何解决这个问题?

答案1

刚刚想起来。很可能是 gpg 升级问题,请参阅 https://askubuntu.com/questions/1057627/duplicity-fails-with-bad-session-key-error

引用上述票证中链接的解决方法

“问题是,正如链接的帖子所述,gpg 2.1 从管道中取消了用于密钥身份验证的密码。需要启用并配置 gpg 代理才能使恢复正常工作。

将以下内容添加到 ~/.gnupg/gpg.conf 中:

use-agent
pinentry-mode loopback

到你的~/.gnupg/gpg-agent.conf:

allow-loopback-pinentry

..ede/duply.net

相关内容