What have you tried: i have tried to install driver for my razer blade 14, i intalled openrazer cause this is the easiest way i thought. So the first step to add the repo worked.
What is the error: Error! Your kernel headers for kernel 6.8.11-amd64 cannot be found at /lib/modules/6.8.11-amd64/build or /lib/modules/6.8.11-amd64/source.
Please install the linux-headers-6.8.11-amd64 package or use the --kernelsourcedir option to tell DKMS where it’s located.
What device is this on: Razerblade 14
I allready looked which kernel im using via uname -r and its saying: 6.8.11-amd64
if i try to install the acc version of openrazer it gives me the error above.
i tried this command:
sudo dkms install -m openrazer-driver/3.9.0
maybe somone of u had the same kernel problems and know how to solve this or can me explain how i can use --kernelsourcedir to say DKMS where the kernels are loctated.
I also dont know how to find out the location of my kernel.
Im a big newbie and its the start of my linux history.
i have allready installed dkms.
i typed in the command u said
sudo apt -y install dkms
the response is that my dkms is on the newest version and packages installed in dkms.
so this stilll dont work and gives me the same error above
sudo apt install linux-headers-§(uname -r)
the error:
Error: Unable to locate package linux-headers-6.8.11-amd64
Error: Couldn’t find any package by glob ‘linux-headers-6.8.11-amd64’
so the dkms command will still not work and still give me that error:
Error! Your kernel headers for kernel 6.8.11-amd64 cannot be found at /lib/modules/6.8.11-amd64/build or /lib/modules/6.8.11-amd64/source.
Please install the linux-headers-6.8.11-amd64 package or use the --kernelsourcedir option to tell DKMS where it’s located.
maybe u know how i can add the location via the --kernelsourcedir command ?
Try changing to the cloudfare repo for updating and try commands again.
Go to ‘settings → Kali Tweaks’ once launched, scroll down to network repositories, and change to cloudflare CDN
use arrow keys to move between options, hit space bar to choose a highlighted option, then tab key to highlight ‘Apply’ and hit enter, then try the above commands again.