I’ve got a Raspberry Pi 5. I wonder if apparmor is installed and enabled by default after installation. I installed Raspberry Pi OS lite (version without desktop) and then ncp using
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash
```
In /boot/firmware/cmdline.txt there is no apparmor.