deja backup: UnicodeDecodeError "unexpected end of data"



我正在使用ubuntu 12.04和deja备份。

它在准备备份期间遇到错误:

Backup failed: unknown reason:
File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 187, in Iterate
log.Debug(_("Selecting %s") % subpath.name)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 48: unexpected end of data

完整报告见下文。

我怀疑这是因为文件名编码不正确。

您是否知道如何纠正此问题,或者至少让deja备份忽略该问题?

谢谢!

.

Traceback (most recent call last):
File "/usr/bin/duplicity", line 1403, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1396, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1366, in main
full_backup(col_stats)
File "/usr/bin/duplicity", line 491, in full_backup
bytes_written = dummy_backup(tarblock_iter)
File "/usr/bin/duplicity", line 197, in dummy_backup
while tarblock_iter.next():
File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 507, in next
result = self.process(self.input_iter.next(), size)
File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 188, in get_delta_iter
for new_path, sig_path in collated:
File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 281, in collate2iters
for relem1 in riter1:
File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 187, in Iterate
log.Debug(_("Selecting %s") % subpath.name)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 48: unexpected end of data

我有一个解决方法,

您可以在调用重复之前更改会话语言

declare -x LANG="en_US.UTF-8"

它对我有用,我的默认 LANG 是"es_ES。UTF-8",并且重复性失败。随着"en_US。UTF-8"有效。

请参阅:https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/1050509

相关内容

  • 没有找到相关文章