Error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount

error: system does not fully support snapd: cannot mount squashfs image using
       "squashfs": mount: /tmp/syscheck-mountpoint-667021533: wrong fs type,
       bad option, bad superblock on /dev/loop40, missing codepage or helper
       program, or other error.

i get this error try to do anything with snap, also at the start mounts fail, it started after i did a release upgrade to ubuntu 20.04

sudo apt install fuse squashfuse results


fuse is already the newest version (2.9.9-3).
squashfuse is already the newest version (0.1.103-2).

sudo modprobe loop didn’t fix it.

all my snaps are broken

snap list
Name                                  Version  Rev    Tracking       Publisher         Notes
0ad                                   -        592    latest/stable  play0ad✓          broken
acestreamplayer                       -        15     latest/stable  vasilisc          broken
bare                                  -        5      latest/stable  canonical✓        broken
chromium                              -        2734   latest/stable  canonical✓        broken
core                                  -        16202  latest/stable  canonical✓        broken
core18                                -        2812   latest/stable  canonical✓        broken
core20                                -        2105   latest/stable  canonical✓        broken
core22                                -        1033   latest/stable  canonical✓        broken
cups                                  -        872    latest/stable  openprinting✓     disabled,broken
dnslookup                             -        156    latest/stable  ameshkov✓         broken
fast                                  -        4      latest/stable  ddooo             broken
firefox                               -        3626   latest/stable  mozilla✓          broken
flux                                  -        8      latest/stable  the-ricker        broken
gedit                                 -        684    latest/stable  canonical✓        broken
gimp                                  -        418    latest/stable  snapcrafters✪     broken
gnome-3-26-1604                       -        111    latest/stable  canonical✓        broken
gnome-3-28-1804                       -        198    latest/stable  canonical✓        broken
gnome-3-38-2004                       -        143    latest/stable  canonical✓        broken
gnome-42-2204                         -        141    latest/stable  canonical✓        broken
gravit-designer                       -        44     latest/stable  gravitgmbh✓       broken
gtk-common-themes                     -        1535   latest/stable  canonical✓        broken
gtk2-common-themes                    -        13     latest/stable  canonical✓        broken
hello-world                           -        29     latest/stable  canonical✓        broken
inkscape                              -        10555  latest/stable  inkscape✓         broken
intellij-idea-ultimate                -        470    latest/stable  jetbrains✓        broken
kde-frameworks-5-96-qt-5-15-5-core20  -        7      latest/stable  kde✓              broken
kde-frameworks-5-98-qt-5-15-6-core20  -        9      latest/stable  kde✓              broken
kde-frameworks-5-99-qt-5-15-7-core20  -        7      latest/stable  kde✓              broken
kde-frameworks-5-core18               -        35     latest/stable  kde✓              broken
kde-frameworks-5-qt-5-14-core18       -        4      latest/stable  kde✓              broken
kde-frameworks-5-qt-5-15-core20       -        14     latest/stable  kde✓              broken
kf5-5-104-qt-5-15-8-core22            -        9      latest/stable  kde✓              broken
kf5-5-106-qt-5-15-9-core22            -        23     latest/stable  kde✓              broken
kf5-5-110-qt-5-15-11-core22           -        3      latest/stable  kde✓              broken
kimitzu-client                        -        12     latest/beta    kimitzu           broken
ktouch                                -        118    latest/stable  kde✓              broken
libreoffice                           -        302    latest/stable  canonical✓        broken
mathpix-snipping-tool                 -        195    latest/stable  mathpix           broken
microk8s                              -        1551   latest/stable  canonical✓        disabled,broken
mumble                                -        1731   latest/stable  snapcrafters✪     broken
mysql-workbench-community             -        12     latest/stable  tonybolzan        broken
netbeans                              -        89     latest/stable  apache-netbeans✓  broken
notepad-plus-plus                     -        389    latest/stable  mmtrt             broken
qt-2048-snap                          -        11     latest/stable  keshavnrj✪        broken
qt513                                 -        24     latest/stable  keshavnrj✪        broken
qt551                                 -        43     latest/stable  keshavnrj✪        broken
remmina                               -        6134   latest/stable  remmina✓          broken
snap-store                            -        959    latest/stable  canonical✓        broken
snapd                                 -        20671  latest/stable  canonical✓        broken
spotify                               -        74     latest/stable  spotify✓          broken
stellarium-daily                      -        1644   latest/stable  t4saha            broken
tor-mkg20001                          -        16     latest/stable  mkg20001          broken
upnp-server                           -        1      latest/stable  ogra              disabled,broken
vlc                                   -        3721   latest/stable  videolan✓         broken
whatami                               -        96     latest/stable  kz6fittycent      broken
whois-snap                            -        1      latest/stable  marius-quabeck    broken
winds                                 -        95     latest/stable  getstream-io✓     broken
wine-platform                         -        128    latest/stable  mmtrt             broken
wine-platform-3-stable                -        14     latest/stable  mmtrt             broken
wine-platform-5-stable                -        18     latest/stable  mmtrt             broken
wine-platform-5-staging               -        34     latest/stable  mmtrt             broken
wine-platform-6-stable                -        19     latest/stable  mmtrt             broken
wine-platform-7-devel-core20          -        24     latest/stable  mmtrt             broken
wine-platform-runtime                 -        353    latest/stable  mmtrt             broken
wine-platform-runtime-core20          -        95     latest/stable  mmtrt             broken

