. Advertisement .
..3..
. Advertisement .
..4..
The error: “cannot install “code”: classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap” is a common error that can show up in many ways. In this blog, we will go through some of the ways you can fix this issue. Read on.
What is “cannot install “code”: classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap”?
When attempting to make a soft link, you may encounter the following issue.
cannot install “code”: classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap
Cause of the error
First of all, Snapd is available for installation via the Manjaro’s Add/Remove software app (Pamac) which is located in the menu of launch. To install snapd you can use this command line:
$ sudo pacman -S snapd
Through the above theory, we can find out that the cause of the error may be because you forgot the symbol link in your command line.
Our Approach:
This issue can be resolved without the use of a symbolic link. As a result, to enable classic snaps supports, do the following code to create an symbolic link to the file /var/lib/snapd/snap and the /snap directory. Here’s how it’s done:
sudo ln -s /var/lib/snapd/snap /snap
Restart your system to make sure the snap’s path and AppArmor are updated and initialised properly.
Conclusion
We hope you enjoyed our article about the error. With this knowledge, we know that you can fix your error: “cannot install “code”: classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap” quickly by following these steps! If you still have any other questions about fixing this syntax error, please leave a comment below. Thank you for reading!
Leave a comment