virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1 fails to build with kernel 5.8

Bug #1891916 reported by Branko
162
This bug affects 34 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Hello,

After I executed command: sudo apt install virtualbox , got this error:

This is the terminal output(error part):
######################################
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mo
de
Setting up build-essential (12.8ubuntu1) ...
Setting up virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) ...
Loading new virtualbox-6.1.10 DKMS files...
Building for 5.8.1-050801-generic
Building initial module for 5.8.1-050801-generic
ERROR (dkms apport): kernel package linux-headers-5.8.1-050801-generic is not su
pported
Error! Bad return status for module build on kernel: 5.8.1-050801-generic (x86_6
4)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
 installed virtualbox-dkms package post-installation script subprocess returned
error exit status 10
dpkg: dependency problems prevent configuration of virtualbox:
 virtualbox depends on virtualbox-dkms (>= 6.1.10-dfsg-1~ubuntu1.20.04.1) | virt
ualbox-source (>= 6.1.10-dfsg-1~ubuntu1.20.04.1) | virtualbox-modules; however:
  Package virtualbox-dkms is not configured yet.
  Package virtualbox-source is not installed.
  Package virtualbox-modules is not installed.
  Package virtualbox-dkms which provides virtualbox-modules is not configured ye
t.

dpkg: error processing package virtualbox (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-qt:
 virtualbox-qt depends on virtualbox (= 6.1.10-dfsg-1~ubuntu1.20.04.1); however:
  Package virtualbox is not configured yet.

dpkg: error processing package virtualbox-qt (--configure):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          No apport report written because the error message ind
icates its a followup error from a previous failure.
                                                    Processing triggers for mime
-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for systemd (245.4-4ubuntu3.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Errors were encountered while processing:
 virtualbox-dkms
 virtualbox
 virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
#############################

I was ecpecting that virtualbox is successfully installed.

Info:
lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04

kernel version:
5.8.1-050801-generic

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1
Uname: Linux 5.8.1-050801-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Aug 17 18:14:50 2020
ErrorMessage: installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
InstallationDate: Installed on 2020-08-17 (0 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: virtualbox
Title: package virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1 failed to install/upgrade: installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Branko (brankob) wrote :
Revision history for this message
Daniel Letzeisen (dtl131) wrote :

That's because you're using a 5.8.x kernel. You need virtualbox 6.1.12 if you're going to do that:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1884652

summary: - While installing virtualBox got this error: package virtualbox-dkms
- 6.1.10-dfsg-1~ubuntu1.20.04.1 failed to install/upgrade: installed
- virtualbox-dkms package post-installation script subprocess returned
- error exit status 10
+ virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1 fails to build with kernel
+ 5.8
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virtualbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Also you need patches in the kernel.

Changed in virtualbox (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
David Keaton (dmk-dmk) wrote :

Now that the 20.04.1 HWE kernel has been changed to 5.8, I encountered this bug with a normal "apt update" and I expect a lot of other people will as well. I'd like to suggest that this bug be taken out of "Won't Fix" status.

Revision history for this message
David Keaton (dmk-dmk) wrote :

Sorry, I meant "apt upgrade".

Revision history for this message
ColdFusion (bryan-electricedgesystems) wrote :

Just chiming in to agree with David - please take this issue out of "Won't Fix". I performed the same steps David says he took with the same result - Virtualbox is broken through no fault of my own - just applied a kernel update as I do every time one is found using Software Updater.

Thanks!

Revision history for this message
Arnaud MERGEY (amergey) wrote :

I did not performed any steps on my side and at some point virtualbox stop to work because of this bug (but I have livepatch activated so the upgrade has probably be done automatically)

Revision history for this message
Vojtěch Širůček (vojtas199-deactivatedaccount) wrote :

I believe that it is connected to https://www.virtualbox.org/ticket/19644.
The problem was resolved in version 6.1.14

Revision history for this message
Vojtěch Širůček (vojtas199-deactivatedaccount) wrote :
Revision history for this message
momcilo78 (momcilo78) wrote :

I have the same problem since upgrade. This is one of the major applications: please consider removing Won't fix and comment on possible solutions and workarounds

If the kernel is upgraded and virtualbox stops working there are 2 possible choices:
1. patch the kernel
2. update virtualbox package version to latest available (6.1.16 according
to: https://www.virtualbox.org/wiki/Downloads)

Most likely the second option is easier, especially since the patch version is what changed.

As for the workarounds:
1. downgrade the kernel
2. switch to upstream packages from virtualbox project itself

Revision history for this message
Kopa Rebu (koparebu) wrote :

Hi,

Having the same problem in 20.04.1. After a normal upgrade, virtualbox-dkms fails to build and VirtualBox stops working.

I'm only using "official" packages from Ubuntu.

Thanks in advance.

Revision history for this message
Salvatore Cristofaro (cristofaro) wrote :

Having the same problem. After a normal apt-upgrade on my Kubuntu, the 5.8.0-34 kernel was installed and virtualbox-dkms fail to build the related modules.

Not even the 5.8.0-36 (released today) works.
Please fix it.

Revision history for this message
Vojtěch Širůček (vojtas199-deactivatedaccount) wrote :

Another duplicate found. We really need reclassification from "Won't fix" and looking forward for releasing newer version that is compatible with current kernel.

Revision history for this message
Nathan Spotts (n-spot) wrote :

I had the same problem today. I couldn't even uninstall the original VirtualBox using apt or the software center. I had to use:

sudo apt-get purge virtualbox*

and then reinstall the latest virtualbox 6.1.16 from their website. I couldn't figure out why Virtualbox worked yesterday and had errors today. Hope this helps someone!

Revision history for this message
Sagnik Bhattacharya (sagnibak) wrote :

This problem has resurfaced recently, please fix this as quick as possible!

Revision history for this message
Daniel Bernardo Graset (danielbernardograset) wrote :

Have the same bug, fix it ASAP !!!!!!!!!

Revision history for this message
Dion Paragas (dion-paragas) wrote :

I am also experiencing this problem and VirtualBox is critical software for me

Revision history for this message
Songwut Kanchanagosai (songwutk) wrote :

I clean install Ubuntu 20.04.1 LTS

Download https://download.virtualbox.org/virtualbox/6.1.16/virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb

dpkg -i virtualbox-6.1_6.1.16-140961_Ubuntu_eoan_amd64.deb
...

depmod...

DKMS: install completed.
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
 installed virtualbox-dkms package post-installation script subprocess returned error exit status 10

Revision history for this message
Songwut Kanchanagosai (songwutk) wrote :

Errors were encountered while processing:
 virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Bernd Kaiser (boernie68) wrote :

For me the same issue after an apt-get upgrade yesterday!

Loading new virtualbox-6.1.10 DKMS files...
Building for 5.8.0-36-generic
Building initial module for 5.8.0-36-generic
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.
dpkg: Fehler beim Bearbeiten des Paketes virtualbox-dkms (--configure):
 »installiertes virtualbox-dkms-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 10 zurück
Trigger für libc-bin (2.31-0ubuntu9.1) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution is needed urgently.

Revision history for this message
Ondřej Sluka (ondras12345) wrote :

There is a similar bug that is not "Won't Fix":
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1899233

Revision history for this message
Alexander Kshnyakin (devpull) wrote :

Hello, to all! I have amazing decision:

1. Remove all virtualbox* pockets ($ sudo apt-get purge virtualbox*)
2. Download virtualbox pocket for Ubuntu 20.04 from virtualbox.org (virtualbox-6.1_6.1.16-140961_Ubuntu_eoan_amd64.deb)
3. Launch install in terminal ($ sudo dpkg -i virtualbox-6.1_6.1.16-140961_Ubuntu_eoan_amd64.deb)
4/ While installing there is an error about absence "python" pocket. Yes by default we have "python3" pocket, and here were need namely "python" pocket.
5. Ok, we have install "python" pocket ($ sudo apt install python)
6. Next we again launch installing virtualbox pocket (look at 3 point) and have a success
7. Launch Virtual Machine and have success too.

I don't know what is the reason of this behaviour, bit it works for me.
In advance sorry for my russian english :-)

Revision history for this message
Thomas (twvd) wrote :

Of course that works. An even easier/better solution is to add the official Virtualbox PPA so you also get updates.

..but that's not really the point of this bug here. Virtualbox is in the official focal repo and so is the 5.8 kernel (as 'edge'), so they should be supported. Their combination apparently causes an issue, so I really don't understand how this is a "wont fix". Clearly it's possible to make it work, the package from the PPA works fine.

I'm using the PPA as a workaround for now.

Revision history for this message
Alexander Kshnyakin (devpull) wrote :

Let's hope that over time they will fix everything (for example, when their virtual machine also crashes) :-)

Revision history for this message
Vojtěch Širůček (vojtas199-deactivatedaccount) wrote :

I doesn't see need to do any of that when 6.1.16-dfsg-6~ubuntu1.20.04.1 is already in proposal process to add it to repo.

Revision history for this message
Thomas (twvd) wrote :

That works, of course :) This is the first time I read on these reports that a new version is on its way.

Revision history for this message
dizzy5 (x-contact-u) wrote :

Today's Ubuntu system update upgraded Virtualbox to Version 6.1.16_Ubuntu r140961. I had to run the following commands but now everything is sorted...

$ sudo apt-get install virtualbox-dkms
$ sudo modprobe vboxdrv

Download: 'VirtualBox 6.1.16 Oracle VM VirtualBox Extension Pack' from https://www.virtualbox.org/wiki/Downloads

* If it doesn't install automatically, add to VirtualBox > File > Preferences > Extensions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.