Update Ubuntu from the Command Line
2012-08-30
To update your Ubuntu using the command line or terminal, type:
sudo apt-get update
This will retrieve the new lists of packages, including any that were updated since you last ran the command. Next, run this command:
sudo apt-get upgrade
This will actually upgrade all the packages on your system that have an update available.