Ubuntu – How to disable release upgrade notification at terminal/TTY login (not the GUI pop-up)

command linemotdnotificationupgrade

I have Ubuntu 12.04 LTS on one of my old laptop. Each time I login through TTY or SSH it says:

Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.4.0-030400-generic i686)

 * Documentation:  https://help.ubuntu.com/

New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

However, this system cannot be upgraded because this machine is too old to support PAE, and I don't want to upgrade it either. Could you please tell me how to hide this notification (the last two lines) at terminal login? It doens't seem to be related to the shell I use.

I found a lot of questions about disabling the GUI Update Manager pop-ups, but didn't find anything helpful to the terminal notification.

Best Answer

That output is part of the MOTD. To disable it, remove the execute permissions for /etc/update-motd.d/90-updates-available.

sudo chmod -x /etc/update-motd.d/90-updates-available

The output maybe cached for a while, it may take a few login attempts for the message to clear out.

Related Question