janitor frozen when applying optimization

Bug #441863 reported by Jérôme
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
computer-janitor (Ubuntu)
Fix Released
Medium
Barry Warsaw

Bug Description

Binary package hint: computer-janitor

I used Janitor the first time since the karmic install. It proposed to remove a ".old" config file.

ProblemType: Bug
Architecture: amd64
Date: Sun Oct 4 02:48:00 2009
DistroRelease: Ubuntu 9.10
Package: computer-janitor-gtk 1.13.3-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: computer-janitor
Uname: Linux 2.6.31-11-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:1259): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1259): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:1303): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:1312): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (synaptic:1441): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed

Revision history for this message
Jérôme (jerome-bouat) wrote :
Revision history for this message
Jay Ó Broin (ismise) wrote :

I get the same problem. I'm on Ubuntu 9.10 32-bit upgraded from 9.04. I have another machine with a clean install of 9.10 that doesn't have this problem.
After clicking "Do Selected Tasks" the window goes grey and I have to kill the process to close it.
I tried restarting it again from the command line afterwards, and all the packages it had been removing were gone now except the last.
Tried "Do Selected Tasks" again to see the output. It froze up again, but I waited about 10 mins before killing it this time.
This was the terminal output:

INFO: Post-cleanup: <autoremoval_plugin.AutoRemovablePlugin object at 0x9c385cc>
INFO: Post-cleanup: <dpkg_dotfile_plugin.DpkgDotfilePlugin object at 0x9c3878c>
INFO: Post-cleanup: <unsupported_plugin.UnsupportedPackagesPlugin object at 0x9c38bac>
INFO: Post-cleanup: <deb_plugin.DebPlugin object at 0x9c38c8c>
Done downloading
(Reading database ... 325146 files and directories currently installed.)
Removing linux-headers-2.6.32-020632 ...

Revision history for this message
Barry Warsaw (barry) wrote :

Removing cruft like linux-headers can take a long time, but for it to be frozen forever isn't expected. CJ 2.0 should fix this by moving the system changing actions to a dbus service, allowing the ui to also remain active.

You can try it from my PPA:

https://edge.launchpad.net/~barry/+archive/python

Changed in computer-janitor (Ubuntu):
milestone: none → ubuntu-10.04-beta-2
assignee: nobody → Barry Warsaw (barry)
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Ricardo Pérez López (ricardo) wrote :

I have computer-janitor frozen at this moment I'm writing this. I only asked it to remove linux-headers-2.6.32-20 and linux-image-2.6.32-20-generic packages. The window doesn't response, no disk scratching. This is what I get using ps:

ricardo@kadath:~$ ps ax
[...]
6167 ? S 0:00 gksu --desktop /usr/share/applications/computer-janitor-gtk.desktop computer-janitor-gtk
6168 ? Ssl 0:23 /usr/bin/python /usr/sbin/computer-janitor-gtk
7266 pts/0 R+ 0:00 ps ax
ricardo@kadath:~$ sudo aptitude purge linux-headers-2.6.32-20 linux-image-2.6.32-20-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
  linux-headers-2.6.32-20{p} linux-image-2.6.32-20-generic{p}
0 packages upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 76.1MB will be freed.
Do you want to continue? [Y/n/?]

The last aptitude command shows that computer-janitor isn't trying to remove the packages. It's only frozen.

The bug report is marked as Fix Commited. Will the fix be released soon?

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Barry, I just trying to use computer-janitor from your ppa. The first thing I noted is that your computer-janitor doen't offer me to remove linux-image-2.6.32-20-generic anymore, i.e. it only offer me to remove linux-headers-2.6.32-20. It seems to be an issue in the cruft searching algorithm.

Aside from that, your computer-janitor removed the linux-headers-2.6.32-20 package successfully.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Well, I just downgraded computer-janitor to version 1.14.1-0ubuntu2 (the version released in Lucid), and it doesn't offer me to remove linux-image-2.6.32-20-generic, although it's installed. I'm using kernel 2.6.32-21-generic.

Version 2.0 from your ppa is obviously a good improvement, much better than the current 1.14.1. It could be great to release the newer version into Lucid before 10.04 release. However, it should be hurry, because the newer version has untranslated strings that should be exported into Launchpad Translations, then translated and finally released.

Revision history for this message
Barry Warsaw (barry) wrote :

@Ricardo: My version does not change the package search algorithm, nor anything about which packages can be removed. Take a look at View -> Show previously ignored to see if the -generic package is just being hidden.

Unfortunately I requested an FFe for Lucid but was turned down. CJ 2.0 therefore will not make it into Lucid, but it will be pulled into Maverick as soon as that opens. For now, my PPA is the only way you can get it.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

What a pity... What about including it into lucid-updates or even lucid-backports after Lucid release? That could be a good option.

Revision history for this message
Barry Warsaw (barry) wrote :

-backports might be a good option. The concern was that the changes were significant enough, and unfortunately did not get much community testing (despite calls for that), so it was not approved for Lucid. I doubt if those concerns would be alleviated for -updates, but -backports make sense. Thanks. Please definitely let us know how CJ 2.0 works for you!

Barry Warsaw (barry)
Changed in computer-janitor (Ubuntu):
milestone: ubuntu-10.04-beta-2 → maverick-alpha-1
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.