Comment 0 for bug 766827

Revision history for this message
Graham Crumb (gcrumb) wrote :

Following recent updates, the /var/run/motd file is being updated properly, but the data contained within is not. This refers specifically to the data udpated by the following scripts:

/usr/lib/update-notifier/update-motd-cpu-checker
/usr/lib/update-notifier/update-motd-reboot-required
/usr/lib/update-notifier/update-motd-updates-available

I have verified this behaviour on several of our machines, all of which are running Ubuntu Server 10.04.

I've manually run /usr/lib/update-notifier/apt-check --human-readable (called from /usr/lib/update-notifier/update-motd-updates-available) and it outputs accurate data:

it@milpat:~$ /usr/lib/update-notifier/apt-check --human-readable
0 packages can be updated.
0 updates are security updates.

Running the /usr/lib/update-notifier/update-motd-updates-available script itself returns the appropriate data:

it@milpat:~$ sudo /usr/lib/update-notifier/update-motd-updates-available
0 packages can be updated.
0 updates are security updates.
it@milpat:~$

But even after running the script manually, the motd file does not contain the new data:

dmcgarry@emigre:~/devel/goofalicious/src/Goofalicious$ ssh milpat
Linux milpat 2.6.32-4-pve #1 SMP Thu Oct 21 09:35:29 CEST 2010 x86_64 GNU/Linux

Ubuntu 10.04.2 LTS

Welcome to Ubuntu!
 * Documentation: https://help.ubuntu.com/

8 packages can be updated.
2 updates are security updates.

You have mail.
Last login: Wed Apr 20 16:13:14 2011 from xxx.xxx.xxx.xxx
it@milpat:~$

REFERENCE SYSTEM INFO:
it@milpat:~$ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04