If you are running the server version of Ubuntu or choose to not use the GUI, you can upgrade Ubuntu to a newly released version through the command line apt-get utility.
Check that there is a new release available.
Make sure your current version isn’t too old to upgrade through packages.
Update and upgrade your apt-get modules:
# sudo apt-get update
# sudo apt-get upgrade
# sudo apt-get dist-upgrade