Todd Smith Org

June 23, 2009

Upgrade a running Ubuntu installation

Filed under: Server Technology,Unix Administration — admin @ 12:41 pm

This is what I had to do to upgrade a running installation of Ubuntu 7 to Ubuntu 8 on the fly.

mv /etc/apt/sources.list /etc/apt/sources.list-bak
vi /etc/apt/sources.list

Put the following lines in your sources.list file, save, and quit

#deb hardy main
deb hardy main restricted
deb-src hardy main restricted
deb hardy-updates main restricted
deb-src hardy-updates main restricted
deb hardy universe
deb-src hardy universe
deb hardy-updates universe
deb-src hardy-updates universe
deb hardy multiverse
deb-src hardy multiverse
deb hardy-updates multiverse
deb-src hardy-updates multiverse
deb hardy-security main restricted
deb-src hardy-security main restricted
deb hardy-security universe
deb-src hardy-security universe
deb hardy-security multiverse
deb-src hardy-security multiverse

Run the following,

apt-get update
apt-get dist-upgrade

Follow the prompts, and wallah! You're done!

Powered by WordPress