I get an error when trying to install it on one of our servers. I reported this on the snaps bug tracking site too but I don’t know if its an snap or lxd issue.
root@dev ~ # snap install lxd
error: cannot perform the following tasks:
Run configure hook of “lxd” snap if present (run hook “configure”: cannot perform operation: mount --rbind /var/tmp /tmp/snap.rootfs_P4gpkD//var/tmp: Permission denied)
root@dev ~ # snap refresh core --beta
core (beta) 16-2.32.6 from ‘canonical’ refreshed
the tmp directory is a mounted file (for security reasons):
/var/tmpmount /tmp ext4 loop,rw,noexec,nosuid,nodev 0 0
But even when using the filesystem for /tmp the error is still the same.
Installing lxd 3.0.0 on another server (with same Ubuntu version, etc) with snap did not give me this error.
How can I fix this?