This post shows users and new students that how to Install and Update VirtualBox on Ubuntu 18.04 | 20.04. If your are going to Install and Update VirtualBox on Ubuntu 18.04 | 20.04 then this post is ideal for you.
VirtualBox is cross-platform and open-source software for virtualizing the x86 computing architecture. By creating a virtual machine where you can run another Operating System.
In simple words VirtualBox is a software that allows you to install or run multiple guest virtual machines simultaneously on a single host computer.
By using VirtualBox software, you can use a single system as a “host” computer and in the VM software, you can create multiple guest computers.
Simply follow below steps for Install or Upgrade to VirtualBox latest software on Ubuntu :
Step 1: Add VirtualBox Repository
If you want to get latest version of VM when available then you need to add its software repository on Ubuntu
For add the repository key to your system Run the below commands :
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Now, run the below commands for adding VirtualBox package repository.
sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
When you run above command and its throw an error message saying :
“add-apt-repository command not found“
Then Install the software-properties-common package and try again with above command.
Step 2: Installing VirtualBox
Run the below commands for install the latest version of VM :
sudo apt update
sudo apt-get install virtualbox-6.1
After successfully installing of VM, go and lunch it from Activities overview.
Step 3: Install VirtualBox Extension Pack
After complete installing of VirtualBox you need to install its extension pack.
For Install VM Extension, open browser and browse with below link :
https://www.virtualbox.org/wiki/Downloads
When above link is opened, select the All supported platforms
Now select open with Oracle VM VirtualBox (default)
Then click on Install button.
After click on install button scroll down and accept the licensing terms and complete the installation process.
That’s all
If you find any error and issue in above steps , please use comment box below to report.