#2596·mailinabox

Duplicity package from upstream repo broken

Author: DeefstompCreated Aug 16, 2026Updated Aug 23, 2026

Hi,

unfortunately the duplicity package from the duplicity ppa does not work anymore in Miab. I updated several versions from the ppa in hope they would fix the problem, but there seems to be a major shift in how duplicity is loaded.

I have the following repo configured (which was automatically added via the install script several years ago) https://ppa.launchpadcontent.net/duplicity-team/duplicity-release-git/ubuntu

bash
root@mail:~# source /usr/local/lib/mailinabox/env/bin/activate
(env) root@mail:~# duplicity
DEBUG: sys.path=['/usr/bin', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages']
DEBUG: sys.executable=/usr/bin/python3
DEBUG: os.environ['PYTHONPATH']=None
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 5, in <module>
    from duplicity.__main__ import dup_run
  File "/usr/lib/python3/dist-packages/duplicity/__main__.py", line 39, in <module>
    from duplicity import tempdir
  File "/usr/lib/python3/dist-packages/duplicity/tempdir.py", line 35, in <module>
    from duplicity import config
  File "/usr/lib/python3/dist-packages/duplicity/config.py", line 32, in <module>
    from duplicity import gpg
  File "/usr/lib/python3/dist-packages/duplicity/gpg.py", line 35, in <module>
    import gnupg
ModuleNotFoundError: No module named 'gnupg'

Backups are no longer possible and the status dashboard isn't working either due to this.

Source: mail-in-a-box/mailinabox