snap debug paths SNAPD_MOUNT=/snap SNAPD_BIN=/snap/bin SNAPD_LIBEXEC=/usr/lib/snapd

uninstalling and reinstalling snapd didn’t solve the issue either.

journalctl -xe | grep mount
Oca 22 22:30:32 DONE audit[9297]: AVC avc:  denied  { read write } for  pid=9297 comm="mount" name="syscheck-squashfs-981407326" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 22:30:32 DONE audit[9297]: AVC avc:  denied  { open } for  pid=9297 comm="mount" path="/tmp/syscheck-squashfs-981407326" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 22:40:32 DONE audit[9821]: AVC avc:  denied  { read write } for  pid=9821 comm="mount" path="socket:[69101]" dev="sockfs" ino=69101 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=netlink_kobject_uevent_socket permissive=1
Oca 22 22:45:32 DONE audit[10010]: AVC avc:  denied  { read write } for  pid=10010 comm="mount" name="syscheck-squashfs-332460660" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 22:45:32 DONE audit[10010]: AVC avc:  denied  { open } for  pid=10010 comm="mount" path="/tmp/syscheck-squashfs-332460660" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 22:50:32 DONE audit[10203]: AVC avc:  denied  { read write } for  pid=10203 comm="mount" path="socket:[69101]" dev="sockfs" ino=69101 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=netlink_kobject_uevent_socket permissive=1
Oca 22 22:55:32 DONE audit[10764]: AVC avc:  denied  { read write } for  pid=10764 comm="mount" name="syscheck-squashfs-081771752" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 22:55:32 DONE audit[10764]: AVC avc:  denied  { open } for  pid=10764 comm="mount" path="/tmp/syscheck-squashfs-081771752" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 23:00:32 DONE audit[11148]: AVC avc:  denied  { read write } for  pid=11148 comm="mount" name="syscheck-squashfs-296173146" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1
Oca 22 23:00:32 DONE audit[11148]: AVC avc:  denied  { open } for  pid=11148 comm="mount" path="/tmp/syscheck-squashfs-296173146" dev="sda2" ino=8011138 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=1

i think it is related to SeLinux but not sure.

journalctl -xe | grep failed
Oca 22 22:30:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
Oca 22 22:33:19 DONE com.docker.backend[7626]: [2024-01-22T19:33:19.804960572Z][com.docker.backend.stats][W] fetching stats failed, possibly because of idle: Get "http://ipc/vm/ram-cpu-usage": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Oca 22 22:35:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
Oca 22 22:40:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
Oca 22 22:45:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
Oca 22 22:50:01 DONE indicator-sound[7340]: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oca 22 22:50:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
Oca 22 22:51:50 DONE indicator-sound[7340]: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oca 22 22:55:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
Oca 22 23:00:33 DONE kernel: SELinux: security_context_str_to_sid(system_u:object_r:snappy_snap_t:s0) failed for (dev loop40, type squashfs) errno=-22
systemctl --all |grep snap
● snap-0ad-588.mount                                                                       not-found inactive   dead      snap-0ad-588.mount                                                                 
● snap-0ad-592.mount                                                                       loaded    failed     failed    Mount unit for 0ad, revision 592                                                   
  snap-acestreamplayer-12.mount                                                            loaded    active     mounted   Mount unit for acestreamplayer, revision 12                                        
● snap-acestreamplayer-15.mount                                                            loaded    failed     failed    Mount unit for acestreamplayer, revision 15                                        
● snap-bare-5.mount                                                                        loaded    failed     failed    Mount unit for bare, revision 5                                                    
● snap-brave-195.mount                                                                     not-found inactive   dead      snap-brave-195.mount                                                               
● snap-chromium-2254.mount                                                                 not-found inactive   dead      snap-chromium-2254.mount                                                           
  snap-chromium-2729.mount                                                                 loaded    active     mounted   Mount unit for chromium, revision 2729                                             
● snap-chromium-2734.mount                                                                 loaded    failed     failed    Mount unit for chromium, revision 2734                                             
● snap-core-14399.mount                                                                    not-found inactive   dead      snap-core-14399.mount                                                              
  snap-core-16091.mount                                                                    loaded    active     mounted   Mount unit for core, revision 16091                                                
● snap-core-16202.mount                                                                    loaded    failed     failed    Mount unit for core, revision 16202                                                
● snap-core18-2654.mount                                                                   not-found inactive   dead      snap-core18-2654.mount                                                             
  snap-core18-2796.mount                                                                   loaded    active     mounted   Mount unit for core18, revision 2796                                               
● snap-core18-2812.mount                                                                   loaded    failed     failed    Mount unit for core18, revision 2812                                               
● snap-core20-1738.mount                                                                   not-found inactive   dead      snap-core20-1738.mount                                                             
  snap-core20-2015.mount                                                                   loaded    active     mounted   Mount unit for core20, revision 2015                                               
● snap-core20-2105.mount                                                                   loaded    failed     failed    Mount unit for core20, revision 2105                                               
● snap-core22-1033.mount                                                                   loaded    failed     failed    Mount unit for core22, revision 1033                                               
● snap-core22-469.mount                                                                    not-found inactive   dead      snap-core22-469.mount                                                              
  snap-core22-864.mount                                                                    loaded    active     mounted   Mount unit for core22, revision 864                                                
● snap-cups-836.mount                                                                      not-found inactive   dead      snap-cups-836.mount                                                                
● snap-cups-872.mount                                                                      loaded    failed     failed    Mount unit for cups, revision 872                                                  
● snap-dnslookup-150.mount                                                                 not-found inactive   dead      snap-dnslookup-150.mount                                                           
● snap-dnslookup-156.mount                                                                 loaded    failed     failed    Mount unit for dnslookup, revision 156                                             
● snap-fast-4.mount                                                                        loaded    failed     failed    Mount unit for fast, revision 4                                                    
  snap-firefox-3600.mount                                                                  loaded    active     mounted   Mount unit for firefox, revision 3600                                              
● snap-firefox-3626.mount                                                                  loaded    failed     failed    Mount unit for firefox, revision 3626                                              
● snap-flux-8.mount                                                                        loaded    failed     failed    Mount unit for flux, revision 8                                                    
  snap-gedit-682.mount                                                                     loaded    active     mounted   Mount unit for gedit, revision 682                                                 
● snap-gedit-684.mount                                                                     loaded    failed     failed    Mount unit for gedit, revision 684                                                 
  snap-gimp-412.mount                                                                      loaded    active     mounted   Mount unit for gimp, revision 412                                                  
● snap-gimp-418.mount                                                                      loaded    failed     failed    Mount unit for gimp, revision 418                                                  
  snap-gnome\x2d3\x2d26\x2d1604-104.mount                                                  loaded    active     mounted   Mount unit for gnome-3-26-1604, revision 104                                       
● snap-gnome\x2d3\x2d26\x2d1604-111.mount                                                  loaded    failed     failed    Mount unit for gnome-3-26-1604, revision 111                                       
  snap-gnome\x2d3\x2d28\x2d1804-194.mount                                                  loaded    active     mounted   Mount unit for gnome-3-28-1804, revision 194                                       
● snap-gnome\x2d3\x2d28\x2d1804-198.mount                                                  loaded    failed     failed    Mount unit for gnome-3-28-1804, revision 198                                       
  snap-gnome\x2d3\x2d38\x2d2004-140.mount                                                  loaded    active     mounted   Mount unit for gnome-3-38-2004, revision 140                                       
