Upgrading from the command line? [duplicate]
I would like to know how to upgrade from my current version of Ubuntu to the next stable from the Command line interface?
43 Answers
You'll first need to make sure update-manager-core is present (it may already be installed):
sudo apt-get install update-manager-coreNext, run:
sudo do-release-upgradeYou may need to check /etc/update-manager/release-upgrades and change the line:
Prompt=ltsto:
Prompt=normalfor the release to show up.
4If 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:
$ ssh USER@HOST
$ screen -S upgrade
$ sudo do-release-upgrade -dopen a new terminal on client computer:
$ ssh -p PORT USER@HOST
$ screen -d
$ screen -r upgrade 3 You can do
sudo do-release-upgradefor command line updating
(This is actually the same as for Ubuntu Server)