I’m also affected by this issue on Ubuntu 24.04, kernel 6.8.0-58-generic (pending upgrade to 6.8.0-59-generic), with AppArmor version 4.0.1really4.0.1-0ubuntu0.24.04.4. I encountered the error /lib/apparmor/apparmor.systemd: 148: [: ILLEGAL NUMBER: YES during AppArmor service startup.
The error originates from /lib/apparmor/rc.apparmor.functions at line 148, where the script uses if [ "$unconfined_users" -eq 0 ], but $unconfined_users contains the string YES. I fixed it locally by changing the line to if [ "$unconfined_users" = "NO" ]. After this change, the error no longer appears, and aa-status confirms AppArmor is working. I’ve attached screenshot for reference. ** Attachment added: "systemctl status.png" https://bugs.launchpad.net/apparmor/+bug/2102680/+attachment/5876729/+files/systemctl%20status.png -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2102680 Title: Installation of AppArmor on a 6.14 kernel produces error message "Illegal number: yes" To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/2102680/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
