xxxxxxxxxx
sudo apt update && apt upgrade // First update and upgrade your system
sudo apt-get install virtualbox -y
sudo apt-get install virtualbox virtualbox-dkms
xxxxxxxxxx
sudo apt update && sudo apt upgrade
sudo reboot
sudo apt install linux-headers-$(uname -r) dkms
sudo apt-get install virtualbox-6.1