It seems that there is an issue with snapd.apparmor service. You can try enabling and starting the service by running the following commands:snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
Please make sure that the snapd.apparmor service is enabled and started.
sudo systemctl enable snapd.apparmor.service sudo systemctl start snapd.apparmor.service