Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 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 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 at 16:50

3 Answers 3

up vote 36 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:

Prompt=lts

to:

Prompt=normal

for the release to show up.

share|improve this answer

You can do

sudo do-release-upgrade

for command line updating

(This is actually the same as for Ubuntu Server)

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:

ssh USER@HOST

screen -S upgrade

sudo do-release-upgrade -d

open a new terminal on client computer:

ssh -p PORT USER@HOST

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 at 4:27

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