If you want to upgrade, not install a fresh system off of a DVD or USB device, you can use this method suggested on the #ubuntu+1 IRC channel:
- sudo sed -i 's/quantal/raring/' /etc/apt/sources.list
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo do-release-upgrade -d