Skip to content

Instantly share code, notes, and snippets.

@yakhyadabo
Last active October 4, 2016 00:07
Show Gist options
  • Save yakhyadabo/b182e86444b1547a0d56eae93e21d523 to your computer and use it in GitHub Desktop.
Save yakhyadabo/b182e86444b1547a0d56eae93e21d523 to your computer and use it in GitHub Desktop.

Check VirtualBox version

vboxmanage -v

Cleand old version

sudo apt-get purge "^virtualbox-.*"
sudo apt-get update

Add Repo

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list'

According to your distribution, replace 'xenial' by 'vivid', 'utopic', 'trusty', 'raring', 'quantal', 'precise', 'lucid', 'jessie', 'wheezy', or 'squeeze'.

Add keys by downloading and registering:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Now install virtualbox 5.1

sudo apt-get update
sudo apt-get install virtualbox-5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment