lsb_release fails in classic (arm64)

Bug #1658909 reported by Michi Henning
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Confirmed
Medium
Oliver Grawert
lsb (Ubuntu)
Invalid
Undecided
Unassigned
lsb-release (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm getting this when running lsb_release with classic on a Dragonboard:

$ 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: '16.04 LTS'

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I see this even without classic. Curiously my traceback is different:

zyga@dragon-1:~$ 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: '6.06 LTS'

Changed in snappy:
status: New → Confirmed
Revision history for this message
Oliver Grawert (ogra) wrote :

lsb_release is not supposed to be working in core (it should not even be shipped, but there is an issue with a dependency from cloud-init) ...

that said, it should work in the classic dimension if it is installed there though.

Changed in lsb (Ubuntu):
status: New → Invalid
Changed in lsb-release (Ubuntu):
status: New → Invalid
Changed in snappy:
importance: Undecided → Medium
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Oliver Grawert (ogra) wrote :

potentially a duplicate of Bug #1650207 (for which a fix was just uploaded for the edge channel)

Revision history for this message
SHIINA Hideaki (shiina) wrote :

I think this bug is not related to Bug #1650207, but same as bug #1662357.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.