


$(lsb_release -cs) will print the Ubuntu codename. With the add-apt-repository command as shown below: sudo add-apt-repository "deb $(lsb_release -cs) contrib" : wget -q -O- | sudo apt-key add - wget -q -O- | sudo apt-key add -īoth commands should output OK which means that the keys are successfully imported and packages from this repository will be considered trusted. Start by importing the GPG keys of the Oracle VirtualBox repository to your system using the following wget commands To install VirtualBox from the Oracle repositories on your Ubuntu system, follow these steps: Before continuing with the next steps you should check the VirtualBox download page Installing VirtualBox from Oracle repositories #Īt the time of writing this article, the latest version of VirtualBox is version 6.0. Prerequisites #īefore continuing with this tutorial, make sure you are logged in as a user with sudo privileges The same instructions apply for Ubuntu 16.04 and any Ubuntu-based distribution, including Linux Mint and Elementary OS. If you want to always have the latest version of VirtualBox then the recommended approach is to install the VirtualBox from the Oracle repositories.

The VirtualBox package which is available in the Ubuntu multiverse repository may not always be the latest version. The first method describes the steps necessary to install VirtualBox 6.0 from the Oracle repositories while the second one will show you how to install the latest version of VirtualBox from the official Ubuntu repositories. In this tutorial, we will show you two different methods on how to install VirtualBox on your Ubuntu 18.04 machine. Is an open-source cross-platform virtualization software which allows you to run multiple guest operating systems (virtual machines) simultaneously.
