Closed yvs2014 closed 10 months ago
as follow-up the above: there were my missed steps (forgotten relogin and reinit lxd+snapcraft)
after that
and finally after switching network on host system from nat to not-nat configuratiuon, snapcraft+lxc started to work (it hasn't worked via lxc nat plus host system nat for some not totally clear reason)
it's closed, sorry for disturbing
Bug Description
Hello,
Not sure it's relevant to snapcraft or lxd itself (I've tried to run snapcraft). Is it possible to use
snapcraft
on Debian?If it's relevant to snapcraft, below steps of trying to run it:
with snapcraft installed from snap got these errors (installing firstly)
``` % lsb_release -a Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm ``` ``` % sudo snap install snapcraft --classic ... [no errors] ``` ``` % snapcraft LXD is required but not installed. Do you wish to install LXD and configure it with the defaults? [y/N]: y lxd 5.19-31ff7b6 from Canonical✓ installed sudo: lxd: command not found Traceback (most recent call last): File "/snap/snapcraft/9726/lib/python3.8/site-packages/craft_providers/lxd/lxd.py", line 140, in wait_ready subprocess.run(cmd, check=True) File "/snap/snapcraft/9726/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['sudo', 'lxd', 'waitready']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/snap/snapcraft/9726/bin/snapcraft", line 8, inafter installing
lxd
manuallygot another one error
errors after that
``` % snapcraft Traceback (most recent call last): File "/snap/snapcraft/9726/bin/snapcraft", line 8, infollowing suggested
Ensure that the user is in the 'lxd' group
:with user added to lxd group
``` % sudo usermod -a -G lxd "$(whoami)" % snapcraft Traceback (most recent call last): File "/snap/snapcraft/9726/bin/snapcraft", line 8, inTo Reproduce
steps from the section "Bug Description"
Environment
dpkg -s snapd
``` Package: snapd Status: install ok installed Priority: optional Section: devel Installed-Size: 59946 Maintainer: Michael Hudson-Doylesnapcraft.yaml
Relevant log output
Additional context
No response