Table of Contents
[wpsm_update date=”2020.04.14″ label=”Update”][/wpsm_update]
Install VirtualBox in Ubuntu- VirtualBox (Oracle VM VirtualBox) is a virtualization software for x86 & AMD64 / Intel-based system from the Oracle. Virtualbox allows users to manage the multiple operating systems at the same time. We will say VirtualBox is very important and cross-platform virtualization software. Oracle VirtualBox 4.3.28 has been released on May 13th, 2015. Oracle VirtualBox 4.3.28 hold a maintenance release of VirtualBox 4.3 that improves stability and fixes the regression. view the ChangeLog for further details.
On this article will provide guidance on how to install VirtualBox in Ubuntu 14.04, 15.04, 12.04 LTS, 14.04 LTS and Debian 7/6 Linux. Before the start, installation lets consider a few virtualization terminologies.
- Host Operating System (Host OS) – It’s an operating system of the physical machine on that VirtualBox is installed or shall be installed. Host OS for the virtual box package is Windows, UNIX, and Mac OS X.
- Guest operating system (Guest OS) – It’s an operating system which is running inside the virtual machine.
- Virtual machine (VM) – That is the special environment that VirtualBox creates for our Guest OS whereas it’s running. In other words, we will say that we run guest OS in a VM.
Install VirtualBox in Ubuntu from the Command Line:
Step 1: Setup Apt Repository
Firstly edit /etc/apt/sources.list file.
How do I add a line to my /etc/apt/sources.list?
Make a backup copy of your current sources.list
file
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
add new line of text
to current sources.list
file
-
CLI (command-line interface)
echo "new line of text" | sudo tee -a /etc/apt/sources.list
-
GUI (graphical user interface) with the text editor
sudo gedit /etc/apt/sources.list
- Now you see that at the end of the current
sources.list
text file in Text Editor. The re’s additional onnew line of text
the new line now change this line by pasting the below repository. For example, if you have Ubuntu 14.04 LTS version installed on your PC then use this repository ‘deb https://download.virtualbox.org/virtualbox/debian trusty contrib’
[quote_box_center]
For Ubuntu 15.04 (“Vivid”)
deb https://download.virtualbox.org/virtualbox/debian vivid contrib
For Ubuntu 14.10 (“Utag Unicorn”)
deb https://download.virtualbox.org/virtualbox/debian utag contrib
For Ubuntu 14.04 LTS (“Trusty Tahr”)
deb https://download.virtualbox.org/virtualbox/debian trusty contrib
For Ubuntu 12.04 LTS (“Precise Pangolin”)
deb https://download.virtualbox.org/virtualbox/debian precise contrib
For Debian 7.0 (“Wheezy”)
deb https://download.virtualbox.org/virtualbox/debian wheezy contrib
For Debian 6.0 (“Squeeze”)
deb https://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
[/quote_box_center]
- Now, Save and close
sources.list
Don’t forget to update in order to use a new repository
sudo apt-get update
Step 2: Setup Oracle public key
After adding required the apt repository in your system, download and import the Oracle public key for apt-secure using following commands.
[quote_box_center]
$ wget https://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
$ sudo apt-key add oracle_vbox.asc
[/quote_box_center]
Step 3: Install Oracle VirtualBox
After finishing the above steps, let’s install VirtualBox using the following commands. In case you have already installed an older version of VirtualBox, Below command instructions will update it automatically.
[quote_box_center]
$ sudo apt-get update
$ sudo apt-get install virtualbox-4.3
[/quote_box_center]
Step 4: Now Start VirtualBox
We can use dashboard shortcuts to start the VirtualBox
(Dash Home —> Search –> Virtualbox).
or, simply run following command from a terminal.
$ virtualbox
I I hope you like the article ‘How to Install VirtualBox in Ubuntu’. And if you like it then share it with your friends, family or loved ones. Stay tuned for more updates.