Workarounds for Launchpad PPAs not built correctly for 2.2.[0,1], PyPI pips for 2.2.[0,1,2]
The PPAs on Launchpad named duplicity-develop-git
and duplicity-release-git
do not have the entry point script for duplicity installed, so you will get an error trying to run directly, i.e. /usr/local/bin/duplicity.
Thankfully, it is installed as a module, so it can be invoked like python3 -m duplicity --version
.
There are some workarounds that work, a short alias in ~/.bashrc:
alias duplicity='python3 -m duplicity'
or as a shell script in /usr/bin/duplicity:
#!/usr/bin/sh
python3 -m duplicity $@
# Remember to `chmod 755 /usr/bin/duplicity`.
or use the Snap distribution:
sudo apt remove duplicity -y
sudo snap install duplicity --classic
Edited by Kenneth Loafman