Oracle VirtualBox 5.2.8 has been released on February 27th, 2018. Oracle VirtualBox 5.2 is the latest major release after launched by Oracle team. This version has the new feature to export VM to Oracle Cloud, Unattended guest installation, improved tools handling with more attractive icons. Oracle team also added an experimental feature for audio support for video recording. See the ChangeLog for more details.
This article helps you to install VirtualBox on Ubuntu 17.10, 16.04 LTS, 14.04 LTS and Debian 9/8/7 systems.
Step 1 – Prerequsities
You must have logged in to your server using root or sudo privileged user. After login to your system update current packages of system to latest version.
sudo apt-get update sudo apt-get upgrade
Step 2 – Configure Apt Repository
Now, you need to add Oracle VirtualBox PPA to Ubuntu system. You can do this by running the below command on your system.
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian `lsb_release -cs` contrib"
This command will add an entry to /etc/apt/sources.list at end of file.
Step 3 – Import VirtualBox Package Sign Key
After adding the required apt repository on your system, download and import the Oracle public key for apt-secure using following commands.
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 -
Step 4 – Install Oracle VirtualBox
After completing the above steps, let’s install VirtualBox using following commands. If you have already installed an older version of VirtualBox, Below command will update it automatically.
sudo apt-get update sudo apt-get install virtualbox-5.2
Step 5 – Launch VirtualBox
We can use dashboard shortcuts to start VirtualBox or simply run following command from a terminal.