[apport] software-properties-gtk crashed with ValueError in remove()

Bug #85759 reported by brechtsoenen
32
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

software-properties crashes while deleting a repository in the list.

ProblemType: Crash
Date: Sat Feb 17 12:39:04 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/software-properties-gtk
InterpreterPath: /usr/bin/python2.5
Package: software-properties-gtk 0.55
ProcCmdline: /usr/bin/python /usr/bin/software-properties-gtk -n -t 58720293
ProcCwd: /home/bresc
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-properties-gtk', '-n', '-t', '58720293']
SourcePackage: software-properties
Uname: Linux bresc-laptop 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Revision history for this message
brechtsoenen (brecht-soenen) wrote :
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

PLease attach your /etc/apt/sources.list and all files in /etc/apt/sources.list.d

Which one did you want to delete?

Thanks.

Changed in software-properties:
status: Unconfirmed → Needs Info
Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

it happens on any entry in the 3rd-party list.
but you get that error only on the second click on the remove button: after the first click you get this:
  File "/usr/lib/python2.5/site-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 697, in on_remove_clicked
    self.remove_source(model.get_value(iter, LIST_ENTRY_OBJ))
  File "/usr/lib/python2.5/site-packages/softwareproperties/SoftwareProperties.py", line 496, in remove_source
    self.modified_sourceslist()
TypeError: 'bool' object is not callable

Revision history for this message
Michael Vogt (mvo) wrote :

@Pavel Rojtberg :
Thanks for this additional comment. This problem is a different one from the one discussed here. I fixed it in my local bzr tree and it will be part of the next upload.

The other one:
  File "/usr/lib/python2.5/site-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 697, in on_remove_clicked
    self.remove_source(model.get_value(iter, LIST_ENTRY_OBJ))
  File "/usr/lib/python2.5/site-packages/softwareproperties/SoftwareProperties.py", line 495, in remove_source
    self.sourceslist.remove(source)
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 303, in remove
    self.list.remove(source_entry)
ValueError: list.remove(x): x not in list

is still open though

Changed in software-properties:
status: Needs Info → Fix Committed
Michael Vogt (mvo)
Changed in software-properties:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.