[Bug 1662357] Re: Can't use lsb_release on Ubuntu Core 16
Oliver Grawert
1662357 at bugs.launchpad.net
Sat Jul 18 21:10:30 UTC 2020
*** This bug is a duplicate of bug 1619420 ***
https://bugs.launchpad.net/bugs/1619420
first of all the bug is a duplicate, secondly you can not install deb
packages on Ubuntu Core, snap packages (of which Ubuntu Core is built)
do use /etc/os-release. Additionally Ubuntu Core only ships the most
minimal set of python ...
If you see an issue on a Classic Ubuntu installation newer than Ubuntu
Core 16, you should open a new bug.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lsb in Ubuntu.
https://bugs.launchpad.net/bugs/1662357
Title:
Can't use lsb_release on Ubuntu Core 16
Status in lsb:
Invalid
Status in Snappy:
New
Status in Snappy Ubuntu Core:
New
Status in lsb package in Ubuntu:
Invalid
Bug description:
brian-murray at localhost:~$ snap list
Name Version Rev Developer Notes
core 16.04.1 888 canonical -
brian-murray at localhost:~$ lsb_release
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 95, in <module>
main()
File "/usr/bin/lsb_release", line 59, in main
distinfo = lsb_release.get_distro_information()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 383, in get_distro_information
distinfo = guess_debian_release()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 281, in guess_debian_release
get_distro_info(distinfo['ID'])
File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in get_distro_info
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in <lambda>
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '16.04 LTS'
brian-murray at localhost:~$ lsb_release -a
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 95, in <module>
main()
File "/usr/bin/lsb_release", line 59, in main
distinfo = lsb_release.get_distro_information()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 383, in get_distro_information
distinfo = guess_debian_release()
File "/usr/lib/python3/dist-packages/lsb_release.py", line 281, in guess_debian_release
get_distro_info(distinfo['ID'])
File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in get_distro_info
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in <lambda>
RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '6.06 LTS'
To manage notifications about this bug go to:
https://bugs.launchpad.net/lsb/+bug/1662357/+subscriptions
More information about the foundations-bugs
mailing list