Install VirtualBox Latest on Ubuntu 16.04 LTS / 17.04 | 17.10

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.

Enjoy!

You may also like the post below:

Install Pimcore CMS on Ubuntu 16.04 LTS with Nginx, MariaDB and PHP 7.1 Support

7 Replies to “Install VirtualBox Latest on Ubuntu 16.04 LTS / 17.04 | 17.10

  1. vboxdrv.sh: failed: modprobe vboxdrv failed. Please use ‘dmesg’ to find out why.

    There were problems setting up VirtualBox. To re-start the set-up process, run
    /sbin/vboxconfig
    as root.
    Processing triggers for libc-bin (2.23-0ubuntu10) …

  2. There were problems setting up VirtualBox. To re-start the set-up process, run
    /sbin/vboxconfig

  3. Hey I am running this on Ubuntu 16 VPS. How do I access the virtual box I have installed on the sever. Is there a GUI?

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: