PDA

View Full Version : [SOLVED] 10.10 Upgrade Complete but thinks it isn't...



jrebelo
October 12th, 2010, 07:32 PM
I did the 10.10 upgrade from 10.4 today. Everything seemed to go fine. I did apt-get update, apt-get upgrade and then do-release-upgrade. After it was done, I did a restart.

Now, when I log in to the machine I get this:


Linux lucifer 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 i686 GNU/Linux
Ubuntu 10.10

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/

Ubuntu 10.04.1 LTS

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/

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

Last login: Tue Oct 12 11:23:44 2010 from x.x.x.x


As you can see, it seems like the upgrade worked. But when I try to do the upgrade again, I just get this:



$ sudo do-release-upgrade -d
Checking for a new ubuntu release
No new release found

$ sudo apt-get update
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




Here is a snippet sources.list (all lines are maverick now):


deb http://ca.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ maverick main restricted


Any ideas?

jrebelo
October 12th, 2010, 10:18 PM
Added info, as someone mentioned that I should check these files:


% cat /etc/issue
Ubuntu 10.10 \n \l


% cat /etc/issue.net
Ubuntu 10.10



% cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

jrebelo
October 12th, 2010, 11:11 PM
I've found the source of the issue (though not the cause).

The problem is that the file /etc/motd contains the connect message verbatim (including the text about the pending update).

So, I have to figure out why that didn't get updated and then everything makes sense.

jrebelo
October 12th, 2010, 11:30 PM
I spoke too soon. Clearing the /etc/motd file and then reconnecting to SSH shows that the /etc/motd file is refreshed on connection.

I have made sure the update-motd package is installed. Now, after clearing the motd file, I get this pile of slop:



Linux lucifer 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 i686 GNU/Linux
Ubuntu 10.10

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/

Ubuntu 10.04.1 LTS

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/

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

Last login: Tue Oct 12 15:26:52 2010 from x.x.x.x


So, can someone just tell me how to fix the issue that's making the motd update think there are outstanding updates?

jrebelo
October 12th, 2010, 11:36 PM
Okay don't worry guys, I got this one.

The old contents of the motd file appeared to have been copied to /etc/motd.tail file during the upgrade process. As a result, every time the new /etc/motd file was generated, the last part of the building of the message (99-footer) was checking to see if motd.tail existed and, if so, including it. Thus, that old message was unconditionally being shown because nothing was clearing it from the motd.tail file.

I cleared the motd.tail file and all resolved.

Thanks for the help!

swmail
October 15th, 2010, 02:15 AM
I had the same issue. Thanks for the tipp!