Build Duplicity Debian Packages from Source
30. June 2014

Duplicity is a very nice tool for efficient and encrypted backups ( It is provided by debian repos but in a slightly old version. Due to some conflicts with python 2.7 I needed to have the latest version. Since duplicity is a python project supplying a, creating a debian deb package is very easy.

Install requirements:

aptitude install python-all-dev python-stdeb python-dev

Download Sources (look for latest sources)


Build debian deb package

cd duplicity-0.6.24
python --command-packages=stdeb.command bdist_deb

Check results in deb_dist subdir.


You may face an issue where executing duplicity installed from the created deb package results in import errors stating that the lockfile module is not available for import. Install this missing requirement by:

aptitude install python-lockfile

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.