Installing ubuntu-core snap inside a LXD container fails

Sujeevan (svij) Vijayakumaran svij at ubuntu.com
Tue Jun 7 11:41:03 UTC 2016


Hello!

I'm trying to install a snap inside a freshly created LXD container,
which isn't possible:

-----
ubuntu at snap-test:~$ sudo snap install taskwarrior_2.5.1-snap0_amd64.snap
64.75 MB / 64.75 MB
[========================================================================]
100.00 % 5.38 MB/s

error: cannot perform the following tasks:
- Mount snap "ubuntu-core" ([start snap-ubuntu\x2dcore-122.mount] failed
with exit status 1: Job for snap-ubuntu\x2dcore-122.mount failed. See
"systemctl status "snap-ubuntu\\x2dcore-122.mount"" and "journalctl -xe"
for details.
)
ubuntu at snap-test:~$ systemctl status "snap-ubuntu\\x2dcore-122.mount"
● snap-ubuntu\x2dcore-122.mount - Squashfs mount unit for ubuntu-core
   Loaded: loaded (/etc/systemd/system/snap-ubuntu\x2dcore-122.mount;
enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2016-06-07 11:32:13 UTC;
16s ago
    Where: /snap/ubuntu-core/122
     What: /var/lib/snapd/snaps/ubuntu-core_122.snap
  Process: 8584 ExecMount=/bin/mount
/var/lib/snapd/snaps/ubuntu-core_122.snap /snap/ubuntu-core/122
(code=exited, status=32)

Jun 07 11:32:13 snap-test systemd[1]: Mounting Squashfs mount unit for
ubuntu-core...
Jun 07 11:32:13 snap-test mount[8584]: mount: /snap/ubuntu-core/122:
mount failed: Unknown error -1
Jun 07 11:32:13 snap-test systemd[1]: snap-ubuntu\x2dcore-122.mount:
Mount process exited, code=exited status=32
Jun 07 11:32:13 snap-test systemd[1]: Failed to mount Squashfs mount
unit for ubuntu-core.
Jun 07 11:32:13 snap-test systemd[1]: snap-ubuntu\x2dcore-122.mount:
Unit entered failed state.
------

It works fine if it's not inside a LXD container. Is this an issue with
LXD or with snapd or am I missing something?

Also: Why is there an "ugly" \x2d (which seems to be a hypen-minus) in
the systemd-file rather than a "normal" minus?

Cheers,
Sujeevan




More information about the Snapcraft mailing list