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

How do I upgrade an older version of Ubuntu Server (Jaunty, for example) to a specific later version (Lucid, for example) using the command line?

I'm concerned that dist-upgrade is going to update to the latest, which is not LTS


  • has to be command line
  • our internal mirror has removed the Jaunty images
  • tried editing /etc/update-manager/release-upgrades to use only LTS versions, but it hangs. (trying to reach an outside server?)

Update: It seems Jaunty to Lucid is not possible (directly) ref, but my question was still for the more general case

share|improve this question

dist-upgrade does not technically perform a release upgrade. You're looking for the do-release-upgrade command. If you've got /etc/update-manager/release-upgrades set to prompt=LTS and the packages are available on your mirror it should work. If not, I would suggest verifying the packages on the mirror next.

share|improve this answer
In /etc/update-manager/release-upgrades (12.04) it reads "# normal ... the release upgrader will attempt to upgrade to the release that immediately succeeds the currently-running release." and a similar behavior is described for prompt=lts: "will attempt to upgrade to the first LTS release available after the currently-running one". So both should work according to this however when I run do-release-upgrade it tries to jump all the way up to 14.04 LTS, the current latest release :( – Jorge Orpinel Jun 25 '15 at 7:01

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.