Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: NVIDIA driver install - Error: Unable to find the kernel source tree

  1. #1
    Join Date
    Jun 2008
    Beans
    1

    NVIDIA driver install - Error: Unable to find the kernel source tree

    After following the very helpful guide from Starcannon in http://ubuntuforums.org/showthread.p...ghlight=nvidia I managed to get the installer working.

    Unfortunately the installer is having problems of its own. It had a warning along the lines of 'couldn't find kernel compiler' and attempted to download something to do with the kernel. This didn't work either and I'm currently looking at:

    "Error: unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernal source files for your kernel and that they are properly configured..."

    This Leads to:

    "Error: installation has failed. Please see the file '/var/log/nvidia-installer.log' for details

    I've attached this file.

    Any ideas on what I need to do to get this working? Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    May 2008
    Beans
    142
    Distro
    Ubuntu Karmic Koala (testing)

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    Install your kernel sources ?

  3. #3
    Join Date
    Dec 2008
    Beans
    6

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    I just want to update this thread to try and save someone some time. I was getting the same message as moonwalk and spent many frustrating hours trying to fix it before figuring out that I had a very simple problem:

    /boot/grub/menu.lst wasn't updated properly and I was booting into the wrong kernel! I was booting into 2.6.24-19-generic when I should have been in 2.6.27-9-generic. Once I fixed this installing the Nvidia drivers was completely painless.

    'sudo update-grub' didn't fix the file initially, so I backed it up and deleted it and then re-ran 'update-grub'. This time it worked, so I just copied the WindowsXP section from the backup file into the new one and everything was peachy.

  4. #4
    Join Date
    Jan 2009
    Beans
    2

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    I had this problem after my kernel got upgraded. I had to do a
    sudo apt-get install linux-headers-`uname -r`
    then run the Nvidia installer.

  5. #5
    Join Date
    Jan 2010
    Beans
    7

    Wink Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree
    I had this problem after my kernel got upgraded. I had to do a
    sudo apt-get install linux-headers-`uname -r`
    then run the Nvidia installer.
    tank you very helpfull

  6. #6
    Join Date
    Oct 2008
    Location
    Cincinnati, Ohio
    Beans
    49
    Distro
    Lubuntu 12.04 Precise Pangolin

    Talking Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    Thank goodness for this thread! I've been struggling with nVidia driver issues for the past few days, burning precious hours trying to fix something that appeared to have spontaneously broken without my help. There are dozens of nVidia problem-solution threads, but none of the others I checked helped me make any progress. It turns out that my problem was the kernel source tree thing (which I only discovered by trying to manually install the latest nVidia driver), and this thread solved my problem! Woohoo!

  7. #7
    Join Date
    Feb 2010
    Beans
    6

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    Sorted for me also. Shouldn't kernel sources automatically download with the update? This should be stickied

  8. #8
    Join Date
    Jan 2010
    Beans
    10

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    thanks for this thread. problem solved on my desktop too when i got graphics problems switching to natty narwhal.

  9. #9
    Join Date
    Jun 2011
    Beans
    2

    Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    Quote Originally Posted by hdog View Post
    I had this problem after my kernel got upgraded. I had to do a
    sudo apt-get install linux-headers-`uname -r`
    then run the Nvidia installer.
    This thread was a lifesaver for me as well! I was having a hard time figuring out what package to install to get the kernel source tree. This helped a lot.

    (I was actually running Debian Lenny, but it works exactly the same way)

  10. #10
    Join Date
    May 2009
    Beans
    28

    Smile Re: NVIDIA driver install - Error: Unable to find the kernel source tree

    hdog, you sir are a gentleman and a scholar.

    After spending hours on this, getting nowhere, your simple solution worked miracles, even on Natty Kubuntu.

    This needs to be better indexed by google so it saves more people time.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •