Results 1 to 4 of 4

Thread: Nvidia driver install error, kernel source tree not found, not able to update

  1. #1
    Join Date
    2017-May
    Posts
    2

    Nvidia driver install error, kernel source tree not found, not able to update

    Hello,

    this is my system:

    Kali GNU/Linux Rolling 64-Bit
    GNOME 3.20.2
    Nvidia Driver 375.66.
    Nvidia Quadro K5100M

    Linux ZKali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux

    My problem:
    i installed Kali from my CD ISO i downloaded from Kali homepage and used it some times to install it.
    Yesterday, i did and after that i downloaded the newest nvidia driver and tried to install.

    The installer Error : "Unable to find kernel source tree for currently running kernel. ..."

    A quick search and i found this fix:
    apt install -y -f linux-headers-$(uname -r)

    But there is no packet with this uname: (sry for german console output)
    E: Paket linux-headers-4.6.0-kali1-amd64 kann nicht gefunden werden.
    E: Mittels des Musters »linux-headers-4.6.0-kali1-amd64« konnte kein Paket gefunden werden.
    E: Mittels regulärem Ausdruck »linux-headers-4.6.0-kali1-amd64« konnte kein Paket gefunden werden.

    What to do for next steps?
    With regards, Rarebit.

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    You need to update your system first, kernel 4.6 is very old
    - apt-get update
    - apt-get dist-upgrade
    - reboot

    then start the install.

  3. #3
    Join Date
    2017-May
    Posts
    2
    I tried it, but it does nothing, With uname -a i get the same version after reboot and the nvidia driver give the same error.
    Here my log file from the driver installer:

    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Sun May 28 03:16:21 2017
    installer version: 375.66

    PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

    nvidia-installer command line:
    ./nvidia-installer

    Unable to load: nvidia-installer ncurses v6 user interface

    Using: nvidia-installer ncurses user interface
    -> Detected 8 CPUs online; setting concurrency level to 8.
    -> License accepted.
    -> Installing NVIDIA driver version 375.66.
    -> Performing CC sanity check with CC="/usr/bin/cc".
    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.
    Maybe other informations about my system or versions required?

  4. #4
    Join Date
    2017-Sep
    Posts
    1
    Quote Originally Posted by Rarebit View Post
    I tried it, but it does nothing, With uname -a i get the same version after reboot and the nvidia driver give the same error.
    Here my log file from the driver installer:



    Maybe other informations about my system or versions required?
    Hey man
    I have the same problem. Did you find the solution?

Similar Threads

  1. [Help] After install and i want update found is the Error
    By al-morshed in forum Installing Archive
    Replies: 2
    Last Post: 2020-12-03, 22:36
  2. Download Source Tree for Precompiled Version of Kali
    By jturner in forum Building Archive
    Replies: 0
    Last Post: 2016-02-09, 17:11
  3. Replies: 5
    Last Post: 2015-08-21, 20:39

Tags for this Thread

Posting Permissions

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