Ubuntu – AppArmor systemd startup error

16.04apparmorsystemd

I've got this error while booting. aa-status says modules are loaded. Some in enforce mode.

Oct 07 22:44:29 pc apparmor[787]:  * Starting AppArmor profiles
Oct 07 22:44:26 pc systemd[1]: Starting LSB: AppArmor initialization...
Oct 07 22:44:29 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]:    ...fail!
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Control process exited, code=exited status=123
Oct 07 22:44:30 pc systemd[1]: Failed to start LSB: AppArmor initialization.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Unit entered failed state.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Failed with result 'exit-code'.

There is a similar question, Apparmor Init Failed, Exit Code 123's answer is installing apparmor-easyprof-ubuntu, but it didn't fix it in my laptop.

I've tried to setup a chromium profile and I think I did, as it prevent chromium to read the battery level ond dbus. But I am not sure what this startup error is. I get the same error with systemctl start apparmor-service too.

I've deleted usr.bin.chromium-browser in /etc/apparmor.d/, purged and reinstalled apparmor-profiles and apparmor-profiles-extra

What could this error be? How can I fix it?

Edit: Same or similar question, unanswered Ubuntu 16.04. Failed to start LSB: AppArmor initialization

Edit2: I think this might be related to this: https://bugs.launchpad.net/apparmor/+bug/1503762

Edit3: debsums -ac gave me this about systemd and apparmor

/etc/apparmor.d/usr.sbin.dnsmasq
/etc/apparmor.d/usr.bin.chromium-browser
/etc/apparmor.d/usr.bin.totem-previewers
/etc/apparmor.d/usr.bin.firefox
/etc/apparmor.d/lightdm-guest-session
/etc/systemd/logind.conf

Best Answer

You probably copied /etc/apparmod.d to ~backup, otherwise the rsync step would not work (or would not make any sense).

Related Question