ubuntu-image not working when libs are not installed as debs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
High
|
Łukasz Zemczak |
Bug Description
since the switch to a --classic snap i can not run ubuntu-image on a system that does not have the libs as debs installed ...
Traceback (most recent call last):
File "/snap/
"__main__", mod_spec)
File "/snap/
exec(code, run_globals)
File "/snap/
from ubuntu_
File "/snap/
from ubuntu_
File "/snap/
from parted import Device
File "/snap/
import _ped
ImportError: libparted.so.2: cannot open shared object file: No such file or directory
"sudo apt install libparted" fixes this (i assume the same would be true for libexpat and libfdisk but these are typically always installed by default)
Changed in ubuntu-image: | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
Changed in ubuntu-image: | |
importance: | Undecided → High |
Changed in ubuntu-image: | |
status: | Fix Committed → Fix Released |
hmm, this seems to not only be libs ...
Fetching core ubuntu- image/59/ lib/python3. 5/site- packages/ ubuntu_ image/_ _main__ .py", line 204, in main state_machine) ubuntu- image/59/ lib/python3. 5/site- packages/ ubuntu_ image/state. py", line 82, in __next__ ubuntu- image/59/ lib/python3. 5/site- packages/ ubuntu_ image/builder. py", line 357, in prepare_filesystems _prepare_ one_volume( i, name, volume) ubuntu- image/59/ lib/python3. 5/site- packages/ ubuntu_ image/builder. py", line 309, in _prepare_one_volume ubuntu- image/59/ lib/python3. 5/site- packages/ ubuntu_ image/helpers. py", line 91, in run ubuntu- image/59/ usr/lib/ python3. 5/subprocess. py", line 693, in run ubuntu- image/59/ usr/lib/ python3. 5/subprocess. py", line 947, in __init__ signals, start_new_session) ubuntu- image/59/ usr/lib/ python3. 5/subprocess. py", line 1551, in _execute_child _type(errno_ num, err_msg)
Fetching pc-kernel
Fetching pc
Crash in state machine
Traceback (most recent call last):
File "/snap/
list(
File "/snap/
step()
File "/snap/
self.
File "/snap/
label_option, part_img))
File "/snap/
**args)
File "/snap/
with Popen(*popenargs, **kwargs) as process:
File "/snap/
restore_
File "/snap/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'mkfs.vfat'