lsb_release fails if /etc/debian_version is missing

Bug #4912 reported by Michael Bienia
4
Affects Status Importance Assigned to Milestone
lsb-release (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

I deleted /etc/debian_version as I assumed it was a left-over file from my debian installation. But then I found out that lsb_release fails if this file is missing:

$ lsb_release
Traceback (most recent call last):
  File "/bin/lsb_release", line 188, in ?
    main()
  File "/bin/lsb_release", line 152, in main
    distinfo = get_distro_information()
  File "/bin/lsb_release", line 105, in get_distro_information
    distinfo = guess_debian_release()
  File "/bin/lsb_release", line 101, in guess_debian_release
    distinfo['DESCRIPTION'] = '%(ID)s %(OS)s %(RELEASE)s (%(CODENAME)s)' % distinfo
KeyError: 'RELEASE'

Colin Watson (cjwatson)
Changed in lsb-release:
assignee: nobody → kamion
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks; forwarded to Debian and fixed in Ubuntu.

lsb (3.0-11ubuntu2) dapper; urgency=low

  * Fix lsb_release failure if /etc/debian_version is missing (closes:
    Launchpad #4912).

 -- Colin Watson <email address hidden> Fri, 2 Dec 2005 14:59:02 +0000

Changed in lsb-release:
status: New → Fixed
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.