Bug#919949: virtualbox-dkms: leftover files from previous versions prevent module building with current version

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#919949: virtualbox-dkms: leftover files from previous versions prevent module building with current version

Sebastian Bremicker-6
Package: virtualbox-dkms
Version: 5.2.24-dfsg-4
Severity: minor

Dear Maintainer,

after an upgrade from 5.2.22-dfsg-2 to 5.2.24-dfsg-2 I can't install kernel
images any more:

  root@neocortex:~# LANG=C apt-get -f install
  Reading package lists... Done
  Building dependency tree      
  Reading state information... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  2 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Setting up linux-image-4.19.0-2-amd64-unsigned (4.19.16-1) ...
  /etc/kernel/postinst.d/dkms:
  Error! Could not locate dkms.conf file.
  File: /var/lib/dkms/virtualbox/5.2.22/source/dkms.conf does not exist.
  run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
  dpkg: error processing package linux-image-4.19.0-2-amd64-unsigned (--configure):
   installed linux-image-4.19.0-2-amd64-unsigned package post-installation script subprocess returned error exit status 1
  Setting up linux-headers-4.19.0-2-amd64 (4.19.16-1) ...
  /etc/kernel/header_postinst.d/dkms:
  Error! Could not locate dkms.conf file.
  File: /var/lib/dkms/virtualbox/5.2.22/source/dkms.conf does not exist.
  run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
  Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-4.19.0-2-amd64.postinst line 11.
  dpkg: error processing package linux-headers-4.19.0-2-amd64 (--configure):
   installed linux-headers-4.19.0-2-amd64 package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   linux-image-4.19.0-2-amd64-unsigned
   linux-headers-4.19.0-2-amd64

Looking in /var/lib/dkms/virtualbox/5.2.22/ shows leftover files:

  root@neocortex:~# find /var/lib/dkms/virtualbox/5.2.22/
  /var/lib/dkms/virtualbox/5.2.22/
  /var/lib/dkms/virtualbox/5.2.22/x86_64
  /var/lib/dkms/virtualbox/5.2.22/x86_64/module
  /var/lib/dkms/virtualbox/5.2.22/x86_64/module/vboxnetflt.ko
  /var/lib/dkms/virtualbox/5.2.22/x86_64/module/vboxpci.ko
  /var/lib/dkms/virtualbox/5.2.22/x86_64/module/vboxdrv.ko
  /var/lib/dkms/virtualbox/5.2.22/x86_64/module/vboxnetadp.ko
  /var/lib/dkms/virtualbox/5.2.22/x86_64/log
  /var/lib/dkms/virtualbox/5.2.22/x86_64/log/make.log
  /var/lib/dkms/virtualbox/5.2.22/source

I had invoked dkms recently using wrong parameters for --kernelsourcedir
which might have been leading to this situation.

Manually removing the /var/lib/dkms/virtualbox/5.2.22/ directory solves the
problem.

Kind regards

Sebastian Bremicker

-- System Information:
Debian Release: buster/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages virtualbox-dkms depends on:
ii  dkms  2.6.1-4

Versions of packages virtualbox-dkms recommends:
ii  virtualbox  5.2.24-dfsg-4

virtualbox-dkms suggests no packages.

-- no debconf information