[Bug 1658909] Re: lsb_release fails in classic (arm64)

Zygmunt Krynicki zygmunt.krynicki at canonical.com
Tue Jan 24 13:02:58 UTC 2017


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

zyga at 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

** Also affects: lsb-release (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: lsb (Ubuntu)
   Importance: Undecided
       Status: New

-- 
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/1658909

Title:
  lsb_release fails in classic (arm64)

Status in Snappy:
  Confirmed
Status in lsb package in Ubuntu:
  New
Status in lsb-release package in Ubuntu:
  New

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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1658909/+subscriptions



More information about the foundations-bugs mailing list