Cannot Run Snap App

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/cache

but 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.

1

1 Answer

I suggest you to try reinstalling the package hello and then run:

sudo snap run hello

If this does not work, you should try reinstalling Snap and refreshing the snap core using:

sudo snap refresh core
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest