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


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.

| improve this answer | |
  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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