How to Install VirtualBox in Debian and Ubuntu

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

Use with my Youtube Video:

Terminal Commands
echo  "deb [arch=amd64] $(lsb_release -cs) contrib non-free #Virtualbox" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -q -O- | sudo apt-key add -
wget -q -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:
Open the Extension Pack via your file manager in order to install it with VirtualBox.