Results 1 to 3 of 3

Thread: Cannot DKMS Build Drivers - Header Name Mismatch

  1. #1
    Join Date
    2018-Dec
    Posts
    2

    Cannot DKMS Build Drivers - Header Name Mismatch

    The result of uname -r is 4.18.0-kali2-amd64, and apt install linux-headers-`uname -r` does not work ("unable to locate package"), and indeed the only available packages beginning with "linux-headers-" are
    linux-headers-4.18.0-kali3-all
    linux-headers-4.18.0-kali3-all-amd64
    linux-headers-4.18.0-kali3-amd64
    linux-headers-4.18.0-kali3-cloud-amd64
    linux-headers-4.18.0-kali3-common
    linux-headers-4.18.0-kali3-common-rt
    linux-headers-4.18.0-kali3-rt-amd64
    linux-headers-amd64
    linux-headers-cloud-amd64
    linux-headers-rt-amd64

    (that is the output from pressing tab after apt install linux-headers-). The command cat /etc/apt/sources.list yields
    deb http://http.kali.org/kali kali-rolling main contrib non-free
    deb-src http://http.kali.org/kali kali-rolling main contrib non-free

    I have done apt update, upgrade, full-upgrade, dist-upgrade, as well as rebooted (this is on a live usb with persistence I wrote today), and I still have the same problem. I am trying to build a driver with DKMS, but it does not work because of this name mismatch (uname -r has "kali2" and everything in the repository has "kali3"). What can I do?

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    You need to update the kernel on the persistence, which isn't easy; kernel isn't updated on persistence. Easiest in your case is to backup your data, download the weekly ISO, redo the persistence and install that driver right away.

  3. #3
    Join Date
    2018-Dec
    Posts
    2
    Quote Originally Posted by Mister_X View Post
    download the weekly ISO
    Awesome, that worked, thank you!

Similar Threads

  1. Cannot install kernel headers (kernel header mismatch)
    By sebos in forum Installing Archive
    Replies: 10
    Last Post: 2022-12-19, 08:11
  2. fglrx-modules-dkms(your architecture here).deb will not build
    By markmonk123 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2014-09-02, 22:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •