PDA

View Full Version : Cannot DKMS Build Drivers - Header Name Mismatch



shaletome
2018-12-09, 07:43
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?

Mister_X
2018-12-09, 16:59
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.

shaletome
2018-12-11, 05:07
download the weekly ISO

Awesome, that worked, thank you!