● snap-gnome\x2d3\x2d38\x2d2004-143.mount                                                  loaded    failed     failed    Mount unit for gnome-3-38-2004, revision 143                                       
  snap-gnome\x2d42\x2d2204-132.mount                                                       loaded    active     mounted   Mount unit for gnome-42-2204, revision 132                                         
● snap-gnome\x2d42\x2d2204-141.mount                                                       loaded    failed     failed    Mount unit for gnome-42-2204, revision 141                                         
  snap-gravit\x2ddesigner-43.mount                                                         loaded    active     mounted   Mount unit for gravit-designer, revision 43                                        
● snap-gravit\x2ddesigner-44.mount                                                         loaded    failed     failed    Mount unit for gravit-designer, revision 44                                        
● snap-gtk2\x2dcommon\x2dthemes-13.mount                                                   loaded    failed     failed    Mount unit for gtk2-common-themes, revision 13                                     
  snap-gtk2\x2dcommon\x2dthemes-9.mount                                                    loaded    active     mounted   Mount unit for gtk2-common-themes, revision 9                                      
  snap-gtk\x2dcommon\x2dthemes-1534.mount                                                  loaded    active     mounted   Mount unit for gtk-common-themes, revision 1534                                    
● snap-gtk\x2dcommon\x2dthemes-1535.mount                                                  loaded    failed     failed    Mount unit for gtk-common-themes, revision 1535                                    
● snap-hello\x2dworld-29.mount                                                             loaded    failed     failed    Mount unit for hello-world, revision 29                                            
  snap-inkscape-10549.mount                                                                loaded    active     mounted   Mount unit for inkscape, revision 10549                                            
● snap-inkscape-10555.mount                                                                loaded    failed     failed    Mount unit for inkscape, revision 10555                                            
  snap-intellij\x2didea\x2dultimate-468.mount                                              loaded    active     mounted   Mount unit for intellij-idea-ultimate, revision 468                                
● snap-intellij\x2didea\x2dultimate-470.mount                                              loaded    failed     failed    Mount unit for intellij-idea-ultimate, revision 470                                
● snap-kde\x2dframeworks\x2d5\x2d96\x2dqt\x2d5\x2d15\x2d5\x2dcore20-7.mount                loaded    failed     failed    Mount unit for kde-frameworks-5-96-qt-5-15-5-core20, revision 7                    
● snap-kde\x2dframeworks\x2d5\x2d98\x2dqt\x2d5\x2d15\x2d6\x2dcore20-9.mount                loaded    failed     failed    Mount unit for kde-frameworks-5-98-qt-5-15-6-core20, revision 9                    
  snap-kde\x2dframeworks\x2d5\x2d99\x2dqt\x2d5\x2d15\x2d7\x2dcore20-15.mount               loaded    active     mounted   Mount unit for kde-frameworks-5-99-qt-5-15-7-core20, revision 15                   
● snap-kde\x2dframeworks\x2d5\x2d99\x2dqt\x2d5\x2d15\x2d7\x2dcore20-7.mount                loaded    failed     failed    Mount unit for kde-frameworks-5-99-qt-5-15-7-core20, revision 7                    
  snap-kde\x2dframeworks\x2d5\x2dcore18-32.mount                                           loaded    active     mounted   Mount unit for kde-frameworks-5-core18, revision 32                                
● snap-kde\x2dframeworks\x2d5\x2dcore18-35.mount                                           loaded    failed     failed    Mount unit for kde-frameworks-5-core18, revision 35                                
  snap-kde\x2dframeworks\x2d5\x2dqt\x2d5\x2d14\x2dcore18-3.mount                           loaded    active     mounted   Mount unit for kde-frameworks-5-qt-5-14-core18, revision 3                         
