deja-dup fails with root account

Bug #1881926 reported by Aimo Ella
This bug affects 1 person
Affects Status Importance Assigned to Milestone
duplicity (Ubuntu)
Fix Committed
Sebastien Bacher

Bug Description

I am running deja-dup in Ubuntu 20.04 (Focal Fossa), which has duplicity/focal,now and deja-dup/focal,now 40.6-1ubuntu2.

When I run deja-dup as myself, it runs fine, but when I launch it with sudo, it fails:

Traceback (innermost last):
  File "/usr/bin/duplicity", line 106, in <module>
  File "/usr/bin/duplicity", line 92, in with_tempdir
  File "/usr/lib/python3/dist-packages/duplicity/", line 1525, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python3/dist-packages/duplicity/", line 1175, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/lib/python3/dist-packages/duplicity/", line 225, in get_backend
    obj = get_backend_object(url_string)
  File "/usr/lib/python3/dist-packages/duplicity/", line 211, in get_backend_object
    return factory(pu)
  File "/usr/lib/python3/dist-packages/duplicity/backends/", line 82, in __init__
  File "/usr/lib/python3/dist-packages/duplicity/backends/", line 37, in ensure_dbus
    output = p.communicate()[0].decode("utf8", errors="replace")
 AttributeError: 'str' object has no attribute 'decode'

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

That bug has been fixed in 0.8.13. Please upgrade to the current version of duplicity. This will assure that any bugs fixed since your release are available and may fix your issue.

There are multiple options both stable and daily:

* Source -
* Stable tarball install -
* Daily duplicity PPA -
* Stable duplicity PPA -
* Stable snap builds - “sudo snap install duplicity —classic"
* Latest snap builds - “sudo snap install duplicity —classic —edge"
* Latest pip3 builds - “sudo pip3 install duplicity"

NOTE: UNinstall duplicity first if it was installed via the distribution repository. For Ubuntu that would be "sudo apt-get purge duplicity".

Changed in duplicity:
status: New → Invalid
Changed in duplicity (Ubuntu):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Aimo Ella (aimo-ella) wrote :

Thank you for the speedy response. I am curious: is there a bug report I should have found? I did try my best to find one, and failed.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Yes, it was in bug #1851167. Linking the reports would have been difficult.

Vej (vej)
Changed in duplicity (Ubuntu Focal):
status: New → Triaged
importance: Undecided → High
Changed in duplicity (Ubuntu Focal):
assignee: nobody → Sebastien Bacher (seb128)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.