Message: "You need to reboot" after update of not system related packages

Bug #45890 reported by x
10
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: notification-daemon

The notification applet tells me every time after upgrading of not system related packages that i have to reboot.
e.g.:
Today i only updated example-content and festival.

A reboot seems not necessary to me.

Even if i would use festival a simple
$ /etc/init.d/festival restart

should suffice (which should/is done be dpkg anyway?).

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

Sorry i forgot.

I am on up to date Dapper.

$ LANG=C apt-cache show notification-daemon | grep Version
Version: 0.3.4-0ubuntu7

$ LANG=C apt-cache show update-notifier | grep Version
Version: 0.42.4

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

Thanks for your bugreport.

what is the output of:
$ mount|grep varrun
and
$ ls -l /var/run/reboot-required

I assume you rebooted between the messages ,) ?

thanks,
 Michael

Changed in notification-daemon:
assignee: nobody → mvo
status: Unconfirmed → Needs Info
Revision history for this message
x (xk2c-deactivatedaccount) wrote :

[OT]
> Thanks for your bugreport.
Thank YOU for caring about my issues. ;)
[/OT]

# mount|grep varrun
varrun on /var/run type tmpfs (rw)

# ls -l /var/run/reboot-required
ls: /var/run/reboot-required: No such file or directory

> I assume you rebooted between the messages ,) ?

Yeap. I am not an uptime-junkie and shutdown my machine in the evening. ;)

additional information:
Today there way a whole bunch of updates (~145 packages)
update-notifier was in between there.

So now i have installed:
# LANG=C apt-cache show notification-daemon | grep Version
Version: 0.3.4-0ubuntu8

# LANG=C apt-cache show update-notifier | grep Version
Version: 0.42.4

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

PS.
in the update today there was also hal.
So i rebooted anyway.

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

But after your rebootet the message appears again? or only after the next update? If after the next update, could you please run the following commands on a terminal:
$ killall update-notifier
$ update-notifier --debug-hooks 1

and send me the output printed on the terminal?

Thanks,
 Michael

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

> But after your rebootet the message appears again? or only after the next update?

Only after the next upgrade of packages.

Here you go:

$ update-notifier --debug-hooks 1
** (update-notifier:9825): DEBUG: init_already_seen_hooks
** (update-notifier:9825): DEBUG: reading hook_file: /etc/update-notifier/hooks_seen
** (update-notifier:9825): DEBUG: reading hook_file: /home/mbutu/.update-notifier/hooks_seen
** (update-notifier:9825): DEBUG: got: firefox-restart-required 1147021256 0
** (update-notifier:9825): DEBUG: check_update_hooks()
** (update-notifier:9825): DEBUG: reading '/var/lib/update-notifier/user.d/' dir
** (update-notifier:9825): DEBUG: investigating file 'reboot-hook'
** (update-notifier:9825): DEBUG: is_hook_relevant(): reboot-hook
** (update-notifier:9825): DEBUG: found DontShowAfterReboot
** (update-notifier:9825): DEBUG: now: 1148405602 mtime: 1146514080 uptime: 4353,040000
** (update-notifier:9825): DEBUG: diff: 1891522 uptime: 4353,040000
** (update-notifier:9825): DEBUG: not relevant because of reboot: reboot-hook
** (update-notifier:9825): DEBUG: not relevant: 'reboot-hook'
** (update-notifier:9825): DEBUG: investigating file 'firefox-restart-required'
** (update-notifier:9825): DEBUG: is_hook_relevant(): firefox-restart-required
** (update-notifier:9825): DEBUG: found DontShowAfterReboot
** (update-notifier:9825): DEBUG: now: 1148405602 mtime: 1147021256 uptime: 4353,040000
** (update-notifier:9825): DEBUG: diff: 1384346 uptime: 4353,040000
** (update-notifier:9825): DEBUG: not relevant because of reboot: firefox-restart-required
** (update-notifier:9825): DEBUG: not relevant: 'firefox-restart-required'
** (update-notifier:9825): DEBUG: update_tooltip: 80fe2e0

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

> > But after your rebootet the message appears again? or only after the next update?

> Only after the next upgrade of packages.

I am thinking about this.

After update or upgrade??
Does it make a difference?

Since i get used to do an upgrade right after update when i see it downloads the package Index on update.

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

OK now i can provide more information.
In the last update/upgrade there was no system related package (in my opinion).

$ sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be upgraded:
  example-content firefox firefox-gnome-support gdm gnome-power-manager karbon kchart kexi kformula kivio kivio- data
  koffice koffice-data koffice-libs koshell kpresenter kpresenter-data krita krita-data kspread kthesaurus kugar kword
  kword-data libnspr4 libnss3 libtotem-plparser1 openoffice.org openoffice.org-base openoffice.org-calc
  openoffice.org-common openoffice.org-core openoffice.org-draw openoffice.org-evolution openoffice.org-gnome openoffice.org-gtk openoffice.org-impress openoffice.org-java-common openoffice.org-kde openoffice.org-l10n-en- us openoffice.org-math openoffice.org-writer openoffice.org2-evolution python-uno streamtuner totem totem-gstreamer ttf-arphic-uming ttf-opensymbol update-notifier
