lsb_release fails if /etc/debian_version is missing
Bug #4912 reported by
Michael Bienia
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_
File "/bin/lsb_release", line 105, in get_distro_
distinfo = guess_debian_
File "/bin/lsb_release", line 101, in guess_debian_
distinfo[
KeyError: 'RELEASE'
Changed in lsb-release: | |
assignee: | nobody → kamion |
To post a comment you must log in.
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