dkms: rebuild kernel module for manually installed upstrem kernel

9,061

Besides installing the linux-image-... package, you also need linux-headers-... . After installation of the headers, the modules for that kernel should be build automatically. If not, manually trigger a installation of modules for the current loaded kernel:

sudo dkms autoinstall -k $(uname -r)
Share:
9,061

Related videos on Youtube

didi_X8
Author by

didi_X8

Updated on September 18, 2022

Comments

  • didi_X8
    didi_X8 over 1 year

    I installed an "upstream kernel" (downloaded deb and installed with dpkg) because of an issue I have with the default kernel (see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/956918) Now the custom battery settings I had are lost. I used the kernel modukle tp-smapi to change this settings on a thinkpad. If I try to load this module now, it fails because it was not built for this kernel. The installed packages are "tp-smapi-dkms" and "tp-smapi-source". Automatic rebuilding seems not to have been triggered. How can I do it manually?

  • Andy
    Andy about 12 years
    It should be noted that with some modules if the compiler version used to build the mainline kernel and the one on the target system do not match there is a small possibility that the module will not function correctly.
  • Lekensteyn
    Lekensteyn about 12 years
    @Andy I've only had issues with such kernels/ modules when trying to rmmod it, but it in theory it can indeed happen.