How to Install VirtualBox on Ubuntu 20.04 | 18.04

If you want to install VirtualBox on the latest version of Ubuntu, then the post below should get you started.

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 -O- | sudo apt-key add -
wget -q -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] $(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.


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.




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.


You may also like the post below:


  1. ubuntu 20.04 virtualbox-6.1 Error dependency libvpx5 (>=1.6.0)

    1. Have you tried virtualbox-6.0, I hope that can be a good way.. to overcome this issue..

  2. jonathan battle

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

    1. Did you finally get it?

    2. You have to manually download from:

      and install with:
      sudo dpkg -i

  3. Hello
    newest virtualbox cannot run novell netware virtual PC
    as soon as the netware starts its graphic screen it crashes
    the 5.42 virtualbox worked fine

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.