Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Will apt-get dist-upgrade do the exact same thing as running do-release-upgrade?

I'm currently running Ubuntu Server 11.04.

share|improve this question
up vote 14 down vote accepted

apt-get dist-upgrade will not carry out a release update, unless you modify /etc/apt/sources.list.

This command updates all installed packages and their dependency changes. If you combine running this command with appropriate changes to the /etc/apt/sources.list file, you can upgrade your version of Ubuntu.

do-release-upgrade will carry out a release update.

So for example, if you want to move from Ubuntu 11.04 to 11.10, you have 2 options:

  1. Change each occurence of the word "natty" in the /etc/apt/sources.list file to "oneiric" and run the command apt-get dist-upgrade
  2. Run the do-release-upgrade command.
share|improve this answer
Thanks Kenny! Appreciate your thorough response. – Kirk Ouimet Oct 19 '11 at 18:44
do-release-upgrade has some other cool features, like "--sandbox", which remounts your filesystems with aufs so that the upgrade can be rolled back! – Coops Oct 19 '11 at 20:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.