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

The official recommendation of Ubuntu is to use sudo do-release-upgrade to do an online upgrade from one version to the next. Historically many of my Debianite friends and myself have simply altered apt's sources.list and run apt-get dist-upgrade.

I follow Ubuntu's recommendations, but I've always wondered what the magic difference between these two processes is. What, exactly, does do-release-upgrade do, on say an upgrade from 9.04 to 9.10? (Examples from other releases welcome.)

share|improve this question
up vote 2 down vote accepted

do-release-upgrade is a Python script and it makes use of other Python files in /usr/share/pyshared/DistUpgrade. If you look at those, you'll get an idea what it's doing.

share|improve this answer
I checked, and unlike I was expecting, it's fairly self-documenting. There's a bundle of python scripts, and they do things like fix Xorg configs and changes the desktop theme for users. About the only relevant server thing I found was an apt autoinst fixup. – jldugger Apr 2 '10 at 5:32

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.