Install / Upgrade:
Method 1: The official download page provides the DEB packages. Double-click on the DEB and then you can click the install button in pop-up Ubuntu Software Center.
Method 2: You can also install virtualbox from its repository and receive updates by running the commands below one by one:
Press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run:
- sudo sh -c ‘echo “deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib” >> /etc/apt/sources.list.d/virtualbox.list’
- wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add –
- sudo apt-get update
- sudo apt-get install virtualbox-4.3
The first command will add the virtualbox repository to your system, and the second will download and import the key. After that, you’re able to install or upgrade virtualbox-4.3 via your package manager or via the last 2 commands.
Source : http://ubuntuhandbook.org/index.php/2014/02/install-virtualbox-4-3-8-ubuntu/