curtin package fails to import curtin module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
High
|
Unassigned |
Bug Description
On a wily VM, installing curtin from archive doesn't produce a working curtin:
1. uvt-kvm create release=wily
2. sudo apt-get install curtin
3. curtin --help
ubuntu@w2:~$ /usr/bin/curtin --help
/usr/bin/python3: Error while finding spec for 'curtin.
failed to install deps!
curtin feels we should be running python3 (which we should, it's available on wily) but the deb package doesn't depend on python3-curtin, which is needed to resolve this import error.
After I run: $ sudo apt-get install python3-curtin
then it works:
$ /usr/bin/curtin --help
usage: main.py [-h] [--showtrace] [-v] [--log-file LOG_FILE] [-c FILE]
...
positional arguments:
{apply_
optional arguments:
-h, --help show this help message and exit
--showtrace
-v, --verbose
--log-file LOG_FILE
-c FILE, --config FILE
--set key=val define a config variable. key can be a "/" delimited
Sorry, here are the recreate steps:
1. uvt-kvm create --memory 1024 --cpu 2 --disk 10 w1 release=wily
2. uvt-kvm ssh --insecure w1
3. sudo apt-get install curtin