Traceback (innermost last):
File "/home/khteh/.local/bin/duplicity", line 87, in <module>
with_tempdir(main)
File "/home/khteh/.local/bin/duplicity", line 70, in with_tempdir
fn()
File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/dup_main.py", line 1564, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/commandline.py", line 1241, in ProcessCommandLine
config.backend = backend.get_backend(args[0])
File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/backend.py", line 223, in get_backend
obj = get_backend_object(url_string)
File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/backend.py", line 209, in get_backend_object
return factory(pu)
File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/backends/pydrivebackend.py", line 36, in __init__
import httplib2
File "/home/khteh/.local/lib/python3.10/site-packages/httplib2/__init__.py", line 52, in <module>
from . import auth
File "/home/khteh/.local/lib/python3.10/site-packages/httplib2/auth.py", line 20, in <module>
auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'
答案1
我解决了这个问题。升级到 Ubuntu 22.04 后,我的备份也出现了这个错误。通过在备份位置首选项中重新选择(刷新)备份位置来修复。