How to Install VirtualBox on Ubuntu 20.04 | 18.04

This brief tutorial shows students and new users how to install VirtualBox virtualization software on Ubuntu 20.04 | 18.04.

VirtualBox is a cross-platform virtualization software that allows you to run multiple guest machines (virtual machines) simultaneously on a single host computer.

For example, in the past if you wanted to install five separate operating systems, you’ll need five computers each hosting a single OS.

With VirtualBox and similar virtualization software, you can use a single computer as a host computer. Then within the virtualization software, you can create multiple independent guest computers, each running its own operating system.

For more about VirtualBox, check its homepage.

VirtualBox software packages are available in Ubuntu multiverse repository. However, the packages in there might not be the latest versions.

To install or Upgrade to VirtualBox latest software on Ubuntu, do the steps below:

Step 1: Add VirtualBox Repository

If you want to always get the latest versions of VirtualBox when they become available, you’ll want to add its software repository to Ubuntu.

Run the commands below to add the repository key to your system.

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 adding the repository key above, run the commands below to add VirtualBox package repository.

sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"

If you get an error message saying:

add-apt-repository command not found

Install the software-properties-common package and try again.

After that, continue below to install VirtualBox.

Step 2: Installing VirtualBox

At this point, the Ubuntu system should be ready to install the latest version of VirtualBox.

At the time of this writing, the latest version of VirtualBox is at 6.1

To install the current latest, run the commands below:

sudo apt update
sudo apt-get install virtualbox-6.1

After installing, go and lunch the app by going to the Activities overview and searching for it… and opening it…

VirtualBox 6.1 Ubuntu Install

Step 3: Install VirtualBox Extension Pack

After installing VirtualBox, go and install its extension pack.

The extension pack provides useful enhancements to the platform, including support for USB 2.0 | 3.0 devices, RDP, encryption and many more.

Open your browser and browse to the link below, then select the All supported platforms.

https://www.virtualbox.org/wiki/Downloads

VirtualBox

When prompted, select to open with Oracle VM VirtualBox (default)

VirtualBox extension pack

Then click Install

VirtualBox extension pack install

Scroll down and accept the licensing terms and complete the installation…. when you’re done… you should have the latest version of VirtualBox installed after running the above commands… Now go to search for the package and launch it.

VirtualBox

Enjoy!

Conclusion:

You have successfully installed VirtualBox virtualization software on Ubuntu 20.04 | 18.04. If you find any error above, please use the comment form below to report.

Thanks,

You may also like the post below:

3 thoughts on “How to Install VirtualBox on Ubuntu 20.04 | 18.04

  1. Hi.
    I still cannot get this lib: libvpx5
    It should be somewhere in the U20.04.1 -related repos.
    But I can’t find it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.