The proper way to install virtualbox on Ubuntu Linux

 sudo apt-get install -y dkms linux-headers-generic

wget -q -O- | sudo apt-key add –

For Ubuntu 14.04

sudo sh -c 'echo "deb trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 13.10

sudo sh -c 'echo "deb saucy contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 13.04

sudo sh -c 'echo "deb raring contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 12.10

sudo sh -c 'echo "deb quantal contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 12.04

sudo sh -c 'echo "deb precise contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 11.10

sudo sh -c 'echo "deb oneiric contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 11.04

sudo sh -c 'echo "deb natty contrib" >> /etc/apt/sources.list.d/virtualbox.list'

Once you added the repo using the above command, Update your repository.

sudo apt-get update && sudo apt-get install -y virtualbox-4.3

Leave a Reply