Ubuntu 18.04 中的备份失败错误

AyB*_*Bee 5 encryption gnupg

我刚刚按照屏幕上显示的说明从 Ubuntu 16.04 LTS 升级到 Ubuntu 18.04。

我正面临备份失败并出现以下错误。

Error processing remote manifest (duplicity-inc.20180923T095052Z.to.20180927T050242Z.manifest.gpg): GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/home/abhilash/.gnupg/secring.gpg' to gpg-agent
gpg: can't open '/home/abhilash/.gnupg/secring.gpg': Permission denied
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
===== End GnuPG log =====
Run Code Online (Sandbox Code Playgroud)

小智 -1

因此,我已经设法解决了这个问题,即由于读取权限,备份过程无法查看 gnupg 中的本地文件。您需要根据以下帖子更改这些权利。

https://superuser.com/questions/954509/what-are-the- Correct-permissions-for-the-gnupg-enending-folder-gpg-warning

我必须使用“sudo”才能通过我的安装来执行此操作。然后是另外两个命令:

sudo chown -R $(whoami) ~/.gnupg/
find ~/.gnupg -type f -exec chmod 600 {} \;
find ~/.gnupg -type d -exec chmod 700 {} \;
Run Code Online (Sandbox Code Playgroud)

我将备份写入外部驱动器上的新文件夹中。