Problem while updating kernel driver

I want to try the updated version of xpad driver (GitHub - paroj/xpad: Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers) for my xbox 360 controllers.

I know xpad driver is already installed, but this updated one may fix some bugs I experiment with the already installed one.

When I execute dkms install this is the output:

osmc@osmc:~$ sudo dkms install -m xpad -v 0.4
Error! Your kernel headers for kernel 4.14.78-2-osmc cannot be found.
Please install the linux-headers-4.14.78-2-osmc package,
or use the --kernelsourcedir option to tell DKMS where it's located

So I’ve try installing the headers with

sudo apt-get install rbp2-headers-4.14.78-2-osmc 

but it doesn’t seem to be enougth, the error is the same. What could I do?

Could you expand on this?

Well I mean the command outputs the same.

Try this: [SOLVED] Setting up Xbox One S controller via Wireless - #16 by chivigoku

Yeah! That was the trick!!! :smiley: thank you!!