Install the Latest VirtualBox on Ubuntu 18.04 LTS

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.

Enjoy!

You may also like the post below:

Install WordPress on Ubuntu 18.04 LTS with Lighttpd, MariaDB and PHP 7.1 Support

18 Replies to “Install the Latest VirtualBox on Ubuntu 18.04 LTS

  1. Virtalbox 5.2.10 (As well as recommended Extension pack) now available through Synaptic for those preferring to go graphical. Guest additions too if you like.

  2. Didn’t work for me.
    I received the following error :

    N: Skipping acquire of configured file ‘contrib/binary-i386/Packages’ as repository ‘http://download.virtualbox.org/virtualbox/debian bionic InRelease’ doesn’t support architecture ‘i386’

  3. Die folgenden Pakete haben unerfüllte Abhängigkeiten:
    virtualbox-5.2 : Hängt ab von: libqt5gui5 (>= 5.4.0) soll aber nicht installiert werden
    Hängt ab von: libqt5opengl5 (>= 5.0.2) soll aber nicht installiert werden
    Hängt ab von: libqt5printsupport5 (>= 5.0.2) soll aber nicht installiert werden
    Hängt ab von: libqt5widgets5 (>= 5.7.0) soll aber nicht installiert werden
    Hängt ab von: libqt5x11extras5 (>= 5.6.0) soll aber nicht installiert werden

    Dependencies cannot be resolved. Not even manually. Currently completely broken.

  4. I just found your website. These instructions worked great on the latest Ubuntu 18.04 LTS. Very grateful because I wanted to test vbox with some other distros. Thanks broel.

  5. Today is February 15th and it has installed virtual box 5.2.18, a version from August, while we are currently on 6.0. Too bad 🙁

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.