Ubuntu: Ubuntu 12.04 EOL appears in motd after release upgrade to 14.04 [duplicate]



Question:

This question already has an answer here:

I just performed a do-release-upgrade to bring a server from 12.04 to 14.04. The server rebooted at the end of the upgrade. However, when I log in, I am greeted by a contradictory MotD:

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-117-generic x86_64)

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

This Ubuntu 12.04 LTS system is past its End of Life, and is no longer receiving security updates. To protect the integrity of this system, it’s critical that you enable Extended Security Maintenance updates: * https://www.ubuntu.com/esm

/var/lib/ubuntu-release-upgrader/release-upgrade-available only contains the 16.04.2 message (referenced in related question After do-release-upgrade to 13.04 from 12.10 I still get informed about 13.04 on log-in via MOTD)

I deleted /run/motd.dynamic so that it would regenerate, but this message has more lives than The Doctor and it must be coming from somewhere else that was not cleaned up in the release upgrade process.


Solution:1

/etc/update-motd.d/99-esm contains the undying message/advertisement. This file was created on April 28, 2017, which is the day that 12.04 went End Of Life.

Deleting /etc/update-motd.d/99-esm and /run/motd.dynamic will cause a refresh of motd.dynamic the next time someone logs in.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »