我刚刚按照屏幕上的说明从 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 =====
答案1
因此,我已成功修复此问题,即备份过程由于读取权限而无法查看 gnupg 中的本地文件。您需要按照以下帖子更改这些权限。
我必须使用“sudo”才能在我的安装中执行此操作。然后是另外两个命令:
sudo chown -R $(whoami) ~/.gnupg/
find ~/.gnupg -type f -exec chmod 600 {} \;
find ~/.gnupg -type d -exec chmod 700 {} \;
我将备份写入外部驱动器上的新文件夹。