Let’s see how to install Virtualbox on kali linux, First, you need to download the virtual box and install a pre-requisite, visit the virtual box’s download page and download from Linux distributions as shown below,
Step-1: Download the Virtualbox
Choose from a latest debian version, (debian9-stretch), and i386 for 32-bit & amd64 for 64 bit computer.
Step-2: Install the dpkg setup
Once the download is complete, let’s try to install it,
dpkg -i virtualbox-5.2_5.2.18-124319_Debian_stretch_amd64.deb
You are likely to have this issue, package libcurl3 is not installed.
Now, to fix this problem you need to install libcurl3, but you need to have them inside the sources link of our kali linux, which we don’t have. So we need to update our resources with debian9(stretch) based resources.
Add the following to /etc/apt/sources.list in the bottom of the file.
deb http://deb.debian.org/debian stretch main deb-src http://deb.debian.org/debian stretch main deb http://deb.debian.org/debian-security/ stretch/updates main deb-src http://deb.debian.org/debian-security/ stretch/updates main deb http://deb.debian.org/debian stretch-updates main deb-src http://deb.debian.org/debian stretch-updates main
source: https://wiki.debian.org/SourcesList
Step-3: Install libcurl3
You will be prompted to download about 600+Mb of installation data when you do `apt-get install libcurl3`, give a yes and wait for sometime for the installation.
apt-get update apt-get install libcurl3
Step-4: Finally, reattempt the installation
Finally, let’s install the virtualbox dpkg -i virtualbox-5.2_5.2.18-124319_Debian_stretch_amd64.deb
This will take sometime to install, wait for it & verify if the install was successful by launching it, Please let me know if you run into any issues with your debian linux distro.