virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1: virtualbox kernel module failed to build

Bug #1908757 reported by Alessandro candeloro
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

after installing virtual box: `sudo apt install virtualbox` there seemed to be an error with my kernel: `kernel headers for this kernel does not seem to be installed.`.

I installed the headers: `sudo apt-get install linux-headers-5.8.0-33-generic` and wen trying to `sudo dpkg-reconfigure virtualbox-dkms` there is an error:

```
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-33-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.

```

and after `sudo dpkg-reconfigure virtualbox`:

```
Job for vboxweb.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status vboxweb.service" and "journalctl -xe" for details.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
     Loaded: loaded (/etc/init.d/virtualbox; generated)
     Active: failed (Result: exit-code) since Fri 2020-12-18 22:39:07 CET; 5ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 42222 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

dic 18 22:39:07 chale-MS systemd[1]: Starting LSB: VirtualBox Linux kernel module...
dic 18 22:39:07 chale-MS virtualbox[42222]: * Loading VirtualBox kernel modules...
dic 18 22:39:07 chale-MS virtualbox[42222]: * No suitable module for running kernel found
dic 18 22:39:07 chale-MS virtualbox[42222]: ...fail!
dic 18 22:39:07 chale-MS systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILURE
dic 18 22:39:07 chale-MS systemd[1]: virtualbox.service: Failed with result 'exit-code'.
dic 18 22:39:07 chale-MS systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.

```

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1
ProcVersionSignature: Ubuntu 5.8.0-33.36~20.04.1-generic 5.8.17
Uname: Linux 5.8.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.14
Architecture: amd64
CasperMD5CheckResult: skip
DKMSKernelVersion: 5.8.0-33-generic
Date: Fri Dec 18 22:29:02 2020
DuplicateSignature: dkms:virtualbox-dkms:6.1.10-dfsg-1~ubuntu1.20.04.1:/var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:596:43: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
InstallationDate: Installed on 2020-12-18 (0 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
PackageVersion: 6.1.10-dfsg-1~ubuntu1.20.04.1
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.2
SourcePackage: virtualbox
Title: virtualbox-dkms 6.1.10-dfsg-1~ubuntu1.20.04.1: virtualbox kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alessandro candeloro (c4chale) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Alessandro candeloro (c4chale) wrote :

Solved the issue by downloading and installing virtual box from https://www.virtualbox.org/wiki/Linux_Downloads

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

There is already a pending fix and an open bug for this. Will be fixed with the 6.1.16 version soon

Changed in virtualbox (Ubuntu):
status: New → Invalid
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.