I'm getting the following error when I try to install Unity Hub (sudo apt install unityhub) within an Ubuntu distrobox. I don't know enough to judge whether the 'AppArmor' error is accurate in this context.
Setting up unityhub (3.15.4) ...
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
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Errors were encountered while processing:
unityhub
E: Sub-process /usr/bin/dpkg returned an error code (1)