● snap-kde\x2dframeworks\x2d5\x2dqt\x2d5\x2d14\x2dcore18-4.mount                           loaded    failed     failed    Mount unit for kde-frameworks-5-qt-5-14-core18, revision 4                         
● snap-kde\x2dframeworks\x2d5\x2dqt\x2d5\x2d15\x2dcore20-14.mount                          loaded    failed     failed    Mount unit for kde-frameworks-5-qt-5-15-core20, revision 14                        
● snap-kf5\x2d5\x2d104\x2dqt\x2d5\x2d15\x2d8\x2dcore22-9.mount                             loaded    failed     failed    Mount unit for kf5-5-104-qt-5-15-8-core22, revision 9                              
● snap-kf5\x2d5\x2d106\x2dqt\x2d5\x2d15\x2d9\x2dcore22-23.mount                            loaded    failed     failed    Mount unit for kf5-5-106-qt-5-15-9-core22, revision 23                             
● snap-kf5\x2d5\x2d110\x2dqt\x2d5\x2d15\x2d11\x2dcore22-3.mount                            loaded    failed     failed    Mount unit for kf5-5-110-qt-5-15-11-core22, revision 3                             
● snap-kimitzu\x2dclient-12.mount                                                          loaded    failed     failed    Mount unit for kimitzu-client, revision 12                                         
  snap-ktouch-116.mount                                                                    loaded    active     mounted   Mount unit for ktouch, revision 116                                                
● snap-ktouch-118.mount                                                                    loaded    failed     failed    Mount unit for ktouch, revision 118                                                
  snap-libreoffice-300.mount                                                               loaded    active     mounted   Mount unit for libreoffice, revision 300                                           
● snap-libreoffice-302.mount                                                               loaded    failed     failed    Mount unit for libreoffice, revision 302                                           
  snap-mathpix\x2dsnipping\x2dtool-192.mount                                               loaded    active     mounted   Mount unit for mathpix-snipping-tool, revision 192                                 
● snap-mathpix\x2dsnipping\x2dtool-195.mount                                               loaded    failed     failed    Mount unit for mathpix-snipping-tool, revision 195                                 
  snap-microk8s-1503.mount                                                                 loaded    active     mounted   Mount unit for microk8s, revision 1503                                             
● snap-microk8s-1551.mount                                                                 loaded    failed     failed    Mount unit for microk8s, revision 1551                                             
  snap-mumble-1727.mount                                                                   loaded    active     mounted   Mount unit for mumble, revision 1727                                               
● snap-mumble-1731.mount                                                                   loaded    failed     failed    Mount unit for mumble, revision 1731                                               
  snap-mysql\x2dworkbench\x2dcommunity-10.mount                                            loaded    active     mounted   Mount unit for mysql-workbench-community, revision 10                              
● snap-mysql\x2dworkbench\x2dcommunity-12.mount                                            loaded    failed     failed    Mount unit for mysql-workbench-community, revision 12                              
  snap-netbeans-84.mount                                                                   loaded    active     mounted   Mount unit for netbeans, revision 84                                               
● snap-netbeans-89.mount                                                                   loaded    failed     failed    Mount unit for netbeans, revision 89                                               
  snap-notepad\x2dplus\x2dplus-388.mount                                                   loaded    active     mounted   Mount unit for notepad-plus-plus, revision 388                                     
● snap-notepad\x2dplus\x2dplus-389.mount                                                   loaded    failed     failed    Mount unit for notepad-plus-plus, revision 389                                     
  snap-qt513-23.mount                                                                      loaded    active     mounted   Mount unit for qt513, revision 23                                                  
● snap-qt513-24.mount                                                                      loaded    failed     failed    Mount unit for qt513, revision 24                                                  
  snap-qt551-42.mount                                                                      loaded    active     mounted   Mount unit for qt551, revision 42                                                  
● snap-qt551-43.mount                                                                      loaded    failed     failed    Mount unit for qt551, revision 43                                                  
● snap-qt\x2d2048\x2dsnap-11.mount                                                         loaded    failed     failed    Mount unit for qt-2048-snap, revision 11                                           
  snap-qt\x2d2048\x2dsnap-5.mount                                                          loaded    active     mounted   Mount unit for qt-2048-snap, revision 5                                            
  snap-remmina-6117.mount                                                                  loaded    active     mounted   Mount unit for remmina, revision 6117                                              
● snap-remmina-6134.mount                                                                  loaded    failed     failed    Mount unit for remmina, revision 6134                                              
  snap-snap\x2dstore-638.mount                                                             loaded    active     mounted   Mount unit for snap-store, revision 638                                            
