


Sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms Install the required dependencies and VirtualBox itself using the following commands: Sudo apt remove virtualbox virtualbox-5.1 If you have previously installed older versions of it, you need to remove it first: Sudo sh -c 'echo "deb bionic contrib" > /etc/apt//virtualbox.list'Īt this point, Linux Mint should be ready to install the latest version of VirtualBox. Now that the repository key is added to Ubuntu system, run the commands below to add the repository itself. To add the repository key, run the commands below: To install packages from the VirtualBox repository, you must first add the repository key, used by apt to validate its authenticity.

This will allow you to get notified for new versions and update trough Linux Mint Update Manager and apt. If you want to consistently get these updates when they become available, you’ll want to add VirtualBox and Vagrant repository to your system. VirtualBox and Vagrant receive updates on Linux much often than the repositories update. This step by step tutorial will guide you through the process of getting the latest versions of VirtualBox and Vagrant instead of the outdated versions available in the official Ubuntu repositories. I use Linux Mint 19.2 as daily driver on my ThinkPad L480.
