Core18 fails to install/mount

I have an 18.04 home server which refuses to install core18 which is needed by another snap.

$ snap version
snap    2.38.1
snapd   2.38.1
series  16
ubuntu  18.04
kernel  4.15.0-42-generic
$ snap install core18
error: cannot perform the following tasks:
- Mount snap "core18" (970) ([start snap-core18-970.mount] failed with exit status 1: Job for snap-core18-970.mount failed.
See "systemctl status snap-core18-970.mount" and "journalctl -xe" for details.
)
$ systemctl status snap-core18-970.mount
● snap-core18-970.mount
   Loaded: not-found (Reason: No such file or directory)
   Active: failed (Result: timeout) since Wed 2019-05-22 12:18:42 BST; 6min ago
   CGroup: /system.slice/snap-core18-970.mount
           ├─ 7118 /bin/mount /var/lib/snapd/snaps/core18_970.snap /snap/core18/970 -t squashfs -o nodev,ro,x-gdu.hide
           └─16216 /bin/mount /var/lib/snapd/snaps/core18_970.snap /snap/core18/970 -t squashfs -o nodev,ro,x-gdu.hide

May 22 12:14:12 colossus systemd[1]: Mounting Mount unit for core18, revision 970...
May 22 12:15:42 colossus systemd[1]: snap-core18-970.mount: Mounting timed out. Terminating.
May 22 12:17:12 colossus systemd[1]: snap-core18-970.mount: Mount process timed out. Killing.
May 22 12:17:12 colossus systemd[1]: snap-core18-970.mount: Killing process 16216 (mount) with signal SIGKILL.
May 22 12:17:12 colossus systemd[1]: snap-core18-970.mount: Killing process 7118 (mount) with signal SIGKILL.
May 22 12:18:42 colossus systemd[1]: snap-core18-970.mount: Mount process still around after SIGKILL. Ignoring.
May 22 12:18:42 colossus systemd[1]: snap-core18-970.mount: Failed with result 'timeout'.
May 22 12:18:42 colossus systemd[1]: Failed to mount Mount unit for core18, revision 970.

Any ideas?

Something awry here… I can’t remove snaps either.

2019-05-22T12:28:09+01:00 ERROR cannot discard snap namespace "lxd", will retry in 3 mins: cannot discard preserved namespace of snap "lxd": cannot unlink lxd.mnt:
Device or resource busy

Seems likely a server IO issue. Sorry for the noise.

1 Like