I cant install NVIDIA driver

Hello everyone. I have problem with NVIDIA drivers.
I want install it but i have a some problems.
I use GPU: NVIDIA GeForce 940MX
And the kernel is 6.5.13-7-MANJARO

I want install drivers for my GPU. I install file

I had install file with name NVIDIA-Linux-x86_64-550.67.run
And run it with sudo bash NVIDIA-Linux-x86_64-550.67.run, and then i see the error

And in log file

cat /var/log/nvidia-installer.log                                        1 ✘  10s   amir  
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Apr  8 23:33:54 2024
installer version: 550.67

PATH: /home/amir/bin:/home/amir/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Unable to load: nvidia-installer ncurses user interface

Using: nvidia-installer ncurses v6 user interface (widechar)
-> Detected 4 CPUs online; setting concurrency level to 4.
-> Unable to scan initramfs: no tool found
-> Installing NVIDIA driver version 550.67.
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Performing CC check.
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.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Please help me


Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

Welcome to Manjaro.

Please stop what you are doing.

And review the procedures for handling drivers on Manjaro.

We do not go to some www website and download them manually.

In fact with linux … you should rarely do this for any software.

But Manjaro also has its own mechanisms for drivers and kernels. mhwd.

Or the GUI “Manjaro Settings Manager”.

For example, to print available drivers you may use:

mhwd -l

PS.

This guide will also help with how to find and post information, format code, etc.

1 Like

please post the output of the mandatory

inxi --admin --verbosity=7 --filter --no-host --width

first. use the option preformatted text ( the </> ) and paste it inside

Hi @Amir1 ,
I wonder whether you can use another kernel, because the one you are using has reached EOL.

Hope it help, regards,

Ah, good catch.
I focused on the method without even looking at the kernel.

@Amir1
Please install and boot into a supported kernel like 6.1 or 6.6, and then remove the dead 6.5 kernel.

(this is a supplement to above instructions about mhwd, not a replacement for them)