We can download and install the Oracle VirtualBox on ubuntu 20.04. you will also need to install the extension pack for VirtualBox in ubuntu. Let’s see, how to install VirtualBox 6.1 on ubuntu 20.04/18.04.
Oracle VirtualBox is an open-source software where you can install operating systems when you don’t have enough hardware configuration on your machine. you can use it to install different OS and use them according to your need.
This is a freeware software. No need to worry about the license. This will be installed on the running OS and inside it, you can install multiple OS.
How To Install Oracle VirtualBox On Ubuntu 20.04 /19.10
We need to add some packages for Virtualbox to get install on ubuntu 20.04. you can use the following commands.
sudo apt update sudo apt upgrade -y sudo apt-get install gcc make linux-headers-$(uname -r) dkms
Import the Oracle Public key with the below command and both the command should give you the “OK” output.
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
Once the public keys are imported. We will add the repository. if you have a ubuntu 20.04, the command will print the “focal“.
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee -a /etc/apt/sources.list.d/virtualbox.list
Update the repository again and install the Virtualbox.
sudo apt update sudo apt install virtualbox-6.1
Once the installation is finished, we need to install and download the Extension Pack for Virtualbox with the following commands.
sudo wget https://download.virtualbox.org/virtualbox/6.1.8/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
When the package downloaded, import the Extention using the below commands.
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
Do you agree to these license terms and conditions (y/n)? y License accepted. For batch installation add --accept-license=56be48f923303c8sdsdsabb0bb4c478284b688ed23f16d775d729b89a2e8e5f9eb to the VBoxManage command line. 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully installed "Oracle VM VirtualBox Extension Pack".
We can open the VirtualBox by typing “VirtualBox” or click on “Activities” -> search for “Oracle VirtualBox“.
If you get the message “Extension pack old version“, you can click on “Download” and it will start downloading the latest version from the official website.
Once downloaded, Click on “Install“.
Accept the terms and conditions then click on “I Agree”.
Now the Extension is installed and click on "OK".
You can start using VirtualBox.