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

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

share|improve this question

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
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
up vote 48 down vote accepted

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.

share|improve this answer

if you run the command 'sudo do-release-upgrade -d' through ssh then use a 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

share|improve this answer
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

You can do

sudo do-release-upgrade

for command line updating

(This is actually the same as for Ubuntu Server)

share|improve this answer

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