To install VirtualBox 6.1.30 on Ubuntu 20.04 LTS, follow these steps:
- First, uninstall any previous versions of VirtualBox:
sudo apt-get remove virtualbox virtualbox-dkms virtualbox-xtables virtualbox-x11
- Download the VirtualBox 6.1.30 .deb package from the official website:
wget https://download.virtualbox.org/virtualbox/6.1.30/VirtualBox_6.1.30_64372_Ubuntu_bionic.deb
- Install the downloaded package:
sudo dpkg -i VirtualBox_6.1.30_64372_Ubuntu_bionic.deb
- Install the necessary dependencies:
sudo apt-get install -f
- Start the VirtualBox service:
sudo systemctl start virtualbox
- Enable the VirtualBox service to start automatically at boot:
sudo systemctl enable virtualbox
- Install the VirtualBox Guest Additions:
VBoxManage configdrive list
sudo VBoxManage guestadditions install --drive
- Restart the guest to load the Guest Additions:
sudo reboot
Summary
- Uninstall any previous versions of VirtualBox
- Download the VirtualBox 6.1.30 .deb package
- Install the downloaded package and its dependencies
- Start and enable the VirtualBox service
- Install the VirtualBox Guest Additions and restart the guest
References
- VirtualBox 6.1.30 for Ubuntu bionic: https://download.virtualbox.org/virtualbox/6.1.30/VirtualBox_6.1.30_64372_Ubuntu_bionic.deb
- Installing VirtualBox on Ubuntu: https://www.howtoforge.com/tutorial/how-to-install-virtualbox-on-ubuntu-20.04-focal-fossa-lts/
- Installing Guest Additions: https://www.virtualbox.org/manual/ch04.html#guest-additions-installation-linux