Can I install the VirtualBox Extension Pack from the Ubuntu repositories?

This assumes virtualbox is already installed.

I looked at the source of the virtualbox-ext-pack package in Ubuntu and I found some gems. I did the following which is a variation on what that package does in a script I am using:

VBOXVERSION=$(VBoxManage --version | sed -r 's/([0-9])\.([0-9])\.([0-9]{1,2}).*/\1.\2.\3/')
wget -q -N "http://download.virtualbox.org/virtualbox/$VBOXVERSION/Oracle_VM_VirtualBox_Extension_Pack-$VBOXVERSION.vbox-extpack"
VBoxManage extpack install --replace Oracle*.vbox-extpack

This was on Debian Jessie, but I am quite confident it would work the same on almost any flavor of Linux, possibly Unix too.


Because the Virtual Box extension pack is closed source proprietary software we will not be able to provide debian packages or binaries from the Ubuntu repositories.

To ease installing of extension packs to Virtual Box versions provided by the repositories we maintain a download helper script in the multiverse repository from Ubuntu >= 15.10 which will download the extension pack from Oracle (virtualbox-ext-pack).

Do not install this for Virtual Box versions you had downloaded and installed from other sources.


On Ubuntu 17.04+:

sudo apt install virtualbox-ext-pack

PS: I know this question was made a long time ago when this was not an option, but I'm writing this answer to help people that came here through Google in 2018+.


apt-cache search virtualbox gives me an virtualbox-ext-pack which is the pack youre looking for.