Incus upgrade failes debian 12

Hi All,

When i do an upgrade of incus i get the following error.

Blockquote

root@esx:~# apt upgrade -y
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up incus-base (0.7-202403261638-debian12) …
Failed to restart incus.service: Unit incus.service not found.
dpkg: error processing package incus-base (–configure):
installed incus-base package post-installation script subprocess returned error exit status 5
dpkg: dependency problems prevent configuration of incus:
incus depends on incus-base (= 0.7-202403261638-debian12); however:
Package incus-base is not configured yet.

dpkg: error processing package incus (–configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.36-9+deb12u4) …
Errors were encountered while processing:
incus-base
incus

Blockquote

What seems the problem here?

kind regards,

Chris

Unrelated to your question: use the preformatted text icon for command output like above.
Screenshot from 2024-03-27 14-48-10

It’s not clear what’s wrong.
You can run apt update, then apt upgrade? It’s possible that your package list is not fully updated.

I’m on Ubuntu 22.04.4 x86_64 and getting stuck on the upgrade as well:

Get:1 https://pkgs.zabbly.com/incus/stable jammy/main amd64 incus amd64 0.7-202403261636-ubuntu22.04 [24.8 MB]
Get:2 https://pkgs.zabbly.com/incus/stable jammy/main amd64 incus-base amd64 0.7-202403261636-ubuntu22.04 [57.2 MB]
Get:3 https://pkgs.zabbly.com/incus/stable jammy/main amd64 incus-client amd64 0.7-202403261636-ubuntu22.04 [4,848 kB]
Fetched 86.8 MB in 1s (67.3 MB/s)
(Reading database ... 118676 files and directories currently installed.)
Preparing to unpack .../incus_0.7-202403261636-ubuntu22.04_amd64.deb ...
Unpacking incus (0.7-202403261636-ubuntu22.04) over (0.6-202403181629-ubuntu22.04) ...
Preparing to unpack .../incus-base_0.7-202403261636-ubuntu22.04_amd64.deb ...
Unpacking incus-base (0.7-202403261636-ubuntu22.04) over (0.6-202403181629-ubuntu22.04) ...
Preparing to unpack .../incus-client_0.7-202403261636-ubuntu22.04_amd64.deb ...
Unpacking incus-client (0.7-202403261636-ubuntu22.04) over (0.6-202403181629-ubuntu22.04) ...
Setting up incus-client (0.7-202403261636-ubuntu22.04) ...
Setting up incus-base (0.7-202403261636-ubuntu22.04) ...
Removed /etc/systemd/system/multi-user.target.wants/incus-lxcfs.service.
Created symlink /etc/systemd/system/multi-user.target.wants/incus-lxcfs.service → /lib/systemd/system/incus-lxcfs.service.
Removed /etc/systemd/system/sockets.target.wants/incus.socket.
Created symlink /etc/systemd/system/sockets.target.wants/incus.socket → /lib/systemd/system/incus.socket.
Removed /etc/systemd/system/sockets.target.wants/incus-user.socket.
Created symlink /etc/systemd/system/sockets.target.wants/incus-user.socket → /lib/systemd/system/incus-user.socket.
Removed /etc/systemd/system/multi-user.target.wants/incus-startup.service.
Created symlink /etc/systemd/system/multi-user.target.wants/incus-startup.service → /lib/systemd/system/incus-startup.service.
Job for incus.service failed because a timeout was exceeded.
See "systemctl status incus.service" and "journalctl -xeu incus.service" for details.
dpkg: error processing package incus-base (--configure):
 installed incus-base package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of incus:
 incus depends on incus-base (= 0.7-202403261636-ubuntu22.04); however:
  Package incus-base is not configured yet.

dpkg: error processing package incus (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 incus-base
 incus
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
``

A fix is coming in the next few hours for those few systems hitting this problem.

A quick workaround is to do rm /etc/systemd/system/incus.service and then try the update again.

Thanks, actually my scenario is now resolved. I didn’t do all cluster members at the same time because I’m juggling workload. Once I triggered the update on other servers, the first server being upgraded (again) sprung into action and all went though fine.

The OP might have a different issue.

it is resolved by now.

1 Like

I am on debian 12 (kernel and zfs from zabbly), and I still have a problem.

The following packages have unfulfilled requirements:
openzfs-zfsutils : Breaks: openzfs-zfs-dkms (< 2.2.3-amd64-202403280436-debian12) but 2.2.3-amd64-202402230026-debian12 will be installed
E: Non-working packages

Can i do something to resolve this?

If instead of just “apt-get upgrade” I do the following:

  • apt-get upgrade openzfs-zfs-dkms
  • apt-get upgrade incus
  • apt-get upgrade linux-zabbly
    then everything is installed without errors.
    Does anyone have an idea why this is happening?

I normally use apt-get dist-upgrade, did you try that?

No, I must admit that I haven’t even thought about that. I always use ‘apt-get upgrade’.
But there were no messages regarding held back packages, and eventually it worked out with just ‘apt-get upgrade’.