⟫ ubuntu-image -c edge -o pc-amd64-edge.img --image-size 3G amd64.model
error: mkdir /var/lib/snapd/snaps/partial: permission denied
COMMAND FAILED: snap prepare-image --channel=edge amd64.model /tmp/tmpp1sdbx7l/unpack
uncaught exception in state machine step: [1] prepare_image
Traceback (most recent call last):
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/state.py", line 68, in __next__
step()
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/builder.py", line 107, in prepare_image
self.args.channel, self.args.extra_snaps)
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/helpers.py", line 135, in snap
run(cmd, stdout=None, stderr=None, env=os.environ)
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/helpers.py", line 120, in run
proc.check_returncode()
File "/snap/ubuntu-image/25/usr/lib/python3.5/subprocess.py", line 659, in check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['snap', 'prepare-image', '--channel=edge', 'amd64.model', '/tmp/tmpp1sdbx7l/unpack']' returned non-zero exit status 1
Crash in state machine
Traceback (most recent call last):
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/__main__.py", line 171, in main
list(state_machine)
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/state.py", line 68, in __next__
step()
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/builder.py", line 107, in prepare_image
self.args.channel, self.args.extra_snaps)
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/helpers.py", line 135, in snap
run(cmd, stdout=None, stderr=None, env=os.environ)
File "/snap/ubuntu-image/25/lib/python3.5/site-packages/ubuntu_image/helpers.py", line 120, in run
proc.check_returncode()
File "/snap/ubuntu-image/25/usr/lib/python3.5/subprocess.py", line 659, in check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['snap', 'prepare-image', '--channel=edge', 'amd64.model', '/tmp/tmpp1sdbx7l/unpack']' returned non-zero exit status 1