Package: software-properties-gtk Version: 0.60.debian-1.1 Severity: normal Try this:
1) run software-properties-gtk 2) in it's main window, uncheck the 'Officially supported(main)' 3) close the window. 4) it will prompt you to 'reload the software sources'. Do it. 5) Now try to launch the program again (to add the main repository back!) 6) Nothing will happen. If you now run the program from console, you will see it fail with the following traceback: utumno:/home/leszek# software-properties-gtk /usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet warnings.warn("apt API not stable yet", FutureWarning) Debian n/a Debian GNU/Linux testing/unstable testing/unstable Traceback (most recent call last): File "/usr/bin/software-properties-gtk", line 100, in <module> app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file) File "/var/lib/python-support/python2.5/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__ SoftwareProperties.__init__(self, options=options, datadir=datadir) File "/var/lib/python-support/python2.5/softwareproperties/SoftwareProperties.py", line 55, in __init__ self.reload_sourceslist() File "/var/lib/python-support/python2.5/softwareproperties/SoftwareProperties.py", line 450, in reload_sourceslist self.distro.get_sources(self.sourceslist) File "/usr/lib/python2.5/site-packages/aptsources/distro.py", line 87, in get_sources "Error: could not find a distribution template") aptsources.distro.NoDistroTemplateException ***************************************************************************************** I investigated this problem and I found out the following ( my description can be a bit vague, I dont speak Python ) : 1) The 'NoDistroTemplateException' is raised becase the condition 'self.is_codename(template.name)' in /usr/lib/python2.5/site-packages/aptsources/distro.py line 79 is always false. 2) The condition is always false because 'self.codename' is equal to 'n/a' ( should be 'sid' ) 3) this is because in line 424 function 'lsb_release -c -s' returns 'n/a' 4) this is because in file '/usr/bin/lsb_release' variable 'distinfo' does not contain a 'CODENAME' 5) this is because function 'guess_debian_release' ( line 173 ) failed to set it. 6) this is because a) my '/etc/debian_version' contains 'lenny/sid' so it does not go into the 'if' in line 188 b) then function 'guess_release_from_apt' returns 'None' so it does not go into the 'if' in line 206 and fails to set the CODENAME altogether. 7) 'guess_release_from_apt' returns 'None' because 'parse_apt_policy' does NOT return a release with ( origin='Debian', component='main', label='Debian' ) 8) 'parse_apt_policy' does not return such policy because 'apt-cache policy' does not return it. 9) 'apt-cache policy' does not return it because we just removed the 'main' repository from sources.list and issues a apt-get update... ********************************************************************************************* In short: software-properties-gtk merrily removes the 'main' repository and cannot add it back. I think this should be serious. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages software-properties-gtk depends on: ii gksu 2.0.0-5 graphical frontend to su ii python 2.5.2-3 An interactive high-level object-o ii python-glade2 2.12.1-6 GTK+ bindings: Glade support ii python-gtk2 2.12.1-6 Python bindings for the GTK+ widge ii python-software-properti 0.60.debian-1.1 manage the repositories that you i ii python-support 0.8.7 automated rebuilding support for P ii synaptic 0.62.1 Graphical package manager software-properties-gtk recommends no packages. software-properties-gtk suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]