Updating ubuntu command line
Failing that, ensure that you have copies of user home directories, any custom configuration files, and data stored by services such as relational databases.
On a Digital Ocean Droplet, the easiest approach is to power down the system and take a snapshot (powering down ensures that the filesystem will be more consistent).
This tutorial is going to show you 2 ways to upgrade from Ubuntu 16.04/17.04 to Ubuntu 17.10: using the graphical update manager and using the command line.
First of all, fire up a terminal window and run th following command to update existing software packages.
If you are using Ubuntu 17.04, you will be notified that software is up-to-date and Ubuntu 17.10 is now available. If you are using Ubuntu 16.04, you will be notified that software is up-to-update and Ubuntu 17.04 is now available. You need to upgrade to Ubuntu 17.04 first and then follow the same steps to upgrade to Ubuntu 17.10. If you are notified that some third-party sources are disabled, accept it.
This is due to the fact that Ubuntu 17.04 is still being supported by Canonical and hasn’t reached end-of-life yet. You can re-enable them after the upgrade is finished.
Update: Ubuntu 17.04 reached end-of-life on January 13, 2018. Once the upgrade is complete, restart your computer.
To avoid these problems, when possible, we recommend migrating to a fresh Ubuntu 16.04 server rather than upgrading in-place.Update: Ubuntu 17.04 reached end-of-life on January 13, 2018.Ubuntu 16.04 users can now upgrade directly to Ubuntu 17.10.For virtual machines or managed servers hosted by other providers, you should keep in mind that losing SSH connectivity is a risk, particularly if you don't have another means of remotely connecting to the system's console.For other systems under your control, remember that it's safest to perform major operating system upgrades only when you have direct physical access to the machine.