duplicity 在 deja-dup 中崩溃

duplicity 在 deja-dup 中崩溃

我使用 Ubuntu 22.04,所有软件包都是最新的

在 Deja-dup 中遇到“无法理解 duplicity 版本。”的问题,我检查了 duplicity

[xavier@imladris ~]$ duplicity --version
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 42, in <module>
    from duplicity.dup_main import main
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 37, in <module>
    import fasteners
  File "/usr/lib/python3/dist-packages/fasteners/__init__.py", line 23, in <module>
    from fasteners.lock import locked  # noqa
  File "/usr/lib/python3/dist-packages/fasteners/lock.py", line 31, in <module>
    import eventlet
  File "/usr/lib/python3/dist-packages/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 4, in <module>
    __import__('eventlet.green._socket_nodns')
  File "/usr/lib/python3/dist-packages/eventlet/green/_socket_nodns.py", line 11, in <module>
    from eventlet import greenio
  File "/usr/lib/python3/dist-packages/eventlet/greenio/__init__.py", line 3, in <module>
    from eventlet.greenio.base import *  # noqa
  File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 471, in <module>
    from OpenSSL import SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 3279, in <module>
    _lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

有办法解决这个问题吗?我已经重新安装了 python3-cryptography,但没有成功

谢谢,干杯

泽维尔

答案1

读起来像是 python 模块 pyOpenSSL 中有一个错误。将其升级到 v22.1.0 或更高版本应该可以修复它。

https://levelup.gitconnected.com/fix-attributeerror-module-lib-has-no-attribute-openssl-521a35d83769

答案2

尝试按照sudo dpkg -r --force-depends python3-cryptographyduplictty sudo python3 -m pip install "cryptography<40.0"github 问题中的指示进行解决

它没有解决问题,所以我用 卸载pip remove,然后sudo apt --fix-broken install重新安装 python3-cryptography

现在一切都运行良好,我真的不明白为什么......

相关内容