● snap-snap\x2dstore-959.mount                                                             loaded    failed     failed    Mount unit for snap-store, revision 959                                            
  snap-snapd-20290.mount                                                                   loaded    active     mounted   Mount unit for snapd, revision 20290                                               
● snap-snapd-20671.mount                                                                   loaded    failed     failed    Mount unit for snapd, revision 20671                                               
  snap-spotify-73.mount                                                                    loaded    active     mounted   Mount unit for spotify, revision 73                                                
● snap-spotify-74.mount                                                                    loaded    failed     failed    Mount unit for spotify, revision 74                                                
  snap-stellarium\x2ddaily-1578.mount                                                      loaded    active     mounted   Mount unit for stellarium-daily, revision 1578                                     
● snap-stellarium\x2ddaily-1644.mount                                                      loaded    failed     failed    Mount unit for stellarium-daily, revision 1644                                     
● snap-tor\x2dmkg20001-16.mount                                                            loaded    failed     failed    Mount unit for tor-mkg20001, revision 16                                           
● snap-upnp\x2dserver-1.mount                                                              loaded    failed     failed    Mount unit for upnp-server, revision 1                                             
  snap-vlc-3078.mount                                                                      loaded    active     mounted   Mount unit for vlc, revision 3078                                                  
● snap-vlc-3721.mount                                                                      loaded    failed     failed    Mount unit for vlc, revision 3721                                                  
  snap-whatami-88.mount                                                                    loaded    active     mounted   Mount unit for whatami, revision 88                                                
● snap-whatami-96.mount                                                                    loaded    failed     failed    Mount unit for whatami, revision 96                                                
● snap-whois\x2dsnap-1.mount                                                               loaded    failed     failed    Mount unit for whois-snap, revision 1                                              
  snap-winds-92.mount                                                                      loaded    active     mounted   Mount unit for winds, revision 92                                                  
● snap-winds-95.mount                                                                      loaded    failed     failed    Mount unit for winds, revision 95                                                  
  snap-wine\x2dplatform-115.mount                                                          loaded    active     mounted   Mount unit for wine-platform, revision 115                                         
  snap-wine\x2dplatform-117.mount                                                          loaded    active     mounted   Mount unit for wine-platform, revision 117                                         
● snap-wine\x2dplatform-128.mount                                                          loaded    failed     failed    Mount unit for wine-platform, revision 128                                         
  snap-wine\x2dplatform\x2d3\x2dstable-11.mount                                            loaded    active     mounted   Mount unit for wine-platform-3-stable, revision 11                                 
● snap-wine\x2dplatform\x2d3\x2dstable-14.mount                                            loaded    failed     failed    Mount unit for wine-platform-3-stable, revision 14                                 
  snap-wine\x2dplatform\x2d5\x2dstable-16.mount                                            loaded    active     mounted   Mount unit for wine-platform-5-stable, revision 16                                 
● snap-wine\x2dplatform\x2d5\x2dstable-18.mount                                            loaded    failed     failed    Mount unit for wine-platform-5-stable, revision 18                                 
● snap-wine\x2dplatform\x2d5\x2dstaging-34.mount                                           loaded    failed     failed    Mount unit for wine-platform-5-staging, revision 34                                
  snap-wine\x2dplatform\x2d6\x2dstable-14.mount                                            loaded    active     mounted   Mount unit for wine-platform-6-stable, revision 14                                 
● snap-wine\x2dplatform\x2d6\x2dstable-19.mount                                            loaded    failed     failed    Mount unit for wine-platform-6-stable, revision 19                                 
  snap-wine\x2dplatform\x2d7\x2ddevel\x2dcore20-23.mount                                   loaded    active     mounted   Mount unit for wine-platform-7-devel-core20, revision 23                           
● snap-wine\x2dplatform\x2d7\x2ddevel\x2dcore20-24.mount                                   loaded    failed     failed    Mount unit for wine-platform-7-devel-core20, revision 24                           
  snap-wine\x2dplatform\x2druntime-352.mount                                               loaded    active     mounted   Mount unit for wine-platform-runtime, revision 352                                 
● snap-wine\x2dplatform\x2druntime-353.mount                                               loaded    failed     failed    Mount unit for wine-platform-runtime, revision 353                                 
  snap-wine\x2dplatform\x2druntime\x2dcore20-94.mount                                      loaded    active     mounted   Mount unit for wine-platform-runtime-core20, revision 94                           
● snap-wine\x2dplatform\x2druntime\x2dcore20-95.mount                                      loaded    failed     failed    Mount unit for wine-platform-runtime-core20, revision 95                           
  var-snap-firefox-common-host\x2dhunspell.mount                                           loaded    active     mounted   Mount unit for firefox, revision 2277 via mount-control                            
  snapd.aa-prompt-listener.service                                                         loaded    inactive   dead      Userspace listener for prompt events                                               
  snapd.apparmor.service                                                                   loaded    inactive   dead      Load AppArmor profiles managed internally by snapd                                 
● snapd.boot-ok.service                                                                    not-found inactive   dead      snapd.boot-ok.service                                                              
  snapd.failure.service                                                                    loaded    inactive   dead      Failure handling of the snapd snap                                                 
● snapd.firstboot.service                                                                  not-found inactive   dead      snapd.firstboot.service                                                            
  snapd.recovery-chooser-trigger.service                                                   loaded    inactive   dead      Wait for the Ubuntu Core chooser trigger                                           
  snapd.seeded.service                                                                     loaded    active     exited    Wait until snapd is fully seeded                                                   
  snapd.service                                                                            loaded    active     running   Snap Daemon                                                                        
  snapd.socket                                                                             loaded    active     running   Socket activation for snappy daemon                                                
  snapd.mounts-pre.target                                                                  loaded    active     active    Mounting snaps                                                                     
  snapd.mounts.target                                                                      loaded    active     active    Mounted snaps                                                 

Hi ! @Ebuzer .

Try this scenario, to see .

sudo modprobe squashfs

sudo systemctl restart snapd

Hm I’m a bit confused, Ubuntu doesn’t ship with SELinux enabled by default in the kernel. However the output you attached clearly indicates that SELinux policy is in place. Since there is no policy which allows snapd to transition to the right context in order to execute mount, it will be denied and hence snapd will always indicate that there is no squashfs support in the system.

We provide a SELinux policy built on top of the core policy, which is only tested on Fedora/RHEL.

1 Like

You provide a lot of output up there, but the most important one is missing, what is the full output of snap version

snap 2.61.1 snapd 2.61.1 series 16 ubuntu 20.04 kernel 4.15.0-213-generic

1 Like

something i did solved the issue don’t know which one did i tried lots of things.

Hi ! @Ebuzer .

Have you tried something similar to this (just above) ? :face_with_monocle:

No i didn’t try that

Okay ! @Ebuzer .

Well !

Good news, everyone. problem returned.

error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
       /tmp/syscheck-mountpoint-174984921: wrong fs type, bad option, bad superblock on
       /dev/loop68, missing codepage or helper program, or other error.

and no

sudo modprobe squashfs

sudo systemctl restart snapd

doesn’t work.

Well, you clearly had some selinux stuff set up on this system, did you disable/revert this ?

Selinux is in permissive mode so i don’t think that is the cause anymore.

well, enabling selinux disables the kernel support for apparmor … given that apparmor is a major bit of the snap confinement story your snapd will likely detect it is completely missing now and simply refuse to start

If that was the case it should have never worked again and it did work for some time and gone broken again.

Well, all i know is that selinux and apparmor are mutually exclusive in the kernel (which is why we do not support selinux in ubuntu… yet if you are adventurous we don’t deny you to enable it, but you are largely on your own since most userspace will behave completely different to a normal ubuntu when apparmor is missing) , but yes, it is curious that it ever worked at all, it should not have …

2 Likes

okay let me purge the Selinux so make sure your suspicion is correct or not.

particulary make sure to have the kernel cmdline bits removed that switch you over, i think you can just leave the userspace pieces around

2 Likes

You were correct it works again if it goes broken again i will update here but i don’t think it will.

Snap needs more meaningful error messages if that’s the case it had nothing to do with squashfs.

Well, what made you turn on selinux in the first place ? We might need to turn up the warning level (i.e. a big fat warning in dmesg or some such) in general since this will affect many other places in user space, not just snaps and you effectively degrade the overall security of the system (due to switching off apparmor which many userspace bits are integrated with and switching on a completely unconfigured selinux)

I wanted to learn Selinux.

aa-status
apparmor module is loaded.
apparmor filesystem is not mounted.

thats the output is apparmor working correctly?