Failed to update Virtualbox on ubuntu 15.10
<p>I updated the version of Virtualbox from 5.0.4 to 5.1.9, but can not be used. The error message as follows:<a href="https://i.stack.imgur.com/zi3DI.png" rel="nofollow">enter image description here</a></p>

<p>Proceed as follows:</p>

<pre><code>$ uname -a
 Linux pc-name 4.2.0-42-generic #49-Ubuntu SMP Tue Jun 28 21:26:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>

<p>1). Run the following command to uninstall the old version</p>

<pre><code>sudo apt-get remove virtualbox - \ * &amp;&amp; sudo apt-get purge virtualbox - \ * &amp;&amp; sudo rm ~ / "VirtualBox VMs" -Rf &amp;&amp; sudo rm ~ / .config / VirtualBox / -Rf
</code></pre>

<p>There are the following major errors in the run:</p>

<pre><code>Dpkg: Warning: The directory /usr/share/virtualbox is not empty when the virtualbox is uninstalled, so the directory is not deleted
</code></pre>

<p>2). Install the new version from the source (using the source provided by virtualbox.org)</p>

<pre><code>sudo apt-get install -f virtualbox-5.1
</code></pre>

<p>There are the following major errors in the run:</p>

<pre><code>Unknown media type in type 'all / all'
Unknown media type in type 'all / allfiles'
</code></pre>

<p>and</p>

<pre><code>Vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
As root.
</code></pre>

<p>3). I use dmesg view to get the following information:</p>

<pre><code>    [26211.111276] PPP MPPE Compression module registered
    [31955.864023] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [31958.462125] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [32012.883861] capability: warning: `VirtualBox 'uses 32-bit capabilities (legacy support in use)
    [32155.086381] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [32397.551309] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [33462.912350] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [34179.544392] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [34277.077660] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
    [34281.740848] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
</code></pre>

<p>4). Then I ran again:</p>

<pre><code>sudo dmesg --clear
sudo /sbin/vboxconfig
</code></pre>

<p>5). Suggest the following error</p>

<pre><code>vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
As root.
</code></pre>

<p>6). Use dmesg view, did not get any information. 7). Find these solutions:      8). Use the following command</p>

<pre><code>sudo /usr/lib/virtualbox/vboxdrv.sh setup
</code></pre>

<p>Suggesting that the following errors:</p>

<pre><code>vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
</code></pre>

<p>9). dmesg does not get any information 10). Use</p>

<pre><code>dpkg -l | grep virtualbox
</code></pre>

<p>The following information is obtained</p>

<pre><code>ii virtualbox-5.1 5.1.6-110634 ~ Ubuntu ~ wily amd64 Oracle VM VirtualBox
</code></pre>

<p>11). Use</p>

<pre><code>sudo/sbin/vboxconfig
</code></pre>

<p>The following information is obtained</p>

<pre><code> vboxdrv.sh: Building VirtualBox kernel modules.
 vboxdrv.sh: Starting VirtualBox services.
 vboxdrv.sh: Building VirtualBox kernel modules.
 vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

 There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
 As root.
</code></pre>

<p>12) Here, do not know how to deal with. Please help me, very grateful!</p>