First the normal update
sudo apt-get update && sudo apt-get upgrade

Upgrade your firmware:

sudo apt-get -y dist-upgrade

And:

sudo rpi-update