7

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.

  • The same settings control the GUI and the CLI for updating releases. – muru Apr 30 '15 at 2:59
  • @muru Those settings don't hide the hint for me – bfrgzju Apr 30 '15 at 14:17
9

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.

  • Thanks a lot! This is exactly what I need. Actually it worked immediately for me. – bfrgzju Apr 30 '15 at 22:55
  • Also had to chmod -x /etc/update-motd.d/91-release-upgrade – sankoz Mar 6 '17 at 5:29
  • I was wondering for a whole now: what do I have to read to know such things? In the old days I used to read the 'Secrets' book series by IDG Press about the registry and DOS. I am looking for an 'under the hood' guide specifically for Ubuntu and Linux in general... – PenguinCSC Aug 16 '18 at 10:24
3

Do this:

sudo chmod -x /etc/update-motd.d/91-release-upgrade

This only removes the message about a release upgrade. It keeps the message about package updates, including security updates, which I would like to keep getting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.