Cannot perform operation: No such file or directory


#1

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.


#2

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


#3

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

#4

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


How to run snap explicitly
#5

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!