virtualbox-dkms 5.2.8-dfsg-5: virtualbox kernel module failed to build

Bug #1761381 reported by Ioannis Balis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
New
Undecided
Unassigned

Bug Description

I tried to reinstall virtualbox-dkms but it was not successful. I am pasting you what i managed to read from the terminal of the synaptic... Thank you for your time!

(Ανάγνωση βάσης δεδομένων ... 423697 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_5.2.8-dfsg-5_all.deb ...

-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.8
Kernel: 4.13.0-38-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.13.0-38-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.13.0-38-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.13.0-38-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.13.0-38-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...........

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.8
Kernel: 4.15.0-13-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-13-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-13-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-13-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-13-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...........

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.8
Kernel: 4.15.0-15-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...........

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.8
completely from the DKMS tree.
------------------------------
Done.
Unpacking virtualbox-dkms (5.2.8-dfsg-5) over (5.2.8-dfsg-5) ...
Γίνεται εγκατάσταση virtualbox-dkms (5.2.8-dfsg-5) ...
Loading new virtualbox-5.2.8 DKMS files...
Building for 4.15.0-14-generic 4.15.0-15-generic
Building initial module for 4.15.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.2.8/build/make.log for more information.
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 Thu 2018-04-05 08:34:05 EEST; 218ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1049 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

Απρ 05 08:34:03 ioannis-desktop systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Απρ 05 08:34:04 ioannis-desktop virtualbox[1049]: * Loading VirtualBox kernel modules...
Απρ 05 08:34:05 ioannis-desktop virtualbox[1049]: * No suitable module for running kernel found
Απρ 05 08:34:05 ioannis-desktop virtualbox[1049]: ...fail!
Απρ 05 08:34:05 ioannis-desktop systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Απρ 05 08:34:05 ioannis-desktop systemd[1]: virtualbox.service: Failed with result 'exit-code'.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: virtualbox-dkms 5.2.8-dfsg-5
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
DKMSKernelVersion: 4.15.0-14-generic
Date: Wed Apr 4 10:33:40 2018
InstallationDate: Installed on 2017-12-01 (124 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
PackageArchitecture: all
PackageVersion: 5.2.8-dfsg-5
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-2
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu1
 apt 1.6~beta1
SourcePackage: virtualbox
Title: virtualbox-dkms 5.2.8-dfsg-5: virtualbox kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ioannis Balis (balis11jr) wrote :
Revision history for this message
Ioannis Balis (balis11jr) wrote :

Problem solved! I completely uninstalled virtualbox-dkms from Synaptic package manager and the application center of Ubuntu. Then rebooted, and installed it fresh from the application center of the Elementary OS and rebooted again. Finally it worked! I think that the bug may be related to the fact that I am using the Pantheon desktop and get updates from the Elementary OS app center.
Sorry for alarming you! I hope all works fine from now on!
Thank you!

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.