Ubuntu – Dependency errors when trying to install VirtualBox 5.0 on 15.10

15.10aptdependenciessoftware installationvirtualbox

I am running Ubuntu GNOME 15.10 with GNOME 3.18 and I am trying to install VirtualBox 5.0 on my system, I have followed all the instructions in the Debian-based Linux distributions installation section here, however when I now try to actually install it with:

sudo apt-get install virtualbox-5.0

I get this output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 virtualbox-5.0 : Depends: libvpx1 (>= 1.0.0) but it is not installable
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: dkms but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

And I have tried running:

sudo apt-get install -f

But it says that there is nothing to upgrade or install.

So what do I do? I really need to install VirtualBox 5.0 but I seem unable to.

Information Update:

apt-cache policy virtualbox-5.0 libvpx1 outputs:

virtualbox-5.0:
  Installed: (none)
  Candidate: 5.0.10-104061~Ubuntu~trusty
  Version table:
     5.0.10-104061~Ubuntu~trusty 0
        500 http://download.virtualbox.org/virtualbox/debian/ vivid/contrib amd64 Packages
libvpx1:
  Installed: (none)
  Candidate: (none)
  Version table:

Best Answer

You use the repository for Vivid and the VirtualBox package in this repository depends on libvpx1 which is available for Vivid but not for Wily.

As you are using Wily change the repository:

sudo sed -i 's/vivid/wily/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install virtualbox-5.0