Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

What is the proper way to upgrade Ubuntu chroot environment to a newer Ubuntu release? The chroot environment has been originally set up using debootstrap.

The proper way to upgrade a Ubuntu server is to use do-release-upgrade command.

Ubuntu is based on Debian. Debian can be upgraded by replacing the release name in /etc/apt/sources.list with the new release name and running apt-get update, apt-get upgrade and apt-get dist-upgrade.

Which one is the proper way to upgrade a Ubuntu chroot environment? What does do-release-upgrade do differently from the Debian way?

share|improve this question
up vote 3 down vote accepted

For the most part, do-release-upgrade is a wrapper around dist-upgrade with some additional functionality. As noted, it is the recommended official way to upgrade Ubuntu minimal/server installations. Unofficially, dist-upgrade after changing your sources.list often works just as well.

The difference is: using do-release-upgrade is recommended because it has the ability to handle system configuration changes sometimes needed between releases.

For an Ubuntu chroot, I suggest you stick with do-release-upgrade unless it keeps failing for some reason.

share|improve this answer

Well do-release-upgrade -d works also. Just download in a terminal:

sudo apt-get install update-manager-core 

and then:

share|improve this answer

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.