Due to stability reasons I’m installing LXD from local snaps so that they’re not automatically refreshed from a remote channel.
The process looks like the following:
$ snap remove lxd $ snap download lxd --channel=4.0/stable $ snap install lxd_22753.snap --dangerous
However recently I have run into an issue installing LXD in the same way on new servers:
$ sudo snap remove $ snap download lxd --channel=4.0/stable $ snap install lxd_22753.snap --dangerous error: cannot perform the following tasks: - Run configure hook of "lxd" snap if present (run hook "configure": ----- cat: /proc/self/attr/current: Permission denied /snap/lxd/x1/snap/hooks/configure: 5: exec: aa-exec: Permission denied -----)
This issue is reproducible on both a physical server and on a VM.
Any ideas as to why this happens? I found the same error in this bug thread however LXD is already installed in this scenario.