System does not fully support snapd (Debian 11)

Hello. I follow these steps for installing snap core. When I run “sudo snap install core” after that I see this error message.

error: system does not fully support snapd: cannot mount squashfs image using “squashfs”: mount: /tmp/sanity-mountpoint-859014632: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

“journalctl -u snapd” output.

-- Journal begins at Wed 2023-03-01 12:29:12 MSK, ends at Mon 2023-04-24 10:18:19 MSK. --

мар 06 12:09:01 debian systemd[1]: Starting Snap Daemon… мар 06 12:09:01 debian snapd[11242]: AppArmor status: apparmor not enabled

мар 06 12:09:01 debian snapd[11242]: daemon.go:347: started snapd/2.49-1+deb11u2 (series 16; classic; devmode) debian/11 (amd64) linux/5.10.0-21-amd6>

мар 06 12:09:02 debian snapd[11242]: main.go:129: system does not fully support snapd: cannot mount squashfs image using “squashfs”: mount: /tmp/sani>

мар 06 12:09:02 debian snapd[11242]: daemon.go:440: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)

мар 06 12:09:02 debian snapd[11242]: helpers.go:137: error trying to compare the snap system key: system-key missing on disk

мар 06 12:09:02 debian systemd[1]: Started Snap Daemon.

мар 06 12:09:03 debian snapd[11242]: stateengine.go:150: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 403 >

мар 06 12:09:07 debian snapd[11242]: daemon.go:589: gracefully waiting for running hooks

мар 06 12:09:07 debian snapd[11242]: daemon.go:591: done waiting for running hooks

мар 06 12:09:07 debian snapd[11242]: daemon stop requested to wait for socket activation

мар 06 12:09:07 debian systemd[1]: snapd.service: Succeeded.

мар 06 12:09:12 debian systemd[1]: Starting Snap Daemon…

мар 06 12:09:12 debian snapd[11465]: AppArmor status: apparmor not enabled

мар 06 12:09:12 debian snapd[11465]: patch.go:64: Patching system state level 6 to sublevel 1…

мар 06 12:09:12 debian snapd[11465]: patch.go:64: Patching system state level 6 to sublevel 2…

мар 06 12:09:12 debian snapd[11465]: patch.go:64: Patching system state level 6 to sublevel 3…

мар 06 12:09:12 debian snapd[11465]: daemon.go:347: started snapd/2.49-1+deb11u2 (series 16; classic; devmode) debian/11 (amd64) linux/5.10.0-21-amd6>

мар 06 12:09:12 debian snapd[11465]: main.go:129: system does not fully support snapd: cannot mount squashfs image using “squashfs”: mount: /tmp/sani>

мар 06 12:09:12 debian snapd[11465]: daemon.go:440: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)

мар 06 12:09:12 debian systemd[1]: Started Snap Daemon.

мар 06 12:09:13 debian snapd[11465]: stateengine.go:150: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 403 >

мар 06 12:09:17 debian snapd[11465]: daemon.go:589: gracefully waiting for running hooks

мар 06 12:09:17 debian snapd[11465]: daemon.go:591: done waiting for running hooks

мар 06 12:09:17 debian snapd[11465]: daemon stop requested to wait for socket activation

мар 06 12:09:17 debian systemd[1]: snapd.service: Succeeded.

– Boot 4d5c5b12a65540e79bc1bb5f98098dd0 –

апр 07 17:09:01 debian systemd[1]: Starting Snap Daemon…

апр 07 17:09:01 debian snapd[31021]: AppArmor status: apparmor not enabled

апр 07 17:09:01 debian snapd[31021]: daemon.go:347: started snapd/2.49-1+deb11u2 (series 16; classic; devmode) debian/11 (amd64) linux/5.10.0-21-amd6>

апр 07 17:09:01 debian snapd[31021]: main.go:129: system does not fully support snapd: cannot mount squashfs image using “squashfs”: mount: /tmp/sani>

апр 07 17:09:01 debian snapd[31021]: daemon.go:440: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)

апр 07 17:09:01 debian systemd[1]: Started Snap Daemon.

апр 07 17:09:06 debian snapd[31021]: daemon.go:589: gracefully waiting for running hooks

апр 07 17:09:06 debian snapd[31021]: daemon.go:591: done waiting for running hooks

апр 07 17:09:06 debian snapd[31021]: daemon stop requested to wait for socket activation

“lsb_release -a” output.

No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

What is the output of

$ grep squash /proc/filesystems

Looks like your kernel is either missing loop device or squashfs support…

andrew@debian:~$ grep squash /proc/filesystems
squashfs

andrew@debian:~$

losetup --all output is empty too.

Well, i’d theoretically expect it to work then … i do notice though that your snapd is ten versions behind (current is 2.59.1), perhaps that has some impact (someone from the snapd team would have to comment on that though) ?

also, did you try to enable apparmor (it says it is disabled, though that should not cause such mount errors indeed, but who knows :slight_smile: ) ?

I updated the snapd version to 2.57.6 but it didn’t help =)