LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nvidia driver install script: "Unable to determine the version of the kernel sources" (https://www.linuxquestions.org/questions/linux-software-2/nvidia-driver-install-script-unable-to-determine-the-version-of-the-kernel-sources-690731/)

lumix 12-15-2008 11:37 AM

Nvidia driver install script: "Unable to determine the version of the kernel sources"
 
The rest of the message is " located in /lib/modules/2.6.24-16-server/build". The version is Ubuntu server 8.04. Why can't it, and how can I help it along?

rjwilmsi 12-15-2008 02:18 PM

Have you got the kernel headers and kernel source packages installed? You will need these.

lumix 12-17-2008 03:27 PM

How would I know?

Junior Hacker 12-17-2008 04:10 PM

You should have synaptic package manager. Open it and click on "installed" on the left side to see what is all installed. You need linux-headers for the current running kernel, to see which kernel you are using type: uname -r in a terminal.
By installing linux-headers with synaptic, you'll also end up installing dependencies, which is a good thing.

lumix 12-17-2008 04:34 PM

Linux-source and correct linux-headers were/are both installed.

I prefer to use cli, so why wouldn't apt-get install work? I thought it knew to install dependencies. Or aptitude?

Junior Hacker 12-17-2008 06:57 PM

If in fact you are currently booted into 2.6.24-16-server kernel, and linux-headers-2.6.24-16-server package is installed, try passing an argument to the Nvidia installer similar to this when initiating it:
Code:

sh Nvidia-version_you_are_using-.run --kernel-source-path=/lib/modules/2.6.24-16-server/build/include/
Adding the /include part.
Apt and Aptitude do install dependencies.

Junior Hacker 12-17-2008 07:04 PM

The actual header files (files.h) should be in /lib/modules/2.6.24-16-server/build/include/linux. You can even try adding the /linux at the end also if just adding /include doesn't do it. Make sure the directory exists and it is full of ".h" files.

Drakeo 12-17-2008 07:07 PM

that is the old kernel update to 2.6.24.22 any way system-> admin-> hardware check the nvida box then ubuntu will down load and intall the restrictive drivers reboot your fixed.

Junior Hacker 12-17-2008 07:11 PM

You can also get it to use the source instead of headers with this argument:
Code:

sh Nvidia-version_you_are_using-.run --kernel-source-path=/usr/src/linux-headers-2.6.24-16-server

lumix 12-18-2008 06:40 AM

Many thanks for the responses. I have in fact tried the command line option that specifies the location of the source files, ending with the "include" directory (".../include"). It would tell me that the version cannot be determined, and I seem to remember this was for lack of a version.h in the "kernel" directory (within that path). It would then tell me this is probably because I hadn't correctly "configured" my source files.

As a side note, that is exactly the kind of thing that really ruffles me in the linux world. The message was akin to someone walking into my woodworking shop...no, someone elses shop, and telling me it needs to be "configured correctly"...and then promptly walking out. I'll be damned if I have the slightest idea what "configured" OR "correctly" looks like, in either of these contexts.

For what it's worth, I'm running 2.6.27-9-generic.


All times are GMT -5. The time now is 10:17 AM.