How to Install VirtualBox on Ubuntu

If you are looking for How to Install VirtualBox on Ubuntu, then follow the simple step-by-step guide we have given in this article below.

I have Ubuntu 18.04 LTS, So in this article, in the first half we will discuss How to download VirtualBox on Ubuntu? after that we’ll learn How to Install VirtualBox on Ubuntu.

While trying to install the VirtualBox I got the following error:

dpkg: dependency problems prevent configuration of virtualbox-6.1:

dpkg: error processing package virtualbox-6.1 (--install):

So we’ll see that Why VirtualBox fails to install on Ubuntu & the solution for the error we got while installing.

Also Read:- Ubuntu Server apt-get update error SOLVED

How to Install VirtualBox on Ubuntu in 2022

1) In the first step go to https://www.virtualbox.org/ & click on the Big Download button.

How to Install VirtualBox on Ubuntu

2) Now select the platform you are downloading,  as we click on the Linux distributions.

How to Install VirtualBox on Ubuntu

3) After that choose the appropriate package for your Linux distribution. Just click on your Linux Version.

How to Install VirtualBox on Ubuntu

4) Here you go, the downloading process of Virtualbox will start after that.

How to Install VirtualBox on Ubuntu

5) Now open the terminal type the following  command & type your password

sudo su

Now open the directory, where your download file is stored. In our case its

cd Downloads

After that type

ls

Now you need to install the file, for that, you need to type the command ( sudo dpkg -i Your_file_name ).

sudo dpkg -i virtualbox-6.1_6.1.28-147628Ubuntubionic_amd64.deb

Your installation may be complete here but if you are getting the error as “dpkg: dependency problems prevent configuration of virtualbox-6.1:”, then follow the next step for the solution.

How to Install VirtualBox on Ubuntu

6) As you get the error as shown in the picture above then type the following command & then type Y:

sudo apt -f install

How to Install VirtualBox on Ubuntu

7) Here you go, after some seconds your installation will get complete without any error.

How to Install VirtualBox on Ubuntu

8) Now go to the app drawer & search for Virtualbox & you’ll get the “Oracle VM VirtualBox”, click to open it.

Also Read:- How to Install Microsoft Edge Browser on Ubuntu

Wrap up: Install VirtualBox on Ubuntu

This is all on the topic of How to Install VirtualBox on Ubuntu, I hope it helps you.

If you got any issues then feel free to ask in the comment section or our Twitter page.

For more tips & tricks related to Ubuntu, You can join our Telegram Channel –NixLoop to get Notified of our future updates.

1 thought on “How to Install VirtualBox on Ubuntu”

Leave a Comment

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