I would like to know how to upgrade from my current version of Ubuntu to the next stable from the Command line interface?

marked as duplicate by Amith KK, Mitch, Bruno Pereira Feb 18 '14 at 8:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The other answers doesn't address this question. – Braiam Feb 18 '14 at 15:58
  • 1
    Well, they do, but command line is only mentioned as "Run do-release-upgrade in a terminal", as it's that simple, after general steps ("take backups"). – Olli Feb 18 '14 at 16:50

You'll first need to make sure update-manager-core is present (it may already be installed):

sudo apt-get install update-manager-core

Next, run:

sudo do-release-upgrade

You may need to check /etc/update-manager/release-upgrades and change the line:




for the release to show up.

  • I have Ubuntu 17.10 installed. Apparently the update-manager-core package has been added to the core packages since the answer was given, as trying to install it yields the output update-manager-core is already the newest version (1:17.10.13)., and the command do-release-upgrade is available. However, giving this command on the command line produces the output No new release found., even though release 18.04 was released last week. (I do have the line Prompt=normal in file /etc/update-manager/release-upgrades.) – Teemu Leisti Apr 30 '18 at 12:03

If you run the command sudo do-release-upgrade -d through SSH then use a GNU Screen, because the upgrade process will turn off SSH -> close the default port and open a new one (it will inform you of this new port), so:


$ screen -S upgrade
$ sudo do-release-upgrade -d

open a new terminal on client computer:


$ screen -d
$ screen -r upgrade
  • 2
    sudo do-release-upgrade -d is for devel release If you want to do LTS to the next one just use: sudo do-release-upgrade without the "-d" switch – user228759 Feb 17 '14 at 4:27
  • As of Ubuntu 14.04 (and possibly ealier), do-release-upgrade now automatically creates a screen for you to make it easier to recover a failed upgrade. It also starts a secondary ssh server for the same reason. So this advice is no longer necessary. – Daniel Cassidy Aug 23 at 20:45

You can do

sudo do-release-upgrade

for command line updating

(This is actually the same as for Ubuntu Server)

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