Command Line Upgrade:
To upgrade from Ubuntu 10.04 LTS on a server system to Ubuntu 12.04 LTS:
1- install the update-manager-core package if it is not already installed:
sudo apt-get install update-manager-core
2- Launch the upgrade tool with the command
sudo do-release-upgrade -d
and then follow the on-screen instructions, good luck!