希望有人可以帮忙...
我的 Ubuntu 笔记本电脑有点差,偶尔会出现程序崩溃等情况,所以我决定重建。
- 我使用 Deja-Dup 对我的 NAS 进行了备份(我每周备份一次)
- 我下载了 Ubuntu 17.10(当前最新版本)并从 USB 记忆棒重新安装了 Ubuntu。
- 我安装了
duplicity
&python-gi
(sudo apt install duplicity python-gi
) - 我尝试恢复我的备份(事实上我尝试恢复几个但都因同样的问题而失败)
重新安装失败并出现以下错误:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1546, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1540, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1391, in main
do_backup(action)
File "/usr/bin/duplicity", line 1468, in do_backup
restore(col_stats)
File "/usr/bin/duplicity", line 731, in restore
restore_get_patched_rop_iter(col_stats)):
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 560, in Write_ROPaths
for ropath in rop_iter:
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 523, in integrate_patch_iters
for patch_seq in collated:
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 389, in yield_tuples
setrorps(overflow, elems)
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 378, in setrorps
elems[i] = iter_list[i].next()
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 121, in difftar2path_iter
tarinfo_list = [tar_iter.next()]
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 339, in next
self.set_tarfile()
File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 333, in set_tarfile
self.current_fp = self.fileobj_iter.next()
File "/usr/bin/duplicity", line 767, in get_fileobj_iter
backup_set.volume_name_dict[vol_num],
KeyError: 1
是什么赋予了?
答案1
就我个人而言,我在 17.10 上使用 Duplicity 和 Python 时遇到了问题,但我发现 18.04 alpha 更好。可能是因为它源自 Debian Buster。无论如何,我会尝试使用其他 rsync 前端之一 - 我发现由于 deja-dup 也使用 rsync,因此其他应用程序通常可以访问相同的存档。尝试“Lucky Backup”或“GRSync”。我以前曾使用后者恢复 deja-dup 加密文件,因此我相信它在非加密存档上也能正常工作。HTH!