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.


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.


sudo bash -c 'echo "deb $(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 -O- | sudo apt-key add -

Ubuntu 16.04 / newer

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

Step 4 – Install VirtualBox


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.