To install VirtualBox on Ubuntu 20.04 LTS, follow these steps:
- Add the VirtualBox repository to your system by running the following command in the terminal:
sudo add-apt-repository "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian focal contrib"
- Download and add the Oracle public key for apt-secure using the following command:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
- Update the package list and install VirtualBox with the following command:
sudo apt-get update && sudo apt-get install virtualbox-6.1
- To run VirtualBox, type
virtualbox
in terminal or search VirtualBox in the Ubuntu Dash.
Note: If you encounter any issues with the above commands, make sure that you have enabled the universe repository in Ubuntu, because the package might not be available in the default repositories.