How-To Guides and Blog

How to Install VirtualBox on Ubuntu and Debian

NBH Support
No Comments

In this tutorial, you’ll learn how to install VirtualBox on Ubuntu(14.04,16.04,17.10), Debian(7/8/9).

Step 1 – Update your System

Make sure your system is up to date, run the commands below to update it.

Ubuntu/Debian

sudo apt-get update
sudo apt-get upgrade

Step 2 – Add VirtualBox PPA

After updating your system, you need to add virtualbox repository to your system.

Ubuntu/Debian

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

Step 3 – Import Orace Virtualbox keys

Next, you need to import oracle virtual box keys to your system, import keys via commands below.

Ubuntu 14.04

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

Ubuntu 16.04 / newer

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

Step 4 – Install VirtualBox

Ubuntu/Debian

sudo apt-get update
sudo apt-get install virtualbox-5.2

Add vboxusers group to your username

sudo usermod -a -G vboxusers $USER

Run VirtualBox

That’s it! Now you can launch VirtualBox via dashboard menu, or via terminal via the command below.

virtualbox

virtual-box-ebblr-1