(Last Updated On: March 2, 2018)
Welcome to our guide on how to How to install Virtualbox Latest on Ubuntu and Kali Linux. VirtualBox allows you to run more than one operating system at a time. This way, you can run software written for one operating system on another (for example, Windows software on Linux or a Mac) without having to reboot to use it.
Virtualbox
Since you can configure what kinds of “virtual” hardware should be presented to each such operating system, you can install an old operating system such as DOS or OS/2 even if your real computer’s hardware is no longer supported by that operating system.
Other virtualization platforms are Vmware and KVM on Linux.

Virtualbox allows you to:  

  1. Running multiple operating systems simultaneously. VirtualBox allows you to run more than one operating system at a time. 
  2. Testing and disaster recovery. Once installed, a virtual machine and its virtual hard disks can be considered a “container” that can be arbitrarily frozen, woken up, copied, backed up, and transported between hosts.
  3. Infrastructure consolidation. Virtualization can significantly reduce hardware and electricity costs. Most of the time, computers today only use a fraction of their potential power and run with low average system loads.

Here is a short tutorial on installing latest VirtualBox 5.x on Ubuntu, Kali Linux 2.0 and any other Debian derivative.

Install VirtualBox on Debian 9

To install VirtualBox on Debian 9 from its apt repositories, add the following line to /etc/apt/sources.list.d/virtualbox.list file.
1.) Adding Virtualbox Debian repositories
echo "deb http://download.virtualbox.org/virtualbox/debian stretch contrib" >> /etc/apt/sources.list.d/virtualbox.list

For Debian 8, add:

echo "deb http://download.virtualbox.org/virtualbox/debian jessie contrib" >> /etc/apt/sources.list.d/virtualbox.list

For Ubuntu 16.04 LTS, add:

echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list

Downloading and adding repo 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 -

Do system update to update repos.

$ sudo apt-get update

Install VirtualBox Latest by typing.

$ sudo apt-get install virtualbox
Also, ensure that dkms is installed, dkms is a framework which allows kernel modules to be dynamically built for each kernel on your system in a simplified and organized fashion.
$ sudo  apt-get install dkms
That’s all and you have latest VirtualBox. Subscribe to get updates.
> How to install VirtualBox on Kali Linux
> How to install VirtualBox on Ubuntu
> Installing latest virtualbox on Linux
> virtualbox installation on Debian and it’s derivatives.