[Pkg-dkms-maint] Bug#642004: Bug#642004: dkms wants me to install already installed headers

Michael Gilbert michael.s.gilbert at gmail.com
Sun Sep 18 22:59:30 UTC 2011


Michal Suchanek wrote:

> Package: dkms
> Version: 2.2.0.2-1
> Severity: normal
> 
> I patched kernel source and rebuilt it using kernel-package.
> 
> dkms refuses to build modules for the installed kernel:
> 
> OptiPlex960:~# dkms build -m virtualbox -v 4.1.0 -k
> 3.0.0-1radeonr1-amd64
> Error! Your kernel headers for kernel 3.0.0-1radeonr1-amd64 cannot be
> found.
> Please install the linux-headers-3.0.0-1radeonr1-amd64 package,
> or use the --kernelsourcedir option to tell DKMS where it's located

I'm not sure the headers package will automatically put files in a
different directory given just a package name change.  You can check
this by looking in /usr/src, and if you have
/usr/src/linux-headers-3.0.0-1-amd64 and not *radeonr1* then that isn't
automatic.

If that's the case, you may want to submit a wishlist bug against the
kernel package asking for that feature.  Otherwise, you'll need to use
the --kernelsourcedir option like the helpful error message indicates.

Best wishes,
Mike





More information about the Pkg-dkms-maint mailing list