First, you need to add the repo:
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian lucid contrib"
Replace the distro by the one you are using; check availability first by visiting the ftp site .
Before installing, add the vbox.asc Key:
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
Finally, install via “apt-get update” and “apt-get install virtualbox”, which will let you choose the available versions of the software. Enjoy ๐
Thanks .. ๐