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)


thanks nerds
Was this page helpful?