To install VirtualBox on a Debian-based Linux system, you can use the following steps:
- Add the Oracle VirtualBox repository to your system’s repository list:
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
- Download and add the Oracle public 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 -
- Update the package index:
sudo apt update
- Install VirtualBox:
sudo apt install virtualbox-6.1
Replace 6.1
with the desired version of VirtualBox if necessary.
- Once the installation is complete, you can start VirtualBox from the applications menu or by running the following command:
virtualbox
This will open the VirtualBox graphical user interface, where you can create and manage virtual machines.