Ubuntu server doesn’t have GUI, unless you installed it. So here’s how you update the server using the command line
$ sudo apt-get update
This refreshes the update list and the following actually pulls to cache and installs it. It certainly is a long process – so choose a weekend time to be doing this.
$ sudo apt-get dist-upgrade
Just to be on the safer side, do a restart once everything gets alright.