Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] /usr/lib/apparmor/apparmor.systemd; no such file or directory (Read 557 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] /usr/lib/apparmor/apparmor.systemd; no such file or directory

The apparmor-dinit script and apparmor-s6 script looks for apparmor.systemd but the file does not exist on /usr/lib/apparmor/. This causes the apparmor service to fail. I found out the file is on the arch repository but not the artix world repository. I got the file by extracting the zst package from arch packages and placing it on the directory and the service now works. This error just happened today after pacman -Syu upgraded the apparmor package.

From /etc/dinit.d/apparmor
Code: [Select]
type        = scripted
command     = /usr/lib/apparmor/apparmor.systemd reload
restart     = false
waits-for   = root-rw

From /etc/s6/sv/apparmor
Code: [Select]
#!/bin/execlineb -P
exec /usr/lib/apparmor/apparmor.systemd reload

Artix World repository package:
Code: [Select]
$ echo $PWD
/home/Downloads/aa-artix/usr/lib/apparmor
$ ls
rc.apparmor.functions

Arch extra repository package
Code: [Select]
$ echo $PWD
/home/Downloads/aa-arch/usr/lib/apparmor
$ ls
apparmor.systemd  rc.apparmor.functions


Re: /usr/lib/apparmor/apparmor.systemd; no such file or directory

Reply #2
Just got an update on apparmor and it works now thanks!