Your message dated Sun, 22 Mar 2026 07:33:31 +0100
with message-id <[email protected]>
and subject line Re: virtualbox-dkms: leftover files from previous versions 
prevent module building with current version
has caused the Debian Bug report #919949,
regarding virtualbox-dkms: leftover files from previous versions prevent module 
building with current version
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
919949: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919949
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
triaging / cleaning up old bugs:
The DKMS handling works fine, I guess this issue has been fixed
already. If not, please feel free to reopen this bug.

--- End Message ---

Reply via email to