You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

In this guide, we will look at how to install the latest release of VirtualBox 6.1 on Ubuntu 20.04/18.04 and Debian 10 / Debian 9. VirtualBox is a powerful,feature-rich, high-performance and open source x86 and AMD64/Intel64 virtualization solution for both home users and enterprise.

VirtualBox is licensed under the terms of the GNU General Public License (GPL) version 2 and it runs on Linux, macOS, Windows, e.t.c. There are two ways to install VirtualBox on Ubuntu & Debian. One method is using upstream repositories, and the other is from a .deb package.

Install VirtualBox 6.1 on Ubuntu 20.04/18.04 & Debian 10/9

To get the latest release of VirtualBox on your Ubuntu 20.04/18.04 & Debian 10/9 system, the recommended way of installation is from apt repository. Follow steps below to have the latest VirtualBox installed on your Ubuntu 20.04/18.04 and / Debian 10/9.

Step 1: Import apt repository

Add repository key:

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 -

Step 2:  Add the VirtualBox repository

After importing the key, you can add the repository to the system using the command:

Ubuntu 20.04:

echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian eoan contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Ubuntu 18.04/16.04 & Debian 10/9:

echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Step 3:  Install VirtualBox & Extension pack

Finally, install VirtualBox & Extension pack on your Ubuntu 20.04/18.04 / Debian 10/9 system by running the commands:

sudo apt update
sudo apt install linux-headers-$(uname -r) dkms
sudo apt-get install virtualbox-6.1

Download Extension Pack:

cd ~/
wget https://download.virtualbox.org/virtualbox/6.1.6/Oracle_VM_VirtualBox_Extension_Pack-6.1.6.vbox-extpack

You can also download it manually  https://www.virtualbox.org/wiki/Downloads

Once the file is downloaded, install the extension pack by clicking on the Downloaded file.

Step 5: Launching VirtualBox 6.1 on Ubuntu / Debian

Once VirtualBox is installed, you can launch it using the terminal or Desktop applications search.

From terminal, use:

$ virtualbox

The new user interface for VirtualBox interface looks like below:

You should now have the latest version of VirtualBox installed on your Ubuntu 20.04/18.04 & Debian 10/9 system.

More guides:

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF