Cannot perform operation: No such file or directory

My system is Ubuntu 14.04.

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.

What’s the output of snap version and journalctl -u snapd?

Wow, a reply from the actual Popey :slight_smile:

mark@laptop15:~$ snap version
snap    2.34.2~14.04
snapd   2.34.2~14.04
series  16
ubuntu  14.04
kernel  4.4.0-139-generic`

mark@laptop15:~$ sudo journalctl -u snapd
-- Logs begin at Thu 2018-12-06 22:24:41 GMT, end at Thu 2018-12-06 22:48:13 GMT. --
Dec 06 22:24:42 laptop15 snapd[935]: AppArmor status: apparmor is enabled and all features are available
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.267831 snapmgr.go:232: cannot read snap info of snap "android-studio" at revision 69: cannot find installed snap "android-studio" at revision 69: missing file /snap/android-studio/69/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.273107 snapmgr.go:232: cannot read snap info of snap "core" at revision 5897: cannot find installed snap "core" at revision 5897: missing file /snap/core/5897/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.273751 snapmgr.go:232: cannot read snap info of snap "core18" at revision 442: cannot find installed snap "core18" at revision 442: missing file /snap/core18/442/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.279574 snapmgr.go:232: cannot read snap info of snap "gtk-common-themes" at revision 818: cannot find installed snap "gtk-common-themes" at revision 818: missing file /snap/gtk-common-themes/818/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.294382 helpers.go:110: cannot add snap "android-studio" to interface repository: snap is broken: cannot find installed snap "android-studio" at revision 69: missing file /snap/android-studio/69/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.294885 helpers.go:110: cannot add snap "core" to interface repository: snap is broken: cannot find installed snap "core" at revision 5897: missing file /snap/core/5897/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.297725 helpers.go:110: cannot add snap "core18" to interface repository: snap is broken: cannot find installed snap "core18" at revision 442: missing file /snap/core18/442/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.298332 helpers.go:110: cannot add snap "gtk-common-themes" to interface repository: snap is broken: cannot find installed snap "gtk-common-themes" at revision 818: missing file /snap/gtk-common-themes/818/meta/snap.yaml
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.454319 daemon.go:343: started snapd/2.34.2~14.04 (series 16; classic) ubuntu/14.04 (amd64) linux/4.4.0-139-generic.
Dec 06 22:24:42 laptop15 snapd[935]: 2018/12/06 22:24:42.469442 stateengine.go:101: state ensure error: Get https://api.snapcraft.io/api/v1/snaps/sections: dial tcp: lookup api.snapcraft.io on [::1]:53: read udp [::1]:37007->[::1]:53: read: connection refused
Dec 06 22:32:39 laptop15 snapd[935]: 2018/12/06 22:32:39.446325 snapmgr.go:232: cannot read snap info of snap "gtk-common-themes" at revision 818: cannot find installed snap "gtk-common-themes" at revision 818: missing file /snap/gtk-common-themes/818/meta/snap.yaml
Dec 06 22:32:39 laptop15 snapd[935]: 2018/12/06 22:32:39.451707 snapmgr.go:232: cannot read snap info of snap "android-studio" at revision 69: cannot find installed snap "android-studio" at revision 69: missing file /snap/android-studio/69/meta/snap.yaml
Dec 06 22:32:39 laptop15 snapd[935]: 2018/12/06 22:32:39.452556 snapmgr.go:232: cannot read snap info of snap "core" at revision 5897: cannot find installed snap "core" at revision 5897: missing file /snap/core/5897/meta/snap.yaml
Dec 06 22:32:39 laptop15 snapd[935]: 2018/12/06 22:32:39.453204 snapmgr.go:232: cannot read snap info of snap "core18" at revision 442: cannot find installed snap "core18" at revision 442: missing file /snap/core18/442/meta/snap.yaml
1 Like

:slight_smile:

Is /var/tmp a symlink to /tmp by any chance?

I’ve seen various reports of this error you’re getting, and it looks like a snapd bug. So we need someone from the snapd to help here.

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).

Thanks!

Have you been able to figure out what was causing this? I’m experiencing the same exact issue

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.

Are you sure? The issue was likely trying to use desktop snaps on 14.04. Is that what you’re trying to do?

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

Have you been able to figure out what was causing this? I’m experiencing the same exact issue.
my snap version is

snap 2.42.1+18.04
snapd 2.42.1+18.04
series 16
ubuntu 18.04
kernel 5.3.0-40-generic

don’t know what’s causing this ?

same issue, all snaps suddenly broken.
snapmgr.go:247: cannot read snap info of snap "core...

Same issue.

$ snap version 
snap    2.57.5+22.04ubuntu0.1
snapd   2.57.5+22.04ubuntu0.1
series  16
ubuntu  22.04
kernel  5.15.0-56-generic