26

I'm working with chromeos 80 and am using debian buster in crostini. I want to use the snap package manager. When I try:

~$sudo snap install hello-world
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
   /tmp/sanity-mountpoint-962423259: mount failed: Operation not permitted.

How can I get this working?

user1592380
  • 34,265
  • 92
  • 284
  • 515

5 Answers5

48

Try this way to install SNAPD

sudo apt install libsquashfuse0 squashfuse fuse 
sudo apt install snapd

Now select package name:

sudo snap install gimp 
Josef Ginerman
  • 1,460
  • 13
  • 24
kcreddy
  • 481
  • 4
  • 3
  • 1
    this doesnt seem to work with ubuntu 18.04 though. libsquashfuse0 doesnt exist and without it, the error persists. – phil294 Jan 13 '21 at 15:14
  • 10
    @phil294 - initial question is specific to Chrome OS, which runs Debian Buster in VM; can confirm `sudo apt install libsquashfuse0 squashfuse fuse` resolved the issue for me on my Pixelbook. – Joshua Pelton-Stroud Feb 03 '21 at 23:48
  • 2
    I used this to install Webstorm from Snap and it worked. Did it on a Asus Chromebox. Just curious about why or how `libsquashfuse0 squashfuse fuse` works –  Apr 21 '21 at 05:05
  • Great answer, solved my problem ! – Cornelis Nov 02 '21 at 09:43
  • 1
    `Failed to write 'change' to '/sys/devices/LNXSYSTM:00/uevent': Permission denied` and the relevant directory: rwxr-xr-x 5 nobody nogroup 0 Dec 19 09:15 /sys/devices/LNXSYSTM:00/ This is with Debian 11 (bullseye) on a Chromebook: `Linux penguin 5.4.151-16908-gff376e5d5ee1 #1 SMP PREEMPT Sat Dec 11 19:28:06 PST 2021 x86_64 GNU/Linux` – Peter Ludemann Dec 20 '21 at 11:33
  • 1
    This fixed the issue in `Kali` Linux – lepe Mar 14 '22 at 01:26
  • I can confirm this works for ChromeOS Flex too – scoochy Jul 02 '22 at 19:50
  • 1
    Does not works for Ubuntu 18.04.6 LTS x86_64 `Unable to locate package libsquashfuse0` – HARSHAL RATHORE Jul 28 '22 at 20:19
7

Under CentOS 8 we have a file /etc/modprobe.d/CIS.conf with all unused file systems disabled. Removing the line: install squashfs /bin/true resolves the error

User1010
  • 789
  • 1
  • 6
  • 19
BdK
  • 71
  • 1
  • 1
2

Try: sudo modprobe loop

Here is a relevant forum post based on your error.

Dane B
  • 169
  • 12
2

On Centos or Fedora:

sudo dnf install squashfs-tools squashfuse
shs
  • 3,683
  • 1
  • 6
  • 34
Mike Eager
  • 309
  • 1
  • 2
  • 9
  • Only this may not solve issue. Need to remove this `install squashfs /bin/true` also – Vijay S B Jan 17 '23 at 09:00
  • This did not work for me on F37. There also was no file in `/etc/modprobe.d/` containing `install squashfs /bin/true` – shs Mar 06 '23 at 11:00
  • This also works on AlmaLinux. But I had to additionally install fuse: `dnf install fuse` – Kairat Jun 20 '23 at 04:00
1

Under Redhat7 we have a file /etc/modprobe.d/NCIRC.conf with all unused file systems disabled. Removing the line: install squashfs /bin/true resolves the error here as well

shs
  • 3,683
  • 1
  • 6
  • 34
  • I donot have this file in my system – Kartik Agarwal Oct 19 '22 at 03:54
  • Try a more generic approach. Go to /etc/modprobe.d directory and grep squashfs * Edit the file that references the line above, and comment it out with leading #. I had this issue, followed this process, and resolved the problem. No restarting of anything is necessary. Just comment out the line, and snap install works. – Daemon42 Oct 20 '22 at 20:13