I keep getting this message when I logged into my server in AWS EC2 via ssh
I think this is called MOTD
43 packages can be updated.
22 updates are security updates.
but I have already done
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
I have also restarted my instance.
Please advise.
This is coming from the MOTD (Message Of The Day). The MOTD is pieced together from the commands in
/etc/update-motd.d
. The specific message comes from running/etc/update-motd.d/90-updates-available
.I have seen this happen on systems where after running
sudo apt-get update
and packages are kept backThe message can mean several things e.g. there may be dependency issues etc. there is more on this in the APT HowTo.
I have managed to stop the messages with
If that doesn't work then the link above does give advice on how to track down the problem packages.
Another one of these "fine" Ubuntu-bugs... Check Ubuntu Bug #634387: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/634387
I deleted the files "/etc/motd.tail" and "/etc/motd.tail.old" and did a logout / login to re-genereate a propper /etc/motd.
I was seeing this same issue on Ubuntu 14.04
I edited
/etc/pam.d/sshd
and changed this line
session optional pam_motd.so motd=/run/motd.dynamic noupdate
by removing the
noupdate
now the banner displays correctly.
Run the following command:
After numerous failed attempts, the recipe that works for me is based on Kimi and Lex Miller:
Try this:
For more details: https://help.ubuntu.com/community/AutomaticSecurityUpdates