Skip to content

Instantly share code, notes, and snippets.

@181192
Created August 12, 2018 20:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 181192/6d9510668bb5ae7e196d046a843dce75 to your computer and use it in GitHub Desktop.
Save 181192/6d9510668bb5ae7e196d046a843dce75 to your computer and use it in GitHub Desktop.
Installing VirtualBox-5.2

1: Add VirtualBox Repository Key

To add the repository key, run the commands below:

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 -

2: Add VirtualBox Repository

To add the repository to Ubuntu system run:

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

3: Installing VirtualBox

You may want to remove older versions of VirtualBox if you're still running it.

sudo apt remove virtualbox virtualbox-5.1

VirtualBox requires some packages, to install them run:

sudo apt update
sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms

Finally, run:

sudo apt update
sudo apt-get install virtualbox-5.2

It's recommended to install the extention pack for some extra features like copy pasting between host and VM.

sudo apt install virtualbox-ext-pack
@CppKingAlan17
Copy link

nice im an sr game engine dev and elite hacker
c++ sr game engine dev
and an elite hacker thanks but i want it for Google cloud console to work pls make one for me in bash or python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment