sudo aptitude update && sudo aptitude --assume-yes safe-upgrade
Assuming you have an active network connection at this time, this will download and install pending updates. If prompted for password, enter the password you use to login to ubuntu.
Update: Ubuntu maverick users may not have aptitude installed by default. To install aptitude, run the following command.
sudo apt-get install aptitude