Public bug reported: After upgrading to noble apparmor.service fails on my machine with the following log message:
Apr 30 14:28:42 shodan apparmor.systemd[1739]: Restarting AppArmor Apr 30 14:28:42 shodan apparmor.systemd[1739]: Reloading AppArmor profiles Apr 30 14:28:42 shodan apparmor.systemd[1887]: AppArmor parser error for /etc/apparmor.d in profile /etc/apparmor.d/usr.lib.mediascanner-2.0.mediascanner-extractor at line 14: Could not open '/usr/share/apparmor/hardware/audio.d' Apr 30 14:28:42 shodan apparmor.systemd[1739]: Error: At least one profile failed to load Apr 30 14:28:42 shodan apparmor.systemd[2206]: Restarting AppArmor Apr 30 14:28:42 shodan apparmor.systemd[2206]: Reloading AppArmor profiles Apr 30 14:28:42 shodan apparmor.systemd[2334]: AppArmor parser error for /etc/apparmor.d in profile /etc/apparmor.d/usr.lib.mediascanner-2.0.mediascanner-extractor at line 14: Could not open '/usr/share/apparmor/hardware/audio.d' Apr 30 14:28:42 shodan apparmor.systemd[2206]: Error: At least one profile failed to load Apr 30 14:28:41 shodan systemd[1]: Starting apparmor.service - Load AppArmor profiles... Apr 30 14:28:41 shodan systemd[1]: apparmor.service: Main process exited, code=exited, status=1/FAILURE Apr 30 14:28:41 shodan systemd[1]: apparmor.service: Failed with result 'exit-code'. Apr 30 14:28:41 shodan systemd[1]: Failed to start apparmor.service - Load AppArmor profiles. Apr 30 14:28:42 shodan systemd[1]: Starting apparmor.service - Load AppArmor profiles... Apr 30 14:28:42 shodan systemd[1]: apparmor.service: Main process exited, code=exited, status=1/FAILURE Apr 30 14:28:42 shodan systemd[1]: apparmor.service: Failed with result 'exit-code'. Apr 30 14:28:42 shodan systemd[1]: Failed to start apparmor.service - Load AppArmor profiles. It looks like mediascanner2.0 was installed previously and left behind a bad config. It is not currently installed which explains why /usr/share/apparmor/hardware/audio.d is missing. ** Affects: apparmor (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2064284 Title: apparmor.service fails because of invalid config To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2064284/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs