Ubuntu 22.04 & incus version inconsistency is confusing

This is confusing. Latest is supposedly v6.0.0, incus reports it’s v0.6, and apt reports yet something else.

$ incus --version
0.6

$ sudo apt-cache policy incus
incus:
  Installed: 1:0~202404231042-ubuntu22.04
  Candidate: 1:0~202404231042-ubuntu22.04
  Version table:
 *** 1:0~202404231042-ubuntu22.04 500
        500 https://pkgs.zabbly.com/incus/daily jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0~202404221044-ubuntu22.04 500
        500 https://pkgs.zabbly.com/incus/daily jammy/main amd64 Packages

Also, I’ve been getting a lot of these microceph entries in syslog.
Turns out microceph wasn’t initialized (good, I have no use for it), so maybe that’s why.
It safe to remove microceph snapd? I looked at initialization options and I guess it’s part of normal init defaults (which it probably shouldn’t be, but as long as it can be removed that’s fine).

microceph.daemon[37337]: 
time="2024-04-24T13:17:58+08:00" 
level=debug 
msg="start: database not ready, waiting..."

Environment:

$ sudo snap list | grep ceph
microceph          18.2.0+snap450240f5dd  975    latest/stable  canonical**     -

$ incus  --version
0.6

$ sudo incus profile show default
config: {}
description: Default Incus profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: br0
    type: nic
  root:
    path: /
    pool: default
    type: disk
name: default

$ uname -a  # Mint 21.3 (22.04 LTS)
Linux 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024

It looks like you’ve chosen the “daily” repo (described as “untested daily builds” in the documentation), so you just get a timestamp as the version number.

For comparison, I’m on the 6.0 LTS branch:

root@nuc3:~# cat /etc/apt/sources.list.d/zabbly-incus-lts-6.0.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/lts-6.0
Suites: jammy
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/zabbly.asc

and this is what I see:

root@nuc3:~# apt-cache policy incus
incus:
  Installed: 1:6.0-202404162314-ubuntu22.04
  Candidate: 1:6.0-202404162314-ubuntu22.04
  Version table:
 *** 1:6.0-202404162314-ubuntu22.04 500
        500 https://pkgs.zabbly.com/incus/lts-6.0 jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     1:6.0-202404121954-ubuntu22.04 500
        500 https://pkgs.zabbly.com/incus/lts-6.0 jammy/main amd64 Packages

I’d suggest you use either this or the “stable” branch, unless you’re hacking on the very edge of incus.

EDIT: also, you’re right that incus has no dependency on microceph (unless you’ve configured a ceph storage pool of course), or indeed any other snap, so you’re free to delete it. Uninstall snapd too if you’re not using any other snaps.

1 Like

Ok, sounds good.

But, shouldn’t daily declare itself as v6.0.0 or something else?

Are you sure your system is up to date and that you don’t have a manually built Incus binary or something?

stgraber@castiana:~$ dpkg -l | grep incus
ii  incus                                            1:0~202404231046-debian12                 amd64        Incus - Container and virtualization daemon (container-only)
ii  incus-base                                       1:0~202404231046-debian12                 amd64        Incus - Container and virtualization daemon (container-only)
ii  incus-client                                     1:0~202404231046-debian12                 amd64        Incus - Command line client
ii  incus-ui-canonical                               1:0~202404231046-debian12                 amd64        Incus - Web interface (canonical)
stgraber@castiana:~$ /opt/incus/bin/incus version
Client version: 6.0.0
Server version: 6.0.0
stgraber@castiana:~$ 
1 Like

which incus may also give a clue

Yep, forgotten binary in /usr/local/bin…

Darn, what a beginner mistake…

I would have figured it out if the RPM didn’t confuse me (that is, if the apt-cache policy said v6.0.0 was expected, I would have known instantly).