To update your Ubuntu system, you can first run this command:

sudo apt-get update

This command will resynchronize the package files from their sources. Basically, this command gives you a list of available packages and their locations.

Next, you can perform either of the two commands below:

sudo apt-get upgrade sudo apt-get dist-upgrade