[...]

$ ls -l /var/run/reboot-required
-rw-r--r-- 1 root root 0 24.05.06 20:39 /var/run/reboot-required

$ mount|grep varrun
varrun on /var/run type tmpfs (rw)

$ LANG=C apt-cache show notification-daemon | grep Version
Version: 0.3.4-0ubuntu8

$ LANG=C apt-cache show update-notifier | grep Version
Version: 0.42.5

HTH

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

PS. if i need to open an other bugreport for this just tell me.

The notification bubble is broken i think.
see screenie attached

Revision history for this message
x (xk2c-deactivatedaccount) wrote : screenie of notification bubble

screenie of notification bubble

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

$ update-notifier --debug-hooks 1
** (update-notifier:11742): DEBUG: init_already_seen_hooks
** (update-notifier:11742): DEBUG: reading hook_file: /etc/update-notifier/hooks_seen
** (update-notifier:11742): DEBUG: reading hook_file: /home/mbutu/.update-notifier/hooks_seen
** (update-notifier:11742): DEBUG: got: firefox-restart-required 1147021256 0
** (update-notifier:11742): DEBUG: check_update_hooks()
** (update-notifier:11742): DEBUG: reading '/var/lib/update-notifier/user.d/' dir
** (update-notifier:11742): DEBUG: investigating file 'reboot-hook'
** (update-notifier:11742): DEBUG: is_hook_relevant(): reboot-hook
** (update-notifier:11742): DEBUG: found DontShowAfterReboot
** (update-notifier:11742): DEBUG: now: 1148497671 mtime: 1146514080 uptime: 2465,500000
** (update-notifier:11742): DEBUG: diff: 1983591 uptime: 2465,500000
** (update-notifier:11742): DEBUG: not relevant because of reboot: reboot-hook
** (update-notifier:11742): DEBUG: not relevant: 'reboot-hook'
** (update-notifier:11742): DEBUG: investigating file 'firefox-restart-required'
** (update-notifier:11742): DEBUG: is_hook_relevant(): firefox-restart-required
** (update-notifier:11742): DEBUG: found DontShowAfterReboot
** (update-notifier:11742): DEBUG: now: 1148497671 mtime: 1147021256 uptime: 2465,500000
** (update-notifier:11742): DEBUG: diff: 1476415 uptime: 2465,500000
** (update-notifier:11742): DEBUG: not relevant because of reboot: firefox-restart-required
** (update-notifier:11742): DEBUG: not relevant: 'firefox-restart-required'
** (update-notifier:11742): DEBUG: update_tooltip: 80fe350

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

*Again more information*

$ LANG=C ls -l /var/run/reboot-required
ls: /var/run/reboot-required: No such file or directory

$ LANG=C sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be upgraded:
  openoffice.org openoffice.org-base openoffice.org-calc openoffice.org-common openoffice.org-core openoffice.org-draw openoffice.org-evolution openoffice.org-gnome openoffice.org-gtk openoffice.org-impress openoffice.org-java- common openoffice.org-kde openoffice.org-l10n-en-us openoffice.org-math openoffice.org-writer openoffice.org2-evolution python-uno ttf-opensymbol 18 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
.
.
.

$ LANG=C ls -l /var/run/reboot-required
-rw-r--r-- 1 root root 0 25.05.06 13:24 /var/run/reboot-required

$ mount|grep varrun
varrun on /var/run type tmpfs (rw)

$ LANG=C apt-cache show notification-daemon | grep Version
Version: 0.3.4-0ubuntu8

$ LANG=C apt-cache show update-notifier | grep Version
Version: 0.42.5

$ update-notifier --debug-hooks 1
** (update-notifier:10668): DEBUG: init_already_seen_hooks
** (update-notifier:10668): DEBUG: reading hook_file: /etc/update-notifier/hooks_seen
** (update-notifier:10668): DEBUG: reading hook_file: /home/mbutu/.update-notifier/hooks_seen
** (update-notifier:10668): DEBUG: got: firefox-restart-required 1147021256 0
** (update-notifier:10668): DEBUG: check_update_hooks()
** (update-notifier:10668): DEBUG: reading '/var/lib/update-notifier/user.d/' dir
** (update-notifier:10668): DEBUG: investigating file 'reboot-hook'
** (update-notifier:10668): DEBUG: is_hook_relevant(): reboot-hook
** (update-notifier:10668): DEBUG: found DontShowAfterReboot
** (update-notifier:10668): DEBUG: now: 1148556711 mtime: 1146514080 uptime: 783,570000
** (update-notifier:10668): DEBUG: diff: 2042631 uptime: 783,570000
** (update-notifier:10668): DEBUG: not relevant because of reboot: reboot-hook
** (update-notifier:10668): DEBUG: not relevant: 'reboot-hook'
** (update-notifier:10668): DEBUG: investigating file 'firefox-restart-required'
** (update-notifier:10668): DEBUG: is_hook_relevant(): firefox-restart-required
** (update-notifier:10668): DEBUG: found DontShowAfterReboot
** (update-notifier:10668): DEBUG: now: 1148556711 mtime: 1147021256 uptime: 783,570000
** (update-notifier:10668): DEBUG: diff: 1535455 uptime: 783,570000
** (update-notifier:10668): DEBUG: not relevant because of reboot: firefox-restart-required
** (update-notifier:10668): DEBUG: not relevant: 'firefox-restart-required'
** (update-notifier:10668): DEBUG: update_tooltip: 80fe3e8

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

About the Notification bubble.

I have done the upgrade in Console and only after that login into Gnome.
Then the bubble is broken like above.
Whenn i then:

$ killall update-notifier
$ update-notifier --debug-hooks 1

it´s normal again.

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

Do I get this correct? Whatever you upgrade *after* the upgrade a file /var/run/reboot-required is there, but *before* it was not? Does this also happens when you install some random package:
# apt-get install 3dchess
and/or when you reinstall a random pkg
# apt-get install --reinstall somepkg

?

Is there anything in the log of apt that indicates that one package is in a weird state and its postinst is run for some reason again?

Thanks,
 michael

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

> Do I get this correct? Whatever you upgrade *after* the
> upgrade a file /var/run/reboot-required is there, but *before* it was not?

Yes therefor i opened this bugreport.

I check this other questions out.

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

# ls -l /var/run/reboot-required
ls: /var/run/reboot-required: No such file or directory

root@ubuntu2:~ # apt-get install 3dchess
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  xaw3dg
The following NEW packages will be installed:
  3dchess xaw3dg
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 183kB of archives.
.
.
.

root@ubuntu2:~ # ls -l /var/run/reboot-required
ls: /var/run/reboot-required: No such file or directory

# aptitude reinstall ubuntu-desktop
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REINSTALLED:
  ubuntu-desktop
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 13.5kB of archives. After unpacking 0B will be used.
.
.
.

root@ubuntu2:~ # ls -l /var/run/reboot-required
ls: /var/run/reboot-required: No such file or directory

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

As it seems it only hapens on upgrading a package.

Revision history for this message
x (xk2c-deactivatedaccount) wrote : /var/log/aptitude

/var/log/aptitude should cantain all actions since i reinstalled breezy and upgraded to dapper (about one month ago)

Revision history for this message
x (xk2c-deactivatedaccount) wrote : /var/log/dpkg.log

same as with /var/log/aptitude.

I do not get any error or warning a package isn´t installed correct
and i do update/upgrade every day.

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

Sorry i haven´t noticed before that last log (/var/log/dpkg.log) is quite big (2.8MB).

Michael Vogt (mvo)
Changed in notification-daemon:
assignee: mvo → nobody
status: Needs Info → Unconfirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks a lot for the detailed report and the detailed logs. I have to admit that I'm a bit lost why the 'reboot-required' file is created and what creates it.

Changed in update-notifier:
status: New → Triaged
Revision history for this message
x (xk2c-deactivatedaccount) wrote :

> Thanks a lot for the detailed report and the detailed logs.

You are welcome. Thanks for debugging it. ;)

> I have to admit that I'm a bit lost why the 'reboot-required' file is created and what creates it.

Well good to know someone takes care of it,

Sidenote:
I thing this still happens (with feisty - although i have to say i lost his bugreport from my radar).
When it happens next time, i will try to report the steps to reproduce.

Revision history for this message
Aaron Grattafiori (cogitate) wrote :

"Restart required" seems to happen more and more on Hardy. Is Ubuntu trying to make windows users feel more at home?
Update-notifier should provide a more verbose description of *WHY* a reboot is required, which package caused this. Maybe
an option of "Restart the XYZ service" could replace some of these restarts?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Aaron - Restarts are still limited to packages that absolutely need them after upgrading. Examples include the kernel, dbus and HAL. dbus and HAL can't just be restarted on a live system without breaking everything that uses them.

Revision history for this message
frizzle21 (frederik-nnaji) wrote :

i never needed to reboot on gentoo fwiw

Revision history for this message
Mörgæs (moergaes) wrote :

Closing due to age.
If a similar bug appears in Ubuntu 14.04 please open a new report.

Changed in update-notifier (Ubuntu):
status: Triaged → Invalid
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.