running snap application as normal user gives chroot error

Bug #1721234 reported by Robbert Muller
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

when running the lxc cli, i get the following error
vagrant@vagrant-ubuntu-trusty-64:~$ lxc
chroot: cannot change root directory to '/var/lib/snapd/hostfs': Operation not permitted

looking at the snap binary, i expected a suid root binary
ls -lad /usr/bin/snap
-rwxr-xr-x 1 root root 15519760 Aug 31 10:23 /usr/bin/snap

this is in a fresh ubuntu/trusty64 vagrant machine
apt-get install snapd
snap install lxd

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: snapd 2.27.5~14.04
ProcVersionSignature: Ubuntu 4.4.0-96.119~14.04.1-generic 4.4.83
Uname: Linux 4.4.0-96-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.25
Architecture: amd64
Date: Wed Oct 4 10:57:50 2017
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Robbert Muller (mjrider) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Claude Durocher (claude-d) wrote :

I also have the same problem with LXD on Solus. Current workaround : use of sudo.

Revision history for this message
Robbert Muller (mjrider) wrote :

i might be barking up the wrong tree, installing lxd version 'edge' solved the problem. It might be a problem with the snap itself instead of the snapd
see also https://github.com/lxc/lxd/issues/3892

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.