installing unityhub in ubuntu distrobox complains about apparmor 2.4 compat patch

Trying to set up a Unity + Rider distrobox, nothing too fancy. Had a previous setup that was a bit messy using: * the unity hub flatpak on the host, * jetbrains toolbox appimage on the host, but would launch rider through a fedora container that had access to the host homedir, * dotnet installed as a package on the fedora container, it worked, but unity could not connect to the rider debugger, which i assume because they weren't launching from the same host so i scrapped all of it, and now: * ran ujust assemble to get an ubuntu box going * tried to install the unity hub as a apt package now it complains about AppArmor and i'm not sure how to troubleshoot it
panachemidi@labrador:~$ sudo apt install unityhub
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
unityhub is already the newest version (3.11.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up unityhub (3.11.0) ...
update-alternatives is /usr/bin/update-alternatives
/var/lib/dpkg/info/unityhub.postinst: line 18: update-desktop-database: command not found
Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.)
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
dpkg: error processing package unityhub (--configure):
installed unityhub package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
unityhub
E: Sub-process /usr/bin/dpkg returned an error code (1)
panachemidi@labrador:~$ sudo apt install unityhub
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
unityhub is already the newest version (3.11.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up unityhub (3.11.0) ...
update-alternatives is /usr/bin/update-alternatives
/var/lib/dpkg/info/unityhub.postinst: line 18: update-desktop-database: command not found
Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.)
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
dpkg: error processing package unityhub (--configure):
installed unityhub package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
unityhub
E: Sub-process /usr/bin/dpkg returned an error code (1)
thanks nerds
1 Reply
panachemidi
panachemidiOP4d ago
i used ubuntu-toolbox:latest from quay to make the box just tried it with a debian-toolbox:unstable box instead and got a different error:
Setting up unityhub (3.11.0) ...
update-alternatives is /usr/bin/update-alternatives
update-alternatives: using /opt/unityhub/unityhub to provide /usr/bin/unityhub (unityhub) in auto mode
/var/lib/dpkg/info/unityhub.postinst: line 18: update-desktop-database: command not found
Skipping the installation of the AppArmor profile as this version of AppArmor does not seem to support the profile bundled with Unity Hub.
Setting up unityhub (3.11.0) ...
update-alternatives is /usr/bin/update-alternatives
update-alternatives: using /opt/unityhub/unityhub to provide /usr/bin/unityhub (unityhub) in auto mode
/var/lib/dpkg/info/unityhub.postinst: line 18: update-desktop-database: command not found
Skipping the installation of the AppArmor profile as this version of AppArmor does not seem to support the profile bundled with Unity Hub.
found the issue: switched to using docker.io/library/ubuntu:24.04 instead and that one lets me through i did have another roadblock with jetbrains toolbox that would not run because fuse wasn't installed (and couldn't manage to install fuse), so i went with the rider tarball instead, a bit annoying now unity and rider boots and the debugger works, but my unity editor is weirdly blurry, which wasn't the case when i was running it off the hub flatpak

Did you find this page helpful?