Cannot run snap app
By John Peck •
I have successfully installed snapd on Ubuntu 16.04 but while running the app, say snap run hello I am getting the following error:
cannot create lock directory /run/snapd/lock: Permission denied
I have tried the following
sudo apparmor_parser --replace --write-cache /etc/apparmor.d/usr.lib.snapd.snap-confine.real --cache-loc /etc/apparmor.d/cachebut did not work even after restart. I am not able to run any snap app though able to install any apps.
The snapd service is also running. But still even after reboot, the problem remains the same.
11 Answer
I suggest you to try reinstalling the package hello and then run:
sudo snap run helloIf this does not work, you should try reinstalling Snap and refreshing the snap core using:
sudo snap refresh core 2