Snap Store fails to open with many errors (maybe theme-related?)


#1

Trying to launch the snap store gives a screen full of errors. This looks like it’s something to do with themes? But I don’t know how to know what might be causing it or how to fix it.

$ snap-store 
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/Adwaita /snap/snap-store/157/data-dir/icons/Adwaita none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/DMZ-Black /snap/snap-store/157/data-dir/icons/DMZ-Black none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/DMZ-White /snap/snap-store/157/data-dir/icons/DMZ-White none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/HighContrast /snap/snap-store/157/data-dir/icons/HighContrast none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/Humanity-Dark /snap/snap-store/157/data-dir/icons/Humanity-Dark none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/Humanity /snap/snap-store/157/data-dir/icons/Humanity none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/Suru /snap/snap-store/157/data-dir/icons/Suru none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/Yaru /snap/snap-store/157/data-dir/icons/Yaru none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/communitheme /snap/snap-store/157/data-dir/icons/communitheme none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/elementary /snap/snap-store/157/data-dir/icons/elementary none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/hicolor /snap/snap-store/157/data-dir/icons/hicolor none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/ubuntu-mono-dark /snap/snap-store/157/data-dir/icons/ubuntu-mono-dark none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/icons/ubuntu-mono-light /snap/snap-store/157/data-dir/icons/ubuntu-mono-light none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/sounds/Yaru /snap/snap-store/157/data-dir/sounds/Yaru none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/sounds/communitheme /snap/snap-store/157/data-dir/sounds/communitheme none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Adwaita-dark /snap/snap-store/157/data-dir/themes/Adwaita-dark none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Adwaita /snap/snap-store/157/data-dir/themes/Adwaita none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Ambiance /snap/snap-store/157/data-dir/themes/Ambiance none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Arc-Dark /snap/snap-store/157/data-dir/themes/Arc-Dark none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Arc-Darker /snap/snap-store/157/data-dir/themes/Arc-Darker none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Arc /snap/snap-store/157/data-dir/themes/Arc none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Breeze-Dark /snap/snap-store/157/data-dir/themes/Breeze-Dark none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Breeze /snap/snap-store/157/data-dir/themes/Breeze none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Communitheme /snap/snap-store/157/data-dir/themes/Communitheme none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/HighContrast /snap/snap-store/157/data-dir/themes/HighContrast none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Radiance /snap/snap-store/157/data-dir/themes/Radiance none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/Yaru /snap/snap-store/157/data-dir/themes/Yaru none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gtk-common-themes/1198/share/themes/elementary /snap/snap-store/157/data-dir/themes/elementary none bind,ro 0 0): cannot create directory "/snap/snap-store/157/data-dir": permission denied
utils.go:684: cannot change mount namespace of snap "snap-store" according to change mount (/snap/gnome-3-28-1804/59 /snap/snap-store/157/gnome-platform none bind,ro 0 0): cannot create directory "/snap/snap-store/157/gnome-platform": permission denied
cannot update snap namespace: cannot create directory "/snap/snap-store/157/gnome-platform": permission denied
snap-update-ns failed with code 1: File exists

#2

In case this is the same problem as Snap-update-ns failing, cannot launch snaps, this may be useful:

13:58 ~ $ snap version
snap    2.39.2
snapd   2.39.2
series  16
ubuntu  18.04
kernel  4.15.0-51-generic
13:58 ~ $ snap debug sandbox-features
apparmor:             kernel:caps kernel:dbus kernel:domain kernel:file kernel:mount kernel:namespaces kernel:network kernel:policy kernel:ptrace kernel:query kernel:rlimit kernel:signal parser:unsafe policy:default support-level:full
confinement-options:  classic devmode strict
dbus:                 mediated-bus-access
kmod:                 mediated-modprobe
mount:                freezer-cgroup-v1 layouts mount-namespace per-snap-persistency per-snap-profiles per-snap-updates per-snap-user-profiles stale-base-invalidation
seccomp:              bpf-argument-filtering kernel:allow kernel:errno kernel:kill_process kernel:kill_thread kernel:log kernel:trace kernel:trap
udev:                 device-cgroup-v1 tagging

#3

@zyga is currently somewhere between spain and france, as soon as his quantum state settles I’ll ask him to take a look.