Upgrading Ubuntu Linux is just as easy as installing a new package. Simply run these commands, and your system will be updated:
sudo sed ’s/hoary/dapper/g’ /etc/apt/sources.list > /etc/apt/tmp && mv /etc/apt/tmp /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y dist-upgrade