How to Install or Uninstall VirtualBox in Ubuntu

vote/تقييم

In this guide, we will discover: How to Install or Uninstall VirtualBox in Ubuntu – Easy Beginners Guide 2023
So, let’s begin!

Want to install or uninstall the VirtualBox app on your Ubuntu Linux-based computer? You should read this article, as it shows multiple ways to do that.

By Oluwaseun Bamisile | Updated April 18, 2023 | 10 minutes read

This guide demonstrates two methods to install or uninstall VirtualBox in Ubuntu. To be specific, you will learn how to perform these tasks through the Ubuntu Software store in the GUI.

This guide will also teach you how to install or uninstall VirtualBox in Ubuntu using the apt command in the terminal.

Finally, in this guide’s FAQ Section, you will get answers to some of the most asked questions relating to the topic in discussion.

Before continuing, you should understand that the steps and screenshots demonstrated in this guide are based on the Ubuntu 22.04 LTS OS. Therefore, the steps and screenshots might be a bit different on other versions of the Ubuntu OS.

How to Install VirtualBox in Ubuntu

How To Install VirtualBox In Ubuntu

There are two major ways to install the VirtualBox application in the Ubuntu Linux-based operating system. You can either install the program through the Ubuntu Software store in the GUI or via the terminal.

The following sub-sections will demonstrate how to install the app using those methods.

Install VirtualBox in Ubuntu Through Ubuntu Software Store

  1. On the Ubuntu dock, click the Show Applications icon to open the application menu. Next, input “software store” in the search field, then select the Ubuntu Software store icon from the search result.
  1. In the Ubuntu Software store, click the search icon at the top left corner to access the search bar. Then, type “VirtualBox” in the search bar and select the VirtualBox application from the search result.
How To Install VirtualBox In Ubuntu
  1. On the Virtualbox installation page, click the green Install button.
  1. Consequently, you will receive an authentication prompt. Hence, type your computer’s password in the input field on the prompt, then click the Authenticate button to proceed.
How To Install VirtualBox In Ubuntu
  1. By doing that, the VirtualBox application should start installing on your Ubuntu computer.

Install VirtualBox in Ubuntu Via the Terminal

  1. Right-click any free area on the Ubuntu desktop, then click Open in Terminal from the context menu. You can also use the Ctrl + Alt + T keyboard shortcut to open the terminal in Ubuntu.
How To Install VirtualBox In Ubuntu
  1. When the Ubuntu terminal opens, run the command below to update the Ubuntu repository. Consequently, you will be asked to input your computer’s password – do that and press the enter key.
sudo apt update
  1. After doing that, execute the following command to install VirtualBox.
sudo apt install virtualbox
How To Install VirtualBox In Ubuntu
  1. Then, you should receive a couple of information regarding the installation. Also, you will be asked if you want to continue with the installation – type “y” and press the enter key to continue.
  1. Consequently, the Virtualbox application should start to install on your Ubuntu computer.
How To Install VirtualBox In Ubuntu

How to Uninstall VirtualBox in Ubuntu

The same methods used to install the VirtualBox app in Ubuntu are also the methods you can use to uninstall the app. Basically, you can uninstall the application through the Ubuntu Software store in the GUI or via the terminal.

However, if you install the app through the Ubuntu Software store, it is recommended you uninstall it via the Ubuntu Software store. Likewise, if you install the app using a certain command in the Ubuntu terminal, then you should uninstall it using the same command in the terminal.

For example, we installed the VirtualBox app in the previous section using the apt command. Thus, we will use the same command to uninstall the app in this section.

With that being said, the following sub-sections will provide multiple methods to remove VirtualBox in Ubuntu.

Delete VirtualBox in Ubuntu Through Ubuntu Software Store

  1. Click the Show Applications icon on the Ubuntu dock to access the application menu. Next, enter “software store” into the search box, then choose the Ubuntu Software store icon from the search results.
How To Uninstall VirtualBox In Ubuntu
  1. In the Ubuntu Software store, switch to the Installed tab.
  1. Now, search for the VirtualBox application among the installed app. Then, click the Uninstall button beside the application.
How To Uninstall VirtualBox In Ubuntu
  1. By doing that, a dialogue box should appear, asking if you are sure you want to uninstall the application. Click the red Uninstall button on the dialogue box to proceed.
  1. Consequently, you should receive a prompt asking for your computer’s password for authentication. Hence, input your computer’s password and click the Authenticate button to uninstall VirtualBox.
How To Uninstall VirtualBox In Ubuntu

Uninstall VirtualBox in Ubuntu Through the Terminal

  1. Open the terminal in Ubuntu by right-clicking any free area on the desktop, then selecting Open in Terminal. You can also open the terminal in Ubuntu by pressing the Ctrl + Alt + T keys on your keyboard simultaneously.
  1. When the terminal opens, type the command below and press the enter key. Hence, you will be requested to input your password before proceeding – do that and press the enter key to uninstall VirtualBox in Ubuntu.
How To Uninstall VirtualBox In Ubuntu

Frequently Asked Questions

Frequently Asked Questions
1. Is VirtualBox Free In Ubuntu?

Yes, the VirtualBox application is free on the Ubuntu Linux-based operating system.

2. How Do I Install VirtualBox In The Ubuntu Software Center?

Follow the steps below to learn how to install the VirtualBox program through the Ubuntu Software Center.
a) On the Ubuntu dock, click the Show Applications icon to open the application menu.
b) Next, input “software store” in the search field, then select the Ubuntu Software store icon from the search result.
c) In the Ubuntu Software store, click the search icon at the top left corner to access the search bar.
d) Then, type “VirtualBox” in the search bar and select the VirtualBox application from the search result.
e) On the Virtualbox installation page, click the green Install button.
f) Consequently, you will receive an authentication prompt. Hence, type your computer’s password in the input field on the prompt, then click the Authenticate button to proceed.
g) By doing that, the VirtualBox application should start installing on your Ubuntu computer.

3. What Is VirtualBox?

VirtualBox is a free and open-source virtualization program that allows users to run multiple operating systems on a single physical computer. It enables users to create virtual machines (VMs) that can run different operating systems, such as Windows, Linux, and macOS, concurrently on the same computer.

4. When Was VirtualBox Introduced?

The VirtualBox program was first introduced in 2007.

5. Can I Uninstall VirtualBox Via The Ubuntu Terminal?

Yes, you can uninstall the VirtualBox app on your Ubuntu Linux-based computer through the terminal.

My Final Thoughts

VirtualBox is a powerful virtualization program that enables users to run multiple operating systems concurrently on a single physical computer. It is a useful tool for testing new software, running legacy applications, and creating testing environments.

Fortunately, this guide provided multiple ways to install or uninstall VirtualBox in Ubuntu. Specifically, we learned how to install the app through the Ubuntu Software store and via the terminal.

Using those methods, this guide also taught us how to uninstall the VirtualBox in Ubuntu.

I hope this guide was helpful to you. If it were, we would appreciate it if you could share your views with our community at Itechguides Community Forum.

Other than that, you can also make comments or ask questions regarding this guide’s topic at Itechguides Community Forum. Our forum staff will make sure your comments or questions are responded to as soon as possible.

Before leaving this page, you may go through our Linux how-to page to find our other helpful Linux how-to guides.

References and Further Reading

  1. itslinuxfoss.com – How to Install and use VirtualBox on Ubuntu 22.04
  2. askubuntu.com – How to completely remove virtualbox [duplicate]
  3. Itechguides Community Forum

Leave a Comment