lava-dispacher uninstallable on Ubuntu 22.04
I don't really have a solution for this, but I'm writing this issue to keep it documented somewhere. To fix #467 (closed) (docker device sharing broken with cgroups v2), I had to make lava-dispatcher use either cgroups v1 and the existing code we had to support that, or cgroups v2 plus some extra packages to make it work. This was originally aligned with Debian, because the Debian 10 kernel defaults to cgroups v1, and the Debian 11 kernel defaults to cgroups v2.
So the dependencies in lava-dispatcher express the cases where its known to work:
base-files (<< 11.1) | python3-bpfcc (>= 0.21), base-files (<< 11.1) | linux-headers-amd64 | linux-headers-arm64, base-files (<< 11.1) | bpftool,
either Debian < 11, or for Debian >= 11, we need python3-bpfcc (>= 0.21), kernel headers, and bpftool for the cgroups v2 support. The kernel headers and for bpftools can be satisfied on Ubuntu by linux-headers-generic and linux-tools-common.
python3-bpfcc >= 0.21, however, seems to not be available anywhere in Ubuntu, 0.18 being the latest version even though 0.21 has been in Debian test since 2021-10-11 (thus way before the release of Ubuntu 22.04).