Home Linux How to Install VirtualBox in Ubuntu Linux

How to Install VirtualBox in Ubuntu Linux

This article is an Evergreen Content by UbuntuPIT. You can safely save it to your bookmarks as it will always be updated from time to time according to any new release/information.

VirtualBox is a free, open source and powerful x86 and AMD64/Intel64 virtualization product for both enterprise and home use. VirtualBox is extremely featured rich, high performance and best professional solution available right now in the market. It supports all the major OS including Linux, MacOS, Windows, Solaris, FreeBSD and much more as the host machine. And it supports a large number of guest OS. So, VirtualBox let you help to run multiple virtual machines on Linux and vice-versa.

This how you will be able to test different software which was developed for the specific operating system. So I recommend the IT guys to use this amazing software to make virtual labs which are a self-contained environment where you can test lots of applications and settings without a reboot or damaging your host system. VirtualBox is actively developed by a community and backed by a professional company, Oracle. Recently Oracle announced a new version of VirtualBox. Let’s see the essential features below.

Changes in VirtualBox 5.2.16 include:

  • OVF: case-insensitive comparison of manifest attribute values, to improve compatibility
  • Prebuilt RPM fails to install on openSUSE Leap 15.0 and Tumbleweed
  • Linux: various build fixes for distribution builds, thank you Gianfranco Costamagna

Linux Mint 17.1 on Ubuntu 14.04
Linux Mint 17.1 on Ubuntu 14.04

Windows 7 on Ubuntu 14.04
Windows 7 on Ubuntu 14.04

Linux running a Windows XP
Linux running a Windows XP

How to Install Virtualbox

Now here I will show you how to install it on Ubuntu and other Linux distros.

Method 1: Download “.deb” file


Download the latest version of the .deb file and install it on Ubuntu Linux.

Download VirtualBox

If you are not sure of how to install .deb packages on Ubuntu, please see Can’t Install .deb files on Ubuntu? Here are all the Possible Ways to Install deb Packages.

Method 2: Install VirtualBox via Terminal command


You can install it directly by adding the Oracle VBox repository. Run the following command for adding the repository:

sudo sh -c 'echo "deb https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

for Linux Mint 18.x, replace $(lsb_release -sc) with xenial in the code.

For trusting the updates from the repository, run the below command one by one to set up the keyring:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Now it’s time to install it on your system. Run the following command:

sudo apt-get update
sudo apt-get install virtualbox-5.2

Note: The features mentioned here are not all-inclusive. The features mentioned are compiled either from their respective official websites or my personal experience using them.

If you have questions, suggestions or a word of thanks, feel free to drop a comment below.

1 COMMENT

  1. Downloading the deb file is the only way to install on the latest Ubuntu. The version from their store freaks out when installing the extension. All goes very well when you use the deb from the official virtual box website.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Post

How To Make A Raspberry Pi Face Recognition Project

Raspberry Pi is a low-cost mini-computer that has made computing and programming much easier for most people, including students...

How to Install Pop OS on Your System: A Tutorial for Beginners

Pop OS developers have built a spotless operating system for Linux lovers. Users were claiming that Pop OS can...

The 20 Best Torrent Apps for Android Device in 2020

Most often, we don't find video files of our favorite movies, TV shows, music, and other content on YouTube...

The 20 Best Build Automation Tools for Modern Software Development

Build automation tools are programs that speed up the whole software development process for enterprises. These are tools that...

Most Talked Post

Most Stable Linux Distros: 5 versions of Linux We Recommend

At the very beginning, I would like to mention why the term ‘Stable’ comes in relation to Linux OS...

Linux or Windows: 25 Things You Must Know While Choosing The Best Platform

Choosing the best platform - Linux or Windows is complicated. Because both the system is versatile and capable of...

15 Best Things To Do After Installing Linux Mint 19 “Tara”

Linux Mint is one of the best Linux distros for newcomers, especially who comes from other Operating Systems like...

Linux Mint vs Ubuntu: 15 Facts To Know Before Choosing The Best One

Ubuntu and Linux Mint are two popular Linux distros available in the Linux community. Ubuntu is a derivative of...

You Might Also LikeRELATED
Recommended to you