NVIDIA Driver giving errors during installation, Kernel source tree not found

I have a HP Pavilion Laptop with an intel core i5 and a Nvidia Geforce MX250 graphics card.
I downloaded the driver for my card from the Nvidia website (the driver is correct for my system I have checked)
While Installing the driver I came across and error

ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have 
         installed the kernel source files for your kernel and that they are properly configured; on Red    
         Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM         
         installed.  If you know the correct kernel source files are installed, you may specify the kernel  
         source path with the '--kernel-source-path' command line option.

I have all previous open source drivers installed by Manjaro disabled
My kernel is KDE Plasma 5.10.61-1-MANJARO

How do I fix this error ?

For installing graphics cards please follow the link and open de MSM and try to install the right driver from the hardware detection option

If this process does not work for you this is the next step

https://wiki.manjaro.org/index.php/Configure_Graphics_Cards

If this does not provide the solution, please:

p.s. if you do want to go through installing manualy and want the headers you need to install linuxXXX-headers where XXX is the kernel version, eg if you have 510 installed this would be linux510-headers

3 Likes