I have several snaps installed, including vlc, gimp and libreoffice. In all three cases, when I attempt to run the applications, I am told:
cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_dNQck6//dev: No such file or directory
(Different paths but always the same error.)
Gimp definitely worked when I installed it a few weeks back. I’m pretty sure libreoffice did too. I don’t know about vlc.
Thing I have tried which have not helped include rebooting, snap repair <snap> (“error: repairs are not available on a classic system”), snap remove <snap> and snap install <snap> (no change).
Nothing appears in tail -f /var/log/syslog | grep -i snapd when performing the failing operation.
No, /var/tmp is a normal directory with the sticky bit set:
mark@laptop15:~$ ll /var
total 60
drwxr-xr-x 15 root root 4096 Jan 25 2018 ./
drwxr-xr-x 28 root root 4096 Nov 14 08:33 ../
[...]
drwxrwxrwt 4 root root 4096 Nov 14 09:00 tmp/
[...]
My system is old and battered (lots of things have been uninstalled, hacked around, reinstalled etc.). I’m not aware of anything (else) being broken, but I’m not ruling it out. If anyone would like logs etc, I’m happy to get them (if someone can point me at instructions).
The problem is no longer happening but I do not recall doing anything to fix it, sorry.
I did increase the size of my / mount, which was previously quite full, and I have noticed a general improvement in how snaps are behaving. Perhaps it was related to that, but I’m really not sure.
No @chipaca your right, this was the first post that I came across after searching for quite awhile that had the same exact error message I was getting when trying to start my snaps.
I’m running Arch Linux with the latest kernel:5.2.11 and I installed snap using the manual build process
$ git clone https://aur.archlinux.org/snapd.git
$ cd snapd
$ makepkg -si
as opposed to using $ yay -S snapd
I believe my issue was something along the lines as to what @popey had metioned