I tried installing snap on debian 10 buster using the sudo command. When I run the command "sudo snap install core" I get the error message:
system does not fully support snapd: cannot mount squashes image using "squashfs": mount: /tmp/sanity-mountpoint-600122688: mount failed: operation not permitted
What could be the cause? Thanks.
2
Answers
There could be several reasons for this problem:
I had to add the repo
add deb http://ftp.debian.org/debian stable main contrib non-free
into my/etc/apt/sources.list
and thenapt update
. My original repositories list didn’t contain the squashfuse package.Try this:
sudo apt install libsquashfuse0 squashfuse fuse
You may also need
sudo modprobe loop
Beside installing
apt install fuse
it is important to make sure that you are running snap on an operation system that allows for it.For example trying to run snap inside a container (a VPS, or a docker container) that does not have the correct configuration to run snap, snap will be able to install once, but will not work after restart, and this kind of error messages will be present in the syslog:
More on that here:
https://community.letsencrypt.org/t/system-does-not-fully-support-snapd-cannot-mount-squashfs-image-using-squashfs/132689/13
also some keywords to look for on this topic and how to allow containers to run snap correctly would be: