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 http://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

50 Useful and Simple IPtables Rules for Linux Administrator

One of the main reasons behind the immense popularity enjoyed by Linux is its sheer prowess in networking. Linux...

Linux Shell Roundup: 15 Most Popular Open Source Linux Shells

Unix systems have captivated the world since its inception in the 70s. One of the fundamental features that helped...

Top 20 Most Remarkable IoT Applications in Today’s World

In the nearest future, probably we are going to live in a world with connected devices — the curiosity...

Top 20 Best Python IDE for Linux. Some of Them are Open Source

Python is a programming language. User can apply it for general purposes to design program from the backend web...

Top 20 Funny Steam Games For Kids To Play Right Now

There are ample of funny steam games for kids available on the store for the Linux system. A couple...

Most Talked Post

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...

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...

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...

Top 5 Best Lightweight Linux Distros To Boost Up Your Old Computer

So here comes the million dollar question, why does anyone use Lightweight Linux distros? While all the modern Linux...

Editors' Pick

13 Best Ubuntu Web Browsers: Which One is Right for You?

Who doesn’t know about web browsers in this advanced...

Top 15 Linux Productivity Software and Tools That Worth Your Attention

There is no doubt that among the operating systems,...

Best Markdown Editor: Top 20 Reviewed For Linux Users

If you're an avid blogger who needs to post...