Since Ubuntu 18.04 LTS was released, I have been testing it in my lab environment using VMware Workstation Pro… this steps below is how I got the latest version of VirtualBox installed on Ubuntu 18.04 LTS…
VirtualBox gets new updates very frequently on Windows and Linux systems… if you want to consistently get these updates when they become available, you’ll want to add VirtualBox repository to your systems… doing that will make all future updates available to your systems immediately…
For those who don’t know what VirtualBox is, it’s a cross-platform virtualization software that allows you to run guest operating system inside a windows of the host computer. The guest machine can Windows, Linux or Mac operating systems.
This brief tutorial shows students and new users how to add VirtualBox repository to Ubuntu to always get the latest releases when they become available..
To get started with adding VirtualBox’s repository to Ubuntu systems, follow the steps below:
Step 1: Add VirtualBox Repository Key
To install VirtualBox repositories, you must first add the repository key… the key allows Ubuntu to authenticate and validate that all packages downloaded from the repository are trusted and signed with the repository key… this adds a layer of security
To add the repository key, run the commands below:
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 2: Add VirtualBox Repository
Now that the repository key is added to Ubuntu system, run the commands below to add the Repository
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'
After that, run the commands below to update Ubuntu repositories..
Step 3: Installing VirtualBox
At this point, the Ubuntu system should be ready to install the latest version of VirtualBox…
First you may want to remove older versions of the software if you’re still running it… to do that, run the commands below:
sudo apt remove virtualbox virtualbox-5.1
Next, run the commands below to install some requirement packages for VirtualBox
sudo apt update sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms
Finally, run the commands below to install the latest version of the software.
sudo apt update sudo apt-get install virtualbox-5.2
You should have the latest version of VirtualBox installed after running the above commands… Now go to search for the package and launch it.
You may also like the post below: