Developed by Oracle Corporation, VirtualBox is a free and open-source virtualization product. It facilitates us in running multiple operating systems on our existing computer. These multiple operating systems run inside Virtual Machines. By using Virtual Machines, we reduce costs incurred on infrastructure. Also, we can do a lot of testing without breaking our host operating system. We can make use of VirtualBox extension packs or VirtualBox Guest Additions for extended functionality like support for USB devices, better user experience, remote desktop protocol support etc. The product was first released on January 17, 2007. In this article, we would discuss how to install VirtualBox in Debian Buster.
Debian Buster has finally released on July 06, 2019. But, those who have been using VirtualBox all along could be in for a surprise as the application gets removed after the update. Previous repository entry for the Debian Stretch wouldn’t come to the rescue.
So, if you would like continue using the application even in Debian Buster then you will have to make couple of changes.
Install VirtualBox in Debian Buster
Login as superuser/root to start with the installation process. If you don’t have the privileges then, it is best to contact your system administrator for assistance. To login as superuser, run the following in terminal and authenticate yourself –
First, we have to download the .deb package (virtualbox-6.0_6.0.14-133895~Debian~buster_amd64.deb) from the official website of VirtualBox. This is the latest stable release available at the time of writing the article.
We would now install the package through dpkg (Debian Package Manager). Once the package gets downloaded, head to the directory where it is saved through cd command-line utility.
cd /path/to/package/ dpkg -i virtualbox-6.0_6.0.14-133895~Debian~buster_amd64.deb
We may encounter following error –
The distribution packages containing the headers are probably: linux-headers-amd64 linux-headers-X.XX.X-X-amd64
Under such a scenario, we need to install relevant packages –
apt install linux-headers-amd64 linux-headers-X.XX.X-X-amd64
X – replace it with applicable version number.
Now, again we need to issue the following to complete the installation process (if you didn’t get the error, then this step isn’t required) –
dpkg -i virtualbox-6.0_6.0.14-133895~Debian~buster_amd64.deb
In conclusion, we have learnt how to install VirtualBox in Debian Buster. If you are looking to install VirtualBox on Debian Stretch then follow the link.