SOLVED: Install duplicity
via snap
. See my update here.
tl;dr: Uninstall the git PPA of duplicity and install the stable snap release:
$ sudo apt remove duplicity
$ sudo rm -rf /etc/apt/sources.list.d/duplicity-team-ubuntu-duplicity-release-git-jammy.list
$ sudo apt update
$ sudo snap install duplicity --classic
$ sudo ln -s /snap/bin/duplicity /usr/bin/duplicity
$ duplicity --version
duplicity 2.2.0 January 17, 2024
Edit 01 Feb 2024: I realized that an update of MiaB would probably reinstall duplicity on top of our snap symlink. So you’ll also want to block duplicity from being installed via apt
. We do this by creating an apt
preference file:
$ sudo echo -e "# Duplicity is installed via snap\nPackage: duplicity\nPin: release *\nPin-Priority: -1" > /etc/apt/preferences.d/duplicity
I woke up this morning to an error message from the box:
[Errno 2] No such file or directory: '/usr/bin/duplicity'
I tried reinstalling the duplicity package, but I have no binary:
root@mailbox:~# apt install --reinstall duplicity
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 357 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/duplicity-team/duplicity-release-git/ubuntu jammy/main amd64 duplicity amd64 2.2.0-ppa202401271616~ubuntu22.04.1 [357 kB]
Fetched 357 kB in 0s (1366 kB/s)
(Reading database ... 115472 files and directories currently installed.)
Preparing to unpack .../duplicity_2.2.0-ppa202401271616~ubuntu22.04.1_amd64.deb ...
Unpacking duplicity (2.2.0-ppa202401271616~ubuntu22.04.1) over (2.2.0-ppa202401271616~ubuntu22.04.1) ...
Setting up duplicity (2.2.0-ppa202401271616~ubuntu22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@mailbox:~# updatedb
root@mailbox:~# locate duplicity | grep bin
/var/lib/apt/lists/ppa.launchpadcontent.net_duplicity-team_duplicity-release-git_ubuntu_dists_jammy_main_binary-amd64_Packages
root@mailbox:~# which duplicity
root@mailbox:~# ls -al /usr/bin/duplicity
ls: cannot access '/usr/bin/duplicity': No such file or directory
I just went to another 22.04.1 box I manage, installed the git PPA and got the same result. No binary.
I’ve opened an issue on the duplicity gitlab page.