“System restart required” displayed in the middle of a long upgrade

Bug #372460 reported by Anders Kaseorg
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Confirmed
Undecided
Unassigned
update-notifier-kde (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: update-notifier

In the middle of a long `aptitude full-upgrade` on my Karmic amd64 system, update-notifier popped up its “System restart required” dialog box, even though aptitude had not finished the upgrade yet. This is probably due to this absurdly small timeout in update-notifier-0.78/src/update-notifier.c:

#define TIMEOUT_APT_RUN 120 /* 120 sec */

Though even if the timeout expires, update-notifier should check to see whether a package manager is still working, instead of advising the user to immediately reboot which would forcefully abort the operation in progress.

Changed in update-notifier (Ubuntu):
status: New → Confirmed
Revision history for this message
FriedChicken (domlyons) wrote :

I suggest the notifier should check peridically if there exist an apt-lock-file before showing the notification. It makes no sense (or even can be dangerous) showing the notification on still running apt.

Changed in update-notifier-kde (Ubuntu):
status: New → Confirmed
Revision history for this message
FriedChicken (domlyons) wrote :

Or probably it's better to let the notifier check if there's a dpkg-lock-file.

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.