0

I have a virtual private server that runs the out-of-date Ubuntu 10.10. I'd like to upgrade to 12.04 LTS.

Currently apt doesn't work on this box, and the command do-release-upgrade is not found.

There is nothing on this VPS that I need to save, I'm OK with wiping it clean and installing 12.04, but I don't know how to do that when my only access is to a terminal remotely.

Eric Wilson
  • 1,016

1 Answers1

1

I'm not sure how would one go about wiping and reinstalling Ubuntu remotely, but you could try the following to upgrade remotely, without apt and do-release-upgrade.

  1. Download the "Alternate CD" for 12.04.3 LTS server edition using:

    For 64-bit:

    wget http://releases.ubuntu.com/precise/ubuntu-12.04.3-alternate-amd64.iso
    

    For 32-bit:

    wget http://releases.ubuntu.com/precise/ubuntu-12.04.3-alternate-i386.iso
    
  2. Mount it to /media/cdrom using:

    sudo mount -o loop ubuntu-12.04.3-alternate-amd64.iso /media/cdrom
    
  3. Run the following command to start the upgrade:

    sh /media/cdrom/cdromupgrade
    

    Or, if you're not root:

    gksu "sh '/media/cdrom/cdromupgrade'"
    

Note 1: I don't know if it's possible to directly upgrade from 10.10 to 12.04. I think you'll need to go through the releases in between, one by one.

Note 2: I haven't tried the above steps before, so I'm not sure if it will work. But according to this: PreciseUpgrade, it should. The steps there indicate to mount the .iso file to "the exact name of the CD", but I'm not sure what the exact name of the CD is on 10.10.

Alaa Ali
  • 32,213