Thursday, November 6, 2008

How to update Ubuntu Server from command line

  1. First you need to update /etc/apt/sources.list. Just open it up with your favorite editor
    sudo vi /etc/apt/sources.list
  2. Since I was using 5.10, at the end of all the URL’s it should say ‘breezy’. You need to change all of these to ‘edgy’. Write the file out and quit.
  3. Next, we need to update the source list by using the following command
    sudo apt-get update
  4. To upgrade to the new distro, just enter dist-upgrade!
    sudo apt-get dist-upgrade
  5. It will ask you if you want to update all of these packages, just say yes. Also, I had a few times that I had to hit ‘OK’ to confirm some postfix stuff. Since im not running any mail services, I dont need to set this up. Just keep an eye on the update since these messages delay the update.
  6. You may have to force some installs/updates. If so (I had to do this), just enter
    sudo apt-get -f install
  7. Once the upgrade is complete (it took mine forever since I was also downloading a trial game AND cygwin), restart your machine
    sudo shutdown -r now
  8. Done!
Credits go to Jon (http://crazytrain.wordpress.com/)

No comments: