Possible Duplicate:
Updating Ubuntu server from 8.10 to 10.04

I'm using ubuntu 8.10 as my server. This is old server but now I want to upgrade to 12.04

Few website are hosted in this server. Now my question is if I upgrade this server to latest did I'll lost my data. PHP and mysql is running on this server.

When I run apt-get update It show me errors:


marked as duplicate by ish, Eliah Kagan, Uri Herrera, jokerdino, fossfreedom Aug 22 '12 at 11:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    you'll have to upgrade in stages. first to 10.04. see the question ixz posted for more info. – adempewolff Aug 22 '12 at 7:07

Here is how I would procede, given that this is not a production server that needs to be available at 99% time. In general, I would install 12.04 from scratch on another partition and see whether the new setup works. The problem with updates between an ancient and modern release is that you can break a working system without getting the desired outcome. The problem with step-wise upgrade is (i) the more steps, the more opportunity for something to go wrong (ii) takes a lot of time.

  1. Backup your data and system configuration.
  2. Make sure the backup has worked (this is an often neglected step...)
  3. Make sure that all your data are on a separate partition.

    If your data are on the same partition as the system, then you need to resize it, create a new partition for the data only, move your data to this partition, create links and fstab entries such that the new partition is mounted in the correct place and that your system works as before.

  4. Create an extra partition for the new system (12.04) without destroying the previous system.

  5. Install 12.04 to the new partition. Mount your data partition, create symbolic links if necessary. Find out whether the new system works, tune it etc.
  6. If the new system works, keep it. Otherwise boot to the old system, and go to askubuntu.com with a new question.

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