Skip to content

Instantly share code, notes, and snippets.

@ralavay
Last active December 24, 2015 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralavay/6788204 to your computer and use it in GitHub Desktop.
Save ralavay/6788204 to your computer and use it in GitHub Desktop.
Install Virtualbox 4.2 in Ubuntu 12.04
#!/bin/bash
# The default version of VBox in Ubuntu partner repo is 4.1
# We need to add new repo to install newest version 4.2.x
# Add virtualbox repo
sudo apt-add-repository "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" -y
# Add Oracle public key
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
# Fetch database
sudo apt-get update
# Install virtualbox 4.2
sudo apt-get install virtualbox-4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment