Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to upgrade post-end-of-life Dapper to Hardy

  1. #1
    Join Date
    Mar 2007
    Beans
    Hidden!

    How to upgrade post-end-of-life Dapper to Hardy

    Hey all,

    I'd seen a couple of people groaning that after Dapper went end-of-life they couldn't upgrade to Hardy. I just managed to work around this and get Dapper upgraded, so I'll document the required tricks here. These details might perhaps want to go in the EOLUpgrades wiki page.

    The problem
    -----------

    If you follow the instructions at https://help.ubuntu.com/community/EOLUpgrades to upgrade Ubuntu 6.06 (Dapper) to 8.04 (Hardy), with /etc/apt/sources.list set only to refer to the old-releases server, the do-release-upgrade command will fail with the error "Getting upgrade prerequisites failed". This is because it believes being able to access dapper-backports at archive.ubuntu is vital to be able to upgrade.

    Even if sources.list does not mention archive.ubuntu.com this dependency will be re-inserted by the Hardy upgrade scripts and the upgrade will fail.

    The solution
    ------------

    DISCLAIMER: I've tried this trick on exactly *one* machine. Back up first.

    We must do two tricks to make the upgrade go right:

    1. Make sure the Hardy update script looks to old-releases.ubuntu.com instead of archive.ubuntu.com.

    2. Ensure that Hardy can get its packages during the upgrade; these *will* come from archive.ubuntu.com.

    The first trick is most difficult. When we run do-release-upgrade, the first thing it does is download the hardy upgrade scripts and run those. Run do-release-upgrade and watch it fail. Then do an ls -l in /tmp. You should find a very recently created directory with a random-looking name. If it contains a file called 'hardy', bingo -- this is where the Hardy scripts were downloaded.

    Supposing the hardy scripts were put in /tmp/aaaaaa. Edit /tmp/aaaaaa/prerequists-sources.dapper.list and change archive.ubuntu.com to old-releases.ubuntu.com.

    The second trick is we must have lines in /etc/apt/sources.list for *both* archive.ubuntu.com AND old-releases.ubuntu.com. This is because the update script will make an initial hardy sources list using this as a reference, just swapping out 'dapper' for 'hardy'. Dapper is only on old-releases, and hardy is only on archive, so we need to mention both so it works both before and after.

    With all this done, we kick off the upgrade by running:

    cd /tmp/aaaaaa (replacing 'aaaaaa' with the path the hardy scripts ended up in)
    ./hardy --mode=server --frontend=DistUpgradeViewText

    Hope this helps stragglers like me get their ancient distros somewhere near the present decade

    Chris

  2. #2
    Join Date
    Aug 2009
    Location
    The Hague - Holland
    Beans
    527
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to upgrade post-end-of-life Dapper to Hardy

    I recommend a clean and fresh install, not a distro upgrade. Why? Avoiding any file version conflicts. Avoiding having old stuff mixed with newer stuff. Avoiding any other conflicts which migth occure after the upgrade.

    Make sure you backup all your important files before wiping the disc.

  3. #3
    Join Date
    Aug 2006
    Location
    Franklin, New Zealand
    Beans
    18
    Distro
    Kubuntu 16.04 Xenial Xerus

    Re: How to upgrade post-end-of-life Dapper to Hardy

    Worked for me on a Dapper server.

    Prior to starting, if do-release-upgrade isn't installed, you need to change [country].archive. and security. in /etc/apt/sources.list to old-releases.

    Then
    apt-get update && apt-get install update-manager-core

    As the upgrade runs you get lots of Failed mixed in with the Hit and Ignored. This is ok, it's failing on the archive. for Dapper

    'Calculating the changes' takes a while.
    David
    McPond Software

  4. #4
    Join Date
    May 2005
    Location
    Boston
    Beans
    16

    Re: How to upgrade post-end-of-life Dapper to Hardy

    This worked for me testing in a virtual machine.

  5. #5
    Join Date
    Mar 2007
    Beans
    3

    Re: How to upgrade post-end-of-life Dapper to Hardy

    I've been struggling with this so thankyou poster for this workaround.

    Haven't tried it yet as need outage window but will post results.

  6. #6
    Join Date
    Oct 2010
    Location
    Norfolk, UK
    Beans
    318
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to upgrade post-end-of-life Dapper to Hardy

    It seems some people will go to any lengths to avoid a fresh install of a new version with a new CD! Why is this? It's so much easier, there's less to go wrong and it's quicker than trying to update through the obsolete versions.

    Is it a reluctance to back up, then restore all their files afterwards? I must admit I'm a bit lazy, so I have set up my hard drive to have a separate partition for '/Home'. Now I can reinstall the system without losing my settings and data files. I take a gamble, do no backups and just trust my that my /Home partition will stay intact. I have a nasty feeling that one day I am going to format it by mistake!!

    No seriously, just back everything up on a spare HDD, some DVDs or flash drives, wipe everything and do a nice, fresh install everytime!

  7. #7
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to upgrade post-end-of-life Dapper to Hardy

    I disagree. As someone who has had a dapper desktop install running (near) continuously since June 2006, an online upgrade path that only requires a reboot is helpful to maintain uptime.


    tgalati4@tubuntu2:~$ uprecords
    # Uptime | System Boot up
    ----------------------------+-------------------------------------------------
    1 216 days, 06:49:56 | Linux 2.6.15-28-386 Tue May 22 22:36:24 2007
    2 187 days, 00:54:23 | Linux 2.6.15-55-386 Sat Jun 26 14:31:39 2010
    3 163 days, 23:49:22 | Linux 2.6.15-26-386 Tue Oct 24 12:19:49 2006
    4 153 days, 01:33:24 | Linux 2.6.15-29-386 Wed Dec 26 13:22:27 2007
    5 117 days, 23:40:07 | Linux 2.6.15-51-386 Thu Jun 7 10:18:37 2007
    -> 6 111 days, 01:39:58 | Linux 2.6.15-57-386 Sat May 14 10:55:07 2011
    7 94 days, 02:31:54 | Linux 2.6.15-52-386 Mon Oct 20 10:55:37 2008
    8 64 days, 20:48:44 | Linux 2.6.15-54-386 Sun Aug 2 12:56:44 2009
    9 59 days, 15:24:32 | Linux 2.6.15-53-386 Sun Feb 8 16:44:19 2009
    10 44 days, 22:39:39 | Linux 2.6.15-55-386 Sat Oct 24 10:56:14 2009
    ----------------------------+-------------------------------------------------
    1up in 6 days, 22:00:10 | at Fri Sep 9 10:35:13 2011
    no1 in 105 days, 05:09:59 | at Fri Dec 16 16:45:02 2011

    As most things in the Open Source community, it's a matter of principle.

    Although I agree it is better to start with a fresh install, if a user wants to do an online, in place upgrade, then they should be able to do it.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  8. #8
    Join Date
    Mar 2007
    Beans
    3

    Smile Re: How to upgrade post-end-of-life Dapper to Hardy

    Ok just upgraded 3 servers using this workaround. Worked great so thanks again OP.

    To all those people that recommend doing a clean install, well I appreciate you are trying to be helpful but please respect the actual question people are asking - ie how to upgrade. Most, if not all, people know a full install is easy to do but when you have a server thats been around since 2006 and running a bunch of 24/7 jobs from various scripts and programs an upgrade saves *massive* amounts of time. I mean even just re-adding 20+ accounts and their file permissions dotted over the file system can take an hour or more... Long story short, not everyone just has some mp3s in their home directory to backup and restore.

  9. #9
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to upgrade post-end-of-life Dapper to Hardy

    @smowton, thanks for posting this workaround. It needs a couple of amendments to work with the desktop version of Dapper, so I thought I'd post these.

    1 - "sudo do-release-upgrade" fails with a "command not found" error. Which is interesting because do-release-upgrade is included in the desktop version of Natty that I'm posting from. It must only come with the server version of Dapper. I couldn't find which package the do-release-upgrade script comes with so that I could install it. Instead I opened update-manager which prompted me with "8.04.1 LTS is available". Clicking on upgrade started the upgrade process which predictably failed, but it produced the /tmp/tmp*** folder that the OP refers to and I was able to edit the /tmp/tmp*/prerequists-sources.dapper.list file.

    2 - You need to sudo -i to a root shell before running the /tmp/tmp***/hardy script in a GUI terminal. Running "sudo bash...." produces a series of errors.

    3 - You need to run "./hardy --mode=desktop --frontend=DistUpgradeViewText", not "./hardy --mode=server --frontend=DistUpgradeViewText" if you are running the desktop version. If you run --mode=server on the desktop version, the upgrade gets hopelessly lost in a labyrinth of dependency problems mostly involving python packages. Guess how I discovered that! (Note to self: next time, engage brain before running posted commands. )

    I must admit that this was not on a production system. Getting tired of the kneejerk "don't upgrade; do a fresh install" type posts that appear - I see that a couple have found their way into this thread - I've been doing some experimenting. Although I prefer to fresh install each release, the upgrades I have done have been successful. A recent working Jaunty all the way to a working Natty encouraged me to start where Ubuntu started - with the Warty Warthog. But I got stuck at Dapper. Many thanks once again.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  10. #10
    Join Date
    Jul 2010
    Beans
    3

    Re: How to upgrade post-end-of-life Dapper to Hardy

    This sounds like baloney. Does it really work, what you suggested?

    Here's what I've found so far:

    https://answers.launchpad.net/ubuntu...uestion/166342

    https://answers.launchpad.net/ubuntu...question/62184

    https://bugs.launchpad.net/ubuntu/+s...er/+bug/810344

    ---

    It's Oct 2011 -- Now that 6.06 LTS AND 8.04 3 LTS have gone into EOL, the upgrade is anything but smooth. The problem is (1) that the /etc/apt/sources.list must be changed from us.archive.ubuntu.com to old-releases.ubuntu.com and (2) that the upgrade process rewrites the apt/sources.list file, removing the "old-releases" changes that you made !! The result is a half-done upgrade that can't find apt files because they no longer exist at us.ubuntu, but instead exist at old-releases.ubuntu. Canonical should have NEVER moved those sources from us. to old-releases. Launchpad has https://answers.launchpad.net/ubuntu...question/62184 and https://answers.launchpad.net/ubuntu...uestion/166342

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •