How to Install VirtualBox on Ubuntu 22.04

VirtualBox is a free, cross platform and general-purpose virtualization tool that helps in accessing multiple operating systems on a single host. It is developed by Oracle corporation. Being a cross platform utility, VirtualBox can be obtained on Linux, Windows, and macOS.

This writeup will help you on how to install VirtualBox on Ubuntu 22.04.

Method 1: Install VirtualBox on Ubuntu 22.04 using Terminal

VirtualBox can be installed on Ubuntu 22.04 using the command line application. We have provided a set of procedural steps to install VirtualBox on Ubuntu 22.04 using terminal:

Step 1: Update system packages

To update the system’s package, run the following command:

$ sudo apt update

System’s repository is up to date now.

Step 2: Install the VirtualBox

To install the VirtualBox on Ubuntu 22.04, run the below-provided command:

$ sudo apt install virtualbox

VirtualBox is installed on Ubuntu 22.04.

Step 3: Launch VirtualBox

After the successful installation of VirtualBox, you can run it using the ‘virtualbox’ given as follows:

$ virtualbox

The VirtualBox is launched successfully.

How to remove VirtualBox from Ubuntu 22.04

If you don’t want to use VirtualBox on Ubuntu 22.04, you can remove VirtualBox from the Linux system. For this purpose, run the following remove command:

$ sudo apt remove virtualbox

VirtualBox was removed from Ubuntu 22.04 successfully.

Method 2: Install VirtualBox on Ubuntu 22.04 using Ubuntu Software Centre

VirtualBox can also be installed on Ubuntu 22.04 via Graphical-User Interface. Ubuntu Software Centre allows you to install various packages on Ubuntu 22.04. Follow the steps provided below to get VirtualBox from the app store of Ubuntu 22.04.

Step 1: Open the Ubuntu’s application store

Open the Ubuntu Software Centre from the Ubuntu dock as shown below:

Step 2: Search for VirtualBox

Search the VirtualBox in the search bar of the application store. There will appear the following interface.

Step 3: Install VirtualBox

For installing the VirtualBox, click on the “Install” in the following Window.

Enter the Password and click on Authenticate in the following pop-up window.

It will start the installation of VirtualBox and following interface will appear.

You can see that VirtualBox has been installed successfully on Ubuntu 22.04

How to Launch VirtualBox on Ubuntu 22.04

After the successful installation of VirtualBox on Ubuntu 22.04, you can launch it by following the below-mentioned procedure.

Open the Applications from Ubuntu dock and go to the search bar.

Search for VirtualBox in the search bar and click on it to open

It will open the following interface.

The VirtualBox is launched successfully.

Remove VirtualBox from Ubuntu 22.04 using GUI

The second method makes use of a graphical interface to remove VirtualBox from Ubuntu 22.04.

Open the Ubuntu Software store as follows.

Click on the installed button and navigate to the search bar to find the VirtualBox.

To remove the VirtualBox from Ubuntu 22.04, click on the Delete icon.

There will appear the following prompt. To uninstall the VirtualBox, click on the Uninstall button.

To continue with uninstallation, enter Password and push on Authenticate.

It will remove the VirtualBox from Ubuntu 22.04 and the “Install” button will appear which states it is no longer available to use.

The VirtualBox is removed from Ubuntu 22.04 successfully.

By the end, you are now able to install and use VirtualBox to operate multiple operating systems.

Conclusion

VirtualBox can be installed on Ubuntu 22.04 using the Command-line interface or using Graphical-User Interface. VirtualBox is a general-purpose virtualization tool used to control several operating systems under the same host. This writeup aims to learn how to install the VirtualBox on Ubuntu 22.04 through CLI and GUI. With the help of VirtualBox, a user can share clipboard, drag/drop items from host to guest and vice versa.