Snapd not working on Fedora 41 beta

On fedora 41 after installing snapd, I have this common error:

$ sudo snap install hello-world error: system does not fully support snapd: cannot mount squashfs image using “squashfs”: ----- mount: /tmp/syscheck-mountpoint-4022279374: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

   dmesg(1) may have more information after failed mount system call.

I have tried most of the solution on this forum:

  • Reinstalling
  • installing the kernel-modules
  • installing the debug ones
  • installing fuse squashfuse

And none of them work.

Is there something else I should try?

I will look shortly. Thanks for reporting this.

Can you confirm that squashfs is supported by the kernel (run grep squashfs /proc/filesystem)? Make sure that kernel-modules package matches your running kernel (eg. not not the one for the debug kernel).

Are there any particular selinux denials that would suggest a problem with the policy?

same problem, and it’s only in Fedora 41 beta for now.

When running the command, I have grep: /proc/filesystem: No such file or directory so it doens’t seem to be supported somehow.

How do I make sure the kernel-modules are good?

sorry, there was a typo, try grep squashfs /proc/filesystems

No problem. No output then

Right, so the kernel does not support squashfs apparently. IIRC kernel-modules should add that. Make sure that the package is installed. The snapd package already declares correct dependency, but given that https://bugzilla.redhat.com/show_bug.cgi?id=1652823 isn’t fixed it’s likely that kernel-modules-*-debug got installed along with a debug kernel. Something you likely do not want. You’ll need to install kernel-modules-extra manually.

kernel-modules-extra is already installed:

sudo dnf install kernel-modules-extra

Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                                                                                                                         100% |  21.7 KiB/s |  26.9 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                                                                                   100% |  54.5 KiB/s |   8.2 KiB |  00m00s
 Copr repo for PyCharm owned by phracek                                                                                                               100% |   5.5 KiB/s |   1.8 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - Steam                                                                                                           100% |  53.2 KiB/s |   7.3 KiB |  00m00s
 Visual Studio Code                                                                                                                                   100% |  10.0 KiB/s |   1.5 KiB |  00m00s
 google-chrome                                                                                                                                        100% |   7.7 KiB/s |   1.3 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                                                                                   100% |  39.1 KiB/s |  17.2 KiB |  00m00s
 Visual Studio Code                                                                                                                                   100% | 287.6 KiB/s |  93.7 KiB |  00m00s
Repositories loaded.
Package "kernel-modules-extra-6.11.0-0.rc5.43.fc41.x86_64" is already installed.
Package "kernel-modules-extra-6.11.3-300.fc41.x86_64" is already installed.
Package "kernel-modules-extra-6.11.4-300.fc41.x86_64" is already installed.

Nothing to do.

Same for kernel-modules:

sudo dnf install kernel-modules
Updating and loading repositories:
Repositories loaded.
Package "kernel-modules-6.11.0-0.rc5.43.fc41.x86_64" is already installed.
Package "kernel-modules-6.11.3-300.fc41.x86_64" is already installed.
Package "kernel-modules-6.11.4-300.fc41.x86_64" is already installed.

Nothing to do.

Hope that helps

Does kernel-modules match the version of your kernel? Try running modprobe squashfs.

I think they do match:


user@fedora:~/Downloads$ sudo modprobe squashfs
user@fedora:~/Downloads$ sudo dnf list kernel
Updating and loading repositories:
Repositories loaded.
Installed packages
kernel.x86_64 6.11.0-0.rc5.43.fc41 anaconda
kernel.x86_64 6.11.3-300.fc41      updates-testing
kernel.x86_64 6.11.4-300.fc41      updates-testing
user@fedora:~/Downloads$ sudo dnf list kernel-modules
Updating and loading repositories:
Repositories loaded.
Installed packages
kernel-modules.x86_64 6.11.0-0.rc5.43.fc41 anaconda
kernel-modules.x86_64 6.11.3-300.fc41      updates-testing
kernel-modules.x86_64 6.11.4-300.fc41      updates-testing
user@fedora:~/Downloads$ 


Does snapd work once you have loaded the module manually?

Hopefully that was the right commands:

[use@fedora ~]$ sudo modprobe squashfs
[malcolm@fedora ~]$ sudo snap install hello-word --edge
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": -----
       mount: /tmp/syscheck-mountpoint-1356092510: wrong fs type, bad option, bad superblock on
       /dev/loop0, missing codepage or helper program, or other error.

       dmesg(1) may have more information after failed mount system call.

       -----

Looks like it may be this issue: Bug #2085535 “Cannot install snaps on Fedora 41” : Bugs : snapd

I’ve just built an update for F41 and rawhide. The patch is in master so it’s also going to be in the next upstream release. You can grab the F41 update from - FEDORA-2024-27b46a426a — bugfix update for snapd — Fedora Updates System - feedback is welcome. I’m at a conference and have limited time to look at this more than just rebuilding with a patch.

1 Like

Thanks! I’ve just downloaded the fixed version on my machine and it works :D. I was able to install the hello world!

I appreciate you taking the time to do this while at a conference!

1 Like

Awesome! I need to look into a smoke test that runs alongside package updates. I’m not running 41 myself yet.

1 Like

Hello. What commands did you use to install the downloaded rpm files?

I’m not @CleverGeese, but you don’t have to download any rpm files. You can find the required command here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-27b46a426a .

@zyga I also got snapd working, thanks for the fix!

1 Like