Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-11-09, 11:02 AM   #1
renard
Registered User
 
Join Date: Oct 2008
Posts: 5
Default Problem with nvidia-installer on ubuntu (kernel sources not found)

Ok, I recently reinstalled my computer with ubuntu. As it has a quadro fx 770M, I have no choice than to install the drivers myself.
I used the NVIDIA-Linux-x86-177.80-pkg1.run package, which I used in the past, and worked fine back then.
However, when I tried to install it this time, it returned me an error, stating that the kernel source files were not found. I checked everything, they are installed fine, and are located in /lib/modules/2.6.28-15-generic/build, which is a link to the /usr/src/linux-headers-2.6.28-15-generic
These files do exist, so I see no problem there.
I tried both:
sudo sh NVIDIA-Linux-x86-177.80-pkg1.run --kernel-source-path /lib/modules/2.6.28-15-generic/build
and sudo sh NVIDIA-Linux-x86-177.80-pkg1.run --kernel-source-path /usr/src/linux-headers-2.6.28-15-generic

Both these gave me the same error as before.
I have really no clue what is wrong. (It is probably some stupid mistake I'm making, but I'm quite a newbie )
I searched on google, but most of the sites I found didn't provide a working solution.


Here is the content of the nvidia-installer.log

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Oct 11 17:56:39 2009
installer version: 1.0.7

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  no kernel module        : false
  force SELinux           : default
  no X server check       : false
  no cc version check     : false
  force tls               : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path   : (not specified)
  OpenGL install prefix   : (not specified)
  OpenGL install libdir   : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : /usr/src/linux-headers-2.6.28-15-generic
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 177.80.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
   this means that the installer will need to compile a kernel interface for
   your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/linux-headers-2.6.28-15-generic' as
   specified by the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-headers-2.6.28-15-generic'
-> Kernel output path: '/usr/src/linux-headers-2.6.28-15-generic'
ERROR: If you are using a Linux 2.4 kernel, please make sure
       you either have configured kernel sources matching your
       kernel or the correct set of kernel headers installed
       on your system.
       
       If you are using a Linux 2.6 kernel, please make sure
       you have configured kernel sources matching your kernel
       installed on your system. If you specified a separate
       output directory using either the "KBUILD_OUTPUT" or
       the "O" KBUILD parameter, make sure to specify this
       directory with the SYSOUT environment variable or with
       the equivalent nvidia-installer command line option.
       
       Depending on where and how the kernel sources (or the
       kernel headers) were installed, you may need to specify
       their location with the SYSSRC environment variable or
       the equivalent nvidia-installer 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.
I am really desperate. Please, oh mighty Nvidia-community, please show me what I am doing wrong.

Kind regards,

Renerad
renard is offline   Reply With Quote
Old 10-11-09, 11:44 AM   #2
packermann
Registered User
 
Join Date: Mar 2009
Posts: 47
Default Re: Problem with nvidia-installer on ubuntu (kernel sources not found)

Are you sure, you are using the proper linux-headers for your running kernel? Please, post the output of uname -a
You could also run the following to install the aproppiate linux-headers for your running kernel:

aptitude install linux-headers-$(uname -r)
packermann is offline   Reply With Quote
Old 10-11-09, 01:38 PM   #3
renard
Registered User
 
Join Date: Oct 2008
Posts: 5
Default Re: Problem with nvidia-installer on ubuntu (kernel sources not found)

Thanks for the reply!
The output of the uname -a command is:
Quote:
Linux m4400-ubuntu 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009 i686 GNU/Linux
The output of the aptitude installer is:

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
The following packages will be REMOVED:
  dkms{u} fakeroot{u} 
0 packages upgraded, 0 newly installed, 2 to remove and 147 not upgraded.
Need to get 0B of archives. After unpacking 840kB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 109110 files and directories currently installed.)
Removing dkms ...
Removing fakeroot ...
Processing triggers for man-db ...
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
The installer still gives the same error.
renard is offline   Reply With Quote
Old 10-11-09, 10:51 PM   #4
Arup
Registered User
 
Join Date: May 2009
Posts: 122
Default Re: Problem with nvidia-installer on ubuntu (kernel sources not found)

sudo apt-get install build-essential

Make sure to go to Synaptic and remove linux restricted modules and linux restricted modules common
Arup is offline   Reply With Quote
Old 10-12-09, 11:18 AM   #5
renard
Registered User
 
Join Date: Oct 2008
Posts: 5
Default Re: Problem with nvidia-installer on ubuntu (kernel sources not found)

The apt-get command gave me this result:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
The following packages were automatically installed and are no longer required:
  binutils-static
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
Which seems normal.
I also uninstalled all the linux-restricted-modules packages I could find, as demanded (only those of older kernel version were still on the system).
The installer is still giving the same error. Alack!
Thanks for the help anyway!
renard is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.