Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 11234  / 2 Years ago, sun, july 10, 2022, 12:40:25

I have just updated my HTPC to 13.04 (using do-release-upgrade) and when logging in I get the "new release available" message, while there isn't as I've just upgraded and running that version.



me@mybox: ~$ssh htpc
me@htpc's password:
Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-19-generic i686)

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

New release '13.04' available.
Run 'do-release-upgrade' to upgrade to it.


So I am at 13.04, but I can upgrade to 13.04. Sounds like a plan. Or not.



I have done an apt-get update and upgrade (was nothing new) and rebooted the machine. Why is this message still here, and what needs fixing so it goes away?



For more info maybe:



htpc:~$ uname -a
Linux HTPC 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 athlon i686 GNU/Linux

More From » updates

 Answers
1

It looks like the culprit is /etc/update-motd.d/91-release-upgrade



This calls /usr/lib/ubuntu-release-upgrader/release-upgrade-motd



This file checks for the file /var/lib/ubuntu-release-upgrader/release-upgrade-available



If that exists, it goes in the motd. If it doesn't, it calls /usr/lib/ubuntu-release-upgrader/check-new-release.



That last command does give the right result, but the file was not removed for some reason. I removed the file and re-ran the commands. The msg-of-the-day wasn't put back.



So the final issue was the 'cache' of 'update needed' wasn't cleared.



I removed this file and it was fixed without breaking anything :)



sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-available


This was a 12.10 -> 13.04 upgrade. On my other box (12.04 LTS, having the same issue) I had to look in another location:



sudo rm /var/lib/update-notifier/release-upgrade-available

[#31494] Monday, July 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ilityushing

Total Points: 18
Total Questions: 100
Total Answers: 113

Location: Senegal
Member since Wed, May 13, 2020
4 Years ago
;