How to install VirtualBox on Ubuntu 20.04 and 22.04, with USB 2.0 and 3.0 extension support included. VirtualBox is a widely used software for testing, allowing you to run multiple operating systems such as Windows, macOS, Linux, OpenSolaris, and Solaris.
If you want always to get the latest versions of VirtualBox when available, run the commands below to add your public keys and system repositories.
Experience Seamless Virtualization on Ubuntu 20.04/22.04 with VirtualBox
Step 1. Add VirtualBox repository to Ubuntu 20.04
The repository only needs to run on Ubuntu 20.04, if you are on Ubuntu 22.04 then skip this step.
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 -
After the above public keys, run the commands below to add the VirtualBox package repository on Ubuntu Linux.
sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
Step 2. Download and install Oracle VM VirtualBox
With Ubuntu 20.04:
If the current VirtualBox version is still at 6.1.x, run the commands below. If a new version is available, simply replace version 6.1 in the command below with the latest version.
sudo apt update
sudo apt install virtualbox-6.1
With Ubuntu 22.04, 22.10:
Just run the VirtualBox command and it will install the latest version on the system. Or you can also install custom versions like:virtualbox-6.1
sudo apt update
sudo apt install virtualbox
After successful installation, open the search menu and find VirtualBox or run the VirtualBox command from the terminal.
Step 3. Install Oracle VM VirtualBox Extension Pack
The Oracle VirtualBox extension provides valuable enhancements to the platform, including support for USB 2.0, 3.0
devices, RDP, encryption, and more. You should always install the extension pack after installing VirtualBox.
Open VirtualBox and click Help -> About VirtualBox… to see the version. Then open the browser and access the link: https://www.virtualbox.org/wiki/Downloads select All supported platforms and download the Pack file as shown below.
— Link Extension Pack Old: https://www.virtualbox.org/wiki/Download_Old_Builds_6_1
Note: Select the correct VirtualBox Extension Pack for your version.
Click on the downloaded file and click Install, scroll down and select “ I Agree ” to confirm and install.
Above are 3 steps on how to install VirtualBox on Ubuntu 20.04, 22.04 and 24.04 comes with an extension to support VirtualBox. When successfully installing VirtualBox, it says successfully as shown in the picture, you can start installing the operating systems you want on VirtualBox.