Welcome to the most active Linux Forum on the web.
Go Back > Blogs > hydrurga
User Name


Rate this Entry

Install the latest VirtualBox version on Mint and Ubuntu

Posted 05-17-2019 at 05:36 PM by hydrurga
Updated 05-23-2019 at 07:49 AM by hydrurga

This tutorial currently relates to VirtualBox 6.0.x, but will be valid for any version in the VirtualBox repository. The following instructions have been tested on Mint 19.x but should also work on Mint 18.x, Ubuntu 16.04 and 18.04, and other distros based on Ubuntu. Note that since v6, VirtualBox does not support 32-bit hosts, for which you should install VirtualBox v5.2.

The instructions below should not affect any virtual machines you have already set up with a previous version of VirtualBox, but if you are in any doubt then make a system image/snapshot/backup of the virtual machines before proceeding.

You can paste these commands into your terminal with shift-ctrl-v.

Installation instructions
  • Determine all the currently installed VirtualBox packages:

    dpkg -l "*virtualbox*"
    and delete each package (replacing packagename accordingly):

    sudo apt purge packagename
  • Get the VirtualBox repo key and add it to your keyring:

    wget -q -O- | sudo apt-key add -
  • Create a software source (replace bionic with xenial if running Mint 18.x or Ubuntu 16.04, or with an alternative Ubuntu-related distro name if you're running something else):

    sudo sh -c 'echo "deb [arch=amd64] bionic contrib" >> /etc/apt/sources.list.d/'
  • Bring your list of packages up to date and install VirtualBox (replace 6.0 with any base version available in the VirtualBox repositories, currently 5.1, 5.2, 6.0):

    sudo apt update
    sudo apt install virtualbox-6.0
  • Configure VirtualBox:

    sudo /sbin/vboxconfig
  • (optional, but can prove useful) Using your browser, download the latest extension pack from, and then use your file manager to double-click on it to install it to VirtualBox.

  • If VirtualBox hasn't created an entry in your desktop menu, create one that points at /usr/bin/virtualbox.
  • If you already have virtual machines set up from a previous version of VirtualBox, then you can add them using Machine->Add->relevant .vbox file.
  • If you're upgrading a version, e.g. 5.2.x->6.0.x, which was previously installed using the method above then just install new version (this will automatically remove the older version, but not purge it), then manually purge the old package.

Please provide any feedback on these instructions in the comments so that they can be improved if necessary.
Posted in Uncategorized
Views 959 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 11:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration