Snap cannot communicate with server

Hi complete noob here. I tried to install an app from snap store but failed. I opened the Konsole and typed snap nothing happened. I installed snap-pac 3.0.1-1. I typed snap and there was a response about what snap command is, so I assumed that snap works tried to install an app from the Konsole with install command and got the message that snap cannot communicate with server.
I run the "sudo journalctl --no-pager -u snapd " command and (amongst other stuff) got this:

Starting Snap Daemon...
systemd[1]: Dependency failed for Snap Daemon.
systemd[1]: snapd.service: Job snapd.service/start failed with result 'dependency'.
systemd[1]: snapd.service: Triggering OnFailure= dependencies.
snapd[3210]: AppArmor status: apparmor not enabled
snapd[3210]: overlord.go:263: Acquiring state lock file
snapd[3210]: overlord.go:268: Acquired state lock file
daemon.go:247: started snapd/2.57.4-1 (series 16; classic; devmode) manj
aro/ (amd64) linux/5.15.74-3-MANJARO.
snapd[3210]: daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of
30s plus 5s per snap)
snapd[3210]: helpers.go:147: error trying to compare the snap system key: system-key
missing on disk
snapd[3210]: daemon.go:521: gracefully waiting for running hooks
 snapd[3210]: daemon.go:523: done waiting for running hooks
snapd[3210]: overlord.go:504: Released state lock file
 snapd[3210]: daemon stop requested to wait for socket activation
 systemd[1]: snapd.service: Deactivated successfully.
-- Boot 4cf28c5317544d6cb7dada4dcafd90d9 --
systemd[1]: Starting Snap Daemon...
systemd[1]: Dependency failed for Snap Daemon.
systemd[1]: snapd.service: Job snapd.service/start failed with result 'dependency'.
systemd[1]: snapd.service: Triggering OnFailure= dependencies.
snapd[2830]: AppArmor status: apparmor not enabled
snapd[2830]: overlord.go:263: Acquiring state lock file
snapd[2830]: overlord.go:268: Acquired state lock file
snapd[2830]: patch.go:64: Patching system state level 6 to sublevel 1...
snapd[2830]: patch.go:64: Patching system state level 6 to sublevel 2...
snapd[2830]: patch.go:64: Patching system state level 6 to sublevel 3...
snapd[2830]: daemon.go:247: started snapd/2.57.4-1 (series 16; classic; devmode) manj
aro/ (amd64) linux/5.15.74-3-MANJARO.
snapd[2830]: daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of
30s plus 5s per snap)
snapd[2830]: daemon.go:521: gracefully waiting for running hooks
snapd[2830]: daemon.go:523: done waiting for running hooks
snapd[2830]: overlord.go:504: Released state lock file
snapd[2830]: daemon stop requested to wait for socket activation
systemd[1]: snapd.service: Deactivated successfully.

It appears that a dependency is either missing or fails for the snap daemon.

Any advice on what to do ?
Thank you

Add to the grub cmd line in /etc/default/grub

quiet apparmor=1 security=apparmor ...

Then rebuild grub

sudo update-grub

Enable snap

sudo systemctl enable snapd

And reboot

reboot

If you are running a samba server on your system be sure to configure apparmor to allow samba.