Cannot override data_dir [was: dl-ubuntu-test-iso in stable (rev 3) bustimicated]
Bug #1875444 reported by
Heather Ellsworth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distro-info (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
in distro-info data_dir is hardcoded to /usr/share/
== Original description ==
I can't seem to run this tool.
$ dl-ubuntu-test-iso --flavor=ubuntu --variant=desktop --arch=amd64 --release=focal --build=pending --isoroot=
distro_info is bustimacated
$ snap run dl-ubuntu-test-iso
distro_info is bustimacated
$ dl-ubuntu-test-iso --help
distro_info is bustimacated
-------
$ snap list dl-ubuntu-test-iso
Name Version Rev Tracking Publisher Notes
dl-ubuntu-test-iso 20200425 3 latest/stable jibel -
Maybe it's just user error and I need some direction in fixing up the command.
description: | updated |
To post a comment you must log in.
Hi Heather,
Thanks for reporting this bug and your interest in using the dl-ubuntu-test-iso script.
It's not user error, there's an unfortunate period in the new release cycle opening process where the distro-info package lags what the actual status is, causing it throw an exception (that the dl-ubuntu-test-iso catches and gives the rather unhelpful message you see).
You can see the specific traceback by doing the following lookup manually:
$ python3 info.UbuntuDist roInfo( ) python3/ dist-packages/ distro_ info.py" , line 136, in devel ted() info.DistroData Outdated: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/ doc/distro- info-data/ README. Debian for details.
Python 3.8.2 (default, Mar 13 2020, 10:14:16)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro_info
>>> info = distro_
>>> current_release = info.devel()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
raise DistroDataOutda
distro_
>>>
Conceivably the script could do something smarter in this situation to figure out the release name of the version(s) under development; I have a vague recollection of it doing a launchpad api lookup before distro-info was added to the archive, but people didn't like that slowness on startup just to look up the release names.