Ubuntu 18.04, deja-dup, Backend problem

Asked by cguziolo

I have Ubuntu 18.04, and use deja-dup for making a backup of my folders into an external disk. I have the error:

BackendException: Could not initialize backend: No module named gi.repository
and no backup is done.

Deja-dup was working under Ubuntu 18.04 normally for some time, I think it stopped because of some automatic updates.

I have tried sudo apt install python-gi and sudo apt install duplicity, but the error persists.

I suspect it is a problem in duplicity linked to Python libraries it doesn't find. Is there some advice to give regarding this error by the community?

Question information

Language:
English Edit question
Status:
Answered
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Terry (mterry) said :
#1

Huh. You did the right things - we need python-gi... Not sure off the top of my head why your steps wouldn't work. I don't have an 18.04 system handy right now.

Assuming this is just something weird with your setup (and not a sign of a wider problem), I can suggest simply switching to the snap release? (The snap release bundles everything it needs inside itself)

sudo apt remove deja-dup
snap install deja-dup

This would also give you an updated version, as a bonus.

Can you help with this problem?

Provide an answer of your own, or ask cguziolo for more information if necessary.

To post a message you must log in.