Monday 6 July 2015

Upgrading Ubuntu server 10.04 to 12.04

Had to upgrade our admin vm from Ubuntu server 10.04 to 12.04 today. Found THESE instructions on the web:

To get started, press Ctrl – Alt – T on your keyboard to open the Terminal. When it opens, run the commands below to install update-manager-core if isn’t already installed.

sudo apt-get install update-manager-core

update_to-precise-from-10_3

Next, run the commands below to open update-manager’s release upgrade file.
sudo vi /etc/update-manager/release-upgrades

update_to-precise-from-10

Then, change the line with prompt in the file to prompt=lts if it’s not already set to lts. To change it, scroll down to the line press the X key on the keyboard to delete each character. Then hit the I key and begin typing the new line. When you’re done, press Esc key, then type :wqto save and exit.
Next, run the commands below to update all packages installed before you upgrade.
sudo apt-get update && sudo apt-get upgrade & sudo apt-get autoremove

Finally, run the commands below to begin the upgrade process.
sudo do-release-upgrade

update_to-precise-from-10_5

When ask if you want to continue with the upgrade, type Y for yes.

Enjoy!

No comments:

Post a Comment