Your message dated Mon, 23 Jun 2008 18:04:27 +0200
with message-id <[EMAIL PROTECTED]>
and subject line update-manager: dies when lsb_release -i returns empty 
distributor
has caused the Debian Bug report #485558,
regarding update-manager: dies when lsb_release -i returns empty distributor
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
485558: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485558
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: update-manager
Version: 0.42.2ubuntu22-15
Severity: normal

I haven't been able to startup update-manager for a while I decided to finally 
investigate a bit.
When starting from the command line I get:

[EMAIL PROTECTED]:~$ gksudo update-manager 
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 70, in <module>
    app = UpdateManager(data_dir)
  File "/var/lib/python-support/python2.5/UpdateManager/UpdateManager.py", line 
261, in __init__
    dinfo = DistInfo (base_dir=datadir+"channels/")
  File "/var/lib/python-support/python2.5/UpdateManager/Common/DistInfo.py", 
line 58, in __init__
    dist_file = open (dist_fname)
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 
'/usr/share/update-manager/channels//.info'

So I checked the source on where this failed:

...
        if not dist:
            pipe = os.popen("lsb_release -i | cut -d : -f 2-")
            dist = pipe.read().strip()
            pipe.close()
            del pipe
...
        dist_fname = "%s/%s.info" % (base_dir, dist)
        dist_file = open (dist_fname)
...

Then I checked lsb_release:

[EMAIL PROTECTED]:~$ lsb_release -i
Distributor ID:   
[EMAIL PROTECTED]:~$ lsb_release -a
LSB Version:      
core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID:   
Description:      Debian GNU/Linux testing (lenny)
Release:          testing
Codename:         lenny

So it /seems/ to actually be a bug in lsb_release but I think it would be great 
if update-manager could gracefully handle the error.
(i.e. inform the user that the file it is searching for doesn't exist and it is 
exiting, especially if update-manager is started from a panel.)

Cheers,
David

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages update-manager depends on:
ii  libgnome2-perl                1.042-1+b1 Perl interface to the GNOME librar
ii  lsb-release                   3.2-11     Linux Standard Base version report
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-apt                    0.7.5      Python interface to libapt-pkg
ii  python-glade2                 2.12.1-1   GTK+ bindings: Glade support
ii  python-gnome2                 2.22.0-1   Python bindings for the GNOME desk
ii  python-gnupginterface         0.3.2-9    Python interface to GnuPG (GPG)
ii  python-support                0.7.7      automated rebuilding support for P
ii  synaptic                      0.62       Graphical package manager

update-manager recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.68.debian-1

I modified lsb_release to return an empty distributor and then checked update-manager, which behaved properly. I therefore believe this has been fixed already upstream.

Best regards, Thibaut.



--- End Message ---

Reply via email to