Ubuntu – Virtualbox ppa for 14.04

14.04ppavirtualbox

I want to add a ppa to get virtualbox updates but I can't understand the debian-based steps on their webpage (or here). Normally I add repositories with sudo add-apt-repository ...

Can anyone explain the steps?

Best Answer

First you need to add the repository to your system. Copy and paste the following to a terminal window:

VirtualBox for Bionic does not support i386 so add this repository:

sudo bash -c 'echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" > /etc/apt/sources.list.d/virtualbox.list'

For 17.10 and older add this one:

sudo bash -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" > /etc/apt/sources.list.d/virtualbox.list'

Then you just step through the rest from https://www.virtualbox.org/wiki/Linux_Downloads; or I put the steps below.

You can just copy and paste each of these steps to finish your install of VirtualBox on your system:

Add the key:

Ubuntu 14.04:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Ubuntu 16.04 and newer (18.04 included):

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

Then do your update and install:

sudo apt-get update

Update: Now it is Virtualbox 5.2

sudo apt-get install virtualbox-5.2

VirtualBox 6.0 is also available

sudo apt-get install virtualbox-6.0

Last, install your kernel driver for VirtualBox:

sudo apt-get install dkms

If this is a new installation, run the following to add vboxusers group to your username:

sudo usermod -a -G vboxusers $USER

Then log out and back in for changes to take effect.

Then after it is all installed, it is recommended to install the VirtualBox Extension Pack from here.

Hope this helps!