Upgrading from Hardy
Nils Kassube
kassube at gmx.net
Sun Jan 31 20:42:40 UTC 2016
Gregory Gamble wrote:
> I found some advice at:https://help.ubuntu.com/community/EOLUpgrades
>
> ... and edited my /etc/apt/sources.list to have lines such as:
> deb http://old-releases.ubuntu.com/ubuntu/ hardy-backports main
> restricted universe multiverse deb-src
> I updated the manager:
> I installed the kubuntu desktop
> Then I ran the upgrade
> ##################
> sudo apt-get update
> sudo apt-get dist-upgrade
> sudo do-release-upgrade
>
> ... but whereas I expected an upgrade to Lucid (or perhaps Intrepid),
> it seemed to want to go straight to Precise. This is the dialogue
I'm not sure if upgrading directly to precise would be a good idea. I
suppose the reason is that lucid isn't supported either, so the upgrade
tool looks for the next LTS release available in the standard
repositories.
> extracting 'precise.tar.gz'
> /tmp/tmphK2i6a/DistUpgradeMain.py:102: Warning: 'with' will become a
> reserved keyword in Python 2.6 Traceback (most recent call last):
> File "/tmp/tmphK2i6a/precise", line 3, in <module>
> from DistUpgradeMain import main
> File "/tmp/tmphK2i6a/DistUpgradeMain.py", line 102
> with open(fname, "a"):
> ^
> SyntaxError: invalid syntaxSyntaxError: invalid syntax
>
> The problem above seems to be a problem with having an outdated Python
> installed.
> Anyway, if there are better instructions somewhere which I should have
> followed instead ... please direct me there. Otherwise, I hope
> someone out there has some advice that will help me get up-to-date.
I would suggest to download the iso image for the latest LTS release
(trusty) and install from scratch. Don't forget to make backups of your
valuable data first. If you want to preserve you home directory, be very
careful during the install dialog. There is an option to do the
partitioning manually. Select this option and then select the current
partiton for "/", use the same file system type but *don't* select to
format the partition. Then /home and /usr/local (and maybe other
directories) are preserved.
Nils
More information about the ubuntu-users
mailing list