System restart required/update available message still there after reboot

Asked by Florian Schweikert

All my Ubuntu 10.04.2 LTS server showing updates that are already installed.
Restart required messages doesn't disappear after reboot.

for example:
16 packages can be updated.
11 updates are security updates.

*** System restart required ***

aptitude update / upgrade shows nothing to update
No packages will be installed, upgraded, or removed.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-motd Edit question
Assignee:
No assignee Edit question
Solved by:
Junaid Loonat
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of;

sudo apt-get update; sudo apt-get -y upgrade; sudo apt-get -y dist-upgrade

Thanks

Revision history for this message
Florian Schweikert (kelvan) said :
#2

Hit http://gd.tuwien.ac.at lucid Release.gpg
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid/main Translation-en_US
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid/restricted Translation-en_US
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid/universe Translation-en_US
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid/multiverse Translation-en_US
Hit http://gd.tuwien.ac.at lucid-updates Release.gpg
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid-updates/main Translation-en_US
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid-updates/restricted Translation-en_US
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid-updates/universe Translation-en_US
Ign http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ lucid-updates/multiverse Translation-en_US
Hit http://gd.tuwien.ac.at lucid Release
Hit http://gd.tuwien.ac.at lucid-updates Release
Hit http://gd.tuwien.ac.at lucid/main Packages
Hit http://gd.tuwien.ac.at lucid/restricted Packages
Hit http://gd.tuwien.ac.at lucid/main Sources
Hit http://gd.tuwien.ac.at lucid/restricted Sources
Hit http://gd.tuwien.ac.at lucid/universe Packages
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Hit http://gd.tuwien.ac.at lucid/universe Sources
Hit http://gd.tuwien.ac.at lucid/multiverse Packages
Hit http://gd.tuwien.ac.at lucid/multiverse Sources
Hit http://gd.tuwien.ac.at lucid-updates/main Packages
Hit http://gd.tuwien.ac.at lucid-updates/restricted Packages
Hit http://gd.tuwien.ac.at lucid-updates/main Sources
Hit http://gd.tuwien.ac.at lucid-updates/restricted Sources
Hit http://gd.tuwien.ac.at lucid-updates/universe Packages
Hit http://gd.tuwien.ac.at lucid-updates/universe Sources
Hit http://gd.tuwien.ac.at lucid-updates/multiverse Packages
Hit http://gd.tuwien.ac.at lucid-updates/multiverse Sources
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Revision history for this message
Smitten (simon-booth) said :
#3

check for a file called /var/run/reboot-required

This should be deleted after a reboot, but if it isn't then I suggest you delete it manually. /var/run/reboot-required.pkgs (if present) should tell you which packages required the reboot.

Revision history for this message
Florian Schweikert (kelvan) said :
#4

/var/run/reboot-required.pkgs: No such file or directory

Yeah this is deleted after a reboot but it doesn't have any effect

16 packages can be updated.
11 updates are security updates.

*** System restart required ***

I rebooted the system a few times.
This problem occurs on every of my 10.04.2 systems (5 servers)

Revision history for this message
Smitten (simon-booth) said :
#5

can you give the output of

cat /usr/lib/update-notifier/update-motd-reboot-required

and

cat /var/run/reboot-required

Revision history for this message
Best Junaid Loonat (junaid-loonat) said :
#6

I had the same issue soon after my 10.04 LTS servers were updated to 10.04.2 LTS
After a brief investigation, it turned out that the incorrect 'restart' and 'updates' lines were from the /etc/motd.tail file.
I subsequently cleared/remove the file to get everything back to normal.

Since the file is reserved for the administrator (me) to add static lines, I am unsure how/why this file was populated.

Revision history for this message
Florian Schweikert (kelvan) said :
#7

Thanks Junaid Loonat, that solved my question.

Revision history for this message
Florian Schweikert (kelvan) said :
#8

Thank you, also works for me :)