Mounting core snap failed in Manjaro


#1

Hello,

not sure where to look for help probably here


#2

Can you please provide:

snap version
journalctl -u var-lib-snapd-snap-core-4486.mount
cat /proc/filesystems

#3
[nur@Linux ~]$ snap version
snap     2.30
snapd    2.30
series   16
manjaro  
kernel   4.14.30-1-MANJARO
[nur@Linux ~]$ journalctl -u var-lib-snapd-snap-core-4486.mount
-- Logs begin at Wed 2018-04-25 20:25:52 +08, end at Thu 2018-04-26 05:10:47 +08. --
Apr 26 01:29:53 Linux systemd[1]: Mounting Mount unit for core...
Apr 26 01:29:53 Linux mount[28267]: mount: /var/lib/snapd/snap/core/4486: mount failed: Operation not permitted.
Apr 26 01:29:53 Linux systemd[1]: var-lib-snapd-snap-core-4486.mount: Mount process exited, code=exited status=1
Apr 26 01:29:53 Linux systemd[1]: var-lib-snapd-snap-core-4486.mount: Failed with result 'exit-code'.
Apr 26 01:29:53 Linux systemd[1]: Failed to mount Mount unit for core.
Apr 26 01:31:28 Linux systemd[1]: Mounting Mount unit for core...
Apr 26 01:31:28 Linux mount[28369]: mount: /var/lib/snapd/snap/core/4486: mount failed: Operation not permitted.
Apr 26 01:31:28 Linux systemd[1]: var-lib-snapd-snap-core-4486.mount: Mount process exited, code=exited status=1
Apr 26 01:31:28 Linux systemd[1]: var-lib-snapd-snap-core-4486.mount: Failed with result 'exit-code'.
Apr 26 01:31:28 Linux systemd[1]: Failed to mount Mount unit for core.
[nur@Linux ~]$ cat /proc/filesystems
nodev	sysfs
nodev	rootfs
nodev	ramfs
nodev	bdev
nodev	proc
nodev	cpuset
nodev	cgroup
nodev	cgroup2
nodev	tmpfs
nodev	devtmpfs
nodev	binfmt_misc
nodev	configfs
nodev	debugfs
nodev	tracefs
nodev	securityfs
nodev	sockfs
nodev	dax
nodev	bpf
nodev	pipefs
nodev	hugetlbfs
nodev	devpts
nodev	autofs
nodev	pstore
nodev	efivarfs
nodev	mqueue
	ext3
	ext2
	ext4
	vfat
	fuseblk
nodev	fuse
nodev	fusectl
[nur@Linux ~]$

#4

Hmm, that’s interesting.

  1. It seems that systemd doesn’t have permissions !? to mount filesystems
  2. You don’t seem to have squashfs support in your kernel. Does it work if you modprobe squashfs
  3. Your snapd is slightly out of date (2.32.5 is the most recent release)

I honestly don’t know what to say. Did snaps work for you before? Is this a recent issue?


#5

unfortunately i’m a noob here that’s why manjaro and not sure what is squashfs.

from my understanding snap is like docker for linux apps so i tried using that to not break the system dependencies as the apps i want isn’t maintained by manjaro community


#6

Squashfs is a type of filesystem that is required to use snaps. Snaps are little filesystems that are mounted instead of being unpacked (like inserting a virtual CD into a virtual CD drive)


#7

problem solved install snapd-git instead


#8

That is surprising (to say the list) as snaps-glib is a library that talks to snapd over an UNIX socket. Maybe it pulled in some dependencies?


#9

just to update apps installed but some app can’t launch e.g brackets while some can spotify


#10

Some snaps, those that use so-called classic confinement are not isolated from your system (or vice versa) so they can often fail if not prepared correctly. Normal snaps don’t have this issue but certain class of applications, e.g. text editors would give poor experience with confinement today.


#11

snapd-git, not snapd-glib


#12

LMAO :slight_smile: Thank you @chipaca