LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-15-2008, 11:37 AM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
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?
 
Old 12-15-2008, 02:18 PM   #2
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
Have you got the kernel headers and kernel source packages installed? You will need these.
 
Old 12-17-2008, 03:27 PM   #3
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
How would I know?
 
Old 12-17-2008, 04:10 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
Old 12-17-2008, 04:34 PM   #5
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
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?

Last edited by lumix; 12-18-2008 at 06:23 AM.
 
Old 12-17-2008, 06:57 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
Old 12-17-2008, 07:04 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
Old 12-17-2008, 07:07 PM   #8
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,616
Blog Entries: 3

Rep: Reputation: 219Reputation: 219Reputation: 219
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.
 
Old 12-17-2008, 07:11 PM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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
 
Old 12-18-2008, 06:40 AM   #10
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
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.

Last edited by lumix; 12-18-2008 at 06:41 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC9 installing Nvidia driver "Unable to find Kernel Source Tree" ampace Fedora 3 05-18-2008 10:38 AM
nVidia Display driver can't determine kernel version ad1366 Linux - Hardware 6 03-19-2007 02:19 PM
NVIDIA driver install problem."kernel source "needed ztdep Linux - Hardware 4 07-21-2005 01:50 AM
Error "Kernel version mismatch" when nic driver will be loaded grubjo Linux - Networking 1 10-03-2003 04:12 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration