How to Install VirtualBox in Debian and Ubuntu

Terminal commands for installing VirtualBox in Debian or Ubuntu based systems.

Use with my Youtube Video: https://youtu.be/_l6ySKXa5VU/

For Debian / Ubuntu
echo  "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib non-free #Virtualbox" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt update
sudo apt install virtualbox-6.0
if [ "`grep vboxusers /etc/group|grep $USER`" == "" ]; then sudo usermod -G vboxusers -a $USER ; fi
Extension Pack

Download the VirtualBox Extension Pack from: https://www.virtualbox.org/wiki/Downloads
Open the Extension Pack via your file manager in order to install it with VirtualBox.

Back