Incus deinstalled after upgrade in debian bookworm with backports

Today I have seen, that there are some updates of incus. I installed it with

apt-get update && apt-get upgrade

and

apt-get dist-upgrade

After installation finished and reboot incus wasn’t installed anymore. An
apt-get install incus brings an incompatible version for qemu.

incus : Hängt ab von: qemu-system-x86 (>= 1:8.0) aber 1:7.2+dfsg-7+deb12u12 soll installiert werden

but qemu-system-x86 seems to be available:

apt-cache madison qemu-system-x86
qemu-system-x86 | 1:9.2.0+ds-3~bpo12+2 | http://deb.debian.org/debian bookworm-backports/main amd64 Packages
qemu-system-x86 | 1:7.2+dfsg-7+deb12u12 | http://ftp2.de.debian.org/debian bookworm/main amd64 Packages
      qemu | 1:7.2+dfsg-7+deb12u12 | http://ftp2.de.debian.org/debian bookworm/main Sources

@gibmat

The Debian packaging of Incus was refactored to more closely match Zabbly packaging. The main change is that the “incus” package now explicitly depends on the various packages needed to run VMs, such as qemu. Depending on how you’ve setup apt priority pinning, you might need to help hint apt that a backported version of qemu also exists. For example, on my amd64 bookworm servers I ran the following command to fully pickup the latest update of Incus:

sudo apt install incus/bookworm-backports qemu-system-x86/bookworm-backports qemu-system-common/bookworm-backports qemu-system-data/bookworm-backports seabios/bookworm-backports

If you only want to run containers in Incus, you can install just the “incus-base” package and then uninstall the “incus” package and its dependencies from the host system without issue.

sudo apt install incus-base/bookworm-backports
sudo apt remove incus incus-agent qemu-system-x86 qemu-system-common qemu-system-data seabios

yes that worked. Thank you very much for your fast help!

Thank you very much for this thread and the proposed solution! I was sweating like hell 2 days ago when I noticed that Incus didn’t work after an update.

I have ~ 3,000 users active on my services and was worries to have another sleepless night.

Maybe “incus-base” deserves to be mentioned in the “Install” guide here. I was not aware of the package and like it because I don’t want to run any full VMs - only containers (the containers run in a VM themselves anyway…).

@gibmat maybe you want to add this to the Install section. :slight_smile:

PR submitted: Update Debian installation documentation by gibmat · Pull Request #1830 · lxc/incus · GitHub :slightly_smiling_face:

Also, for future reference I keep the Debian wiki page for Incus updated and significant changes like this will have a NEWS entry too.

2 Likes