Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a VPS that has Ubuntu 8.10 Server Edition installed on it and I would like to upgrade it to 10.04. What would be the correct way of doing this? I only have ssh access to it and a "Start/Shutdown VPS" in the client panel of the vendor. In other words, I do not have physical access to it.

Also worth noting is that I apparently cannot install programs any more since the sources (osuosl.org ?) are not online. Not the ones this server has set anyway.

# apt-get update
Ign http://ubuntu.osuosl.org intrepid Release.gpg
Ign http://ubuntu.osuosl.org intrepid/main Translation-en_US
Ign http://ubuntu.osuosl.org intrepid/universe Translation-en_US
Ign http://ubuntu.osuosl.org intrepid Release
Ign http://ubuntu.osuosl.org intrepid/main Packages
Ign http://ubuntu.osuosl.org intrepid/universe Packages
Err http://ubuntu.osuosl.org intrepid/main Packages
  404 Not Found
Err http://ubuntu.osuosl.org intrepid/universe Packages
  404 Not Found
W: Failed to fetch http://ubuntu.osuosl.org/ubuntu/dists/intrepid/main/binary-amd64/Packages.gz  404 Not Found

W: Failed to fetch http://ubuntu.osuosl.org/ubuntu/dists/intrepid/universe/binary-amd64/Packages.gz  404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
share|improve this question
    
I was just about to answer you should use a CD to upgrade to the next LTS, when I saw you were talking about a Virtual Private Server ;-) Good question, +1. –  Stefano Palazzo Jan 19 '11 at 13:18
    
I'll add specifically that I don't have pyshical access to it :) –  Ward Muylaert Jan 19 '11 at 13:22

3 Answers 3

up vote 5 down vote accepted

Ok, I managed to get it solved using wojox' tip as a kickstart.

  1. The main issue was the inability to access the repos and thus run a proper upgrade. This is resolved by editing /etc/apt/sources.list and changing every occurance of intrepid into jaunty. You can do this manually or use wojox' oneliner (which requires perl to be installed). Note that we assume that the jaunty repos are still up, which they were at the time of writing.

    sudo perl -p -i.intrepid -e 's/intrepid/jaunty/' /etc/apt/sources.list
    

    Note - Ubuntu provides mirrors to old releases: https://help.ubuntu.com/community/EOLUpgrades/Intrepid

  2. Update the package list

    sudo apt-get update
    
  3. Install update-manager-core

    sudo apt-get install update-manager-core
    
  4. Run do-release-upgrade which will handle the update to the next version properly (and make sure being on ssh is not a hindrance). Keep in mind that although we changed the source list earlier, we are still on the version we started out. So in my case, I had to do step 4 three times. Be sure to reboot between each upgrade. Note that in case of doubt on your current Ubuntu version, you can always issue

    cat /etc/issue
    
share|improve this answer

I haven't tried this, but it may be possible, instead of doing a manual upgrade, to switch your /etc/apt/sources.list from using "http://*archive.ubuntu.com/ubuntu/" to using "http://old-releases.ubuntu.com/ubuntu/". Then try the normal path of using do-release-upgrade. The updater will likely complain that you're not using an "official mirror", but go ahead with it. Once you're at 9.04, you can switch the sources.list back to the official mirrors and upgrade to 9.10 and continue normally, maybe.

I am worried that do-release-upgrade will just bomb out since it doesn't know about the EOL releases at all.

share|improve this answer

It may not work because you you have to go in chronological order. 8.10 > 9.04 > 9.10 > 10.04 and 9.04 is EOL as well.

sudo perl -p -i.intrepid -e 's/intrepid/jaunty/' /etc/apt/sources.list
share|improve this answer
    
That would be a bit of a bummer, do things have to go chronologically? –  Ward Muylaert Jan 19 '11 at 15:09
    
I just checked and jaunty is still there ubuntu.osuosl.org/ubuntu/dists/jaunty –  wojox Jan 19 '11 at 16:09
1  
Upgrades must be done in order unless you are going from LTS release to LTS release. If you had been on 8.04 LTS you could have upgraded directly to 10.04 LTS. –  Ramón Jan 19 '11 at 16:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.