Comment 0 for bug 2009527

Revision history for this message
jj05 (h-launchpad-jj05) wrote :

Upgrading/reinstalling a package causes /usr/bin/restic to be overwritten.

After downgrades, backups/restores will fail if repository v2 is used, which isn't supported by the older versions

I've opened a bug upstream and they said it's a bug with the Debian package

https://github.com/restic/restic/issues/4237

## To reproduce the issue:

Run docker run -it docker.io/ubuntu:22.04

apt-get update
apt-get -yy install restic ca-certificates
restic self-update
restic version # restic 0.15.1
apt-get -yy install --reinstall restic
restic version # restic 0.12.1

## Possible solutions

* Write the updated binary to /usr/local/bin/restic instead

* Disable self-update when installed from a DEB package

## Workaround:

Copy the binary to /usr/local/bin/restic and remove the Debian package

apt-get -yy install restic ca-certificates
cp /usr/bin/restic /usr/local/bin/restic
apt-get --purge autoremove restic
restic self-update