Old kernel janitor in infinite loop

Bug #987573 reported by Nick Payne
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
Medium
Ding Zhou

Bug Description

Running 0.6.2-1 on 12.04 with all current updates. I also have the 3.4 rc3 and rc4 kernels installed from http://kernel.ubuntu.com/~kernel-ppa/mainline/ in addition to the 3.2.0-23 kernel. When I run Ubuntu Tweak, go to the Janitor tab, and click the checkbox next to "Old Kernel", the program never completes scanning for old kernels - the spinning hourglass just sits there until I close the program.

Revision history for this message
Ding Zhou (tualatrix) wrote :

Hi, thanks for your report.

Could you run Ubuntu Tweak under terminal with debug mode, then do the old kernel scan operations, then give me the results?

Thank you.

Open your terminal, then run :

        ubuntu-tweak -d

Changed in ubuntu-tweak:
status: New → Incomplete
Revision history for this message
Nick Payne (nick-payne) wrote :

Last part of the terminal output from running ubuntu-tweak -d

[Janitor][DEBUG] do_scan_task for <OldKernelPlugin object at 0x357ca00 (oldkernel_plugin+OldKernelPlugin at 0x37a8380)> for status: True (__init__.py:412)
[Janitor][INFO] Scan cruft for plugin: OldKernelPlugin (__init__.py:415)
[OldKernelPlugin][DEBUG] Find old kernerl: linux-headers-3.2.0-23 (oldkernel_plugin.py:31)
[OldKernelPlugin][DEBUG] Find old kernerl: linux-headers-3.2.0-23-generic (oldkernel_plugin.py:31)
[Janitor][DEBUG] on_move_handle: 216 (__init__.py:166)
[GSetting][DEBUG] The the value for type: None and value: 216 (gsettings.py:41)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/janitor/oldkernel_plugin.py", line 30, in get_cruft
    if pkg.isInstalled and self.is_old_kernel_package(pkg.name):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/janitor/oldkernel_plugin.py", line 74, in is_old_kernel_package
    if match and self._compare_kernel_version(match[0]):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/janitor/oldkernel_plugin.py", line 82, in _compare_kernel_version
    if int(c2) > int(p2):
ValueError: invalid literal for int() with base 10: '030400rc4'

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Incomplete → Confirmed
milestone: none → 0.7.0
assignee: nobody → Ding Zhou (tualatrix)
importance: Undecided → Medium
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
milestone: 0.7.0 → 0.7.1
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
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.