Results 1 to 10 of 10

Thread: Trouble updating kernel headers

  1. #1
    Join Date
    2016-Mar
    Location
    Genova, Italy
    Posts
    4

    Unhappy Trouble updating kernel headers

    Hi guys!
    For 3 days i'm stuck with this problem:
    I need to install my nvidia card drivers, so i have to update my kernel headers; no problem, i follow the instruction but nothing worked for me.

    E: Unable to locate package linux-headers-4.0.0-kali1-amd64
    so i found on this forum various solution but nothing worked for me. I'm a noob, so I'm probably wrong just something simple.

    My source file contain only the kali rolling repo

    deb http://http.kali.org/kali kali main non-free contrib
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    shoud i add something?

    but if i go there: http://http.kali.org/kali/pool/main/l/linux/?C=S;O=D i can easily find the linux-image-4.4.0-kali1-amd64-dbg_4.4.6-1kali1_amd64.deb file, that is an update for my kernel, but how do I install it?
    I'm really getting crazy, i want to understand what i'm doing wrong, please help me!!
    and sorry for my bad English

  2. #2
    To update kernel one would usually just do dist-upgrade
    Code:
    apt-get update && apt-get dist-upgrade -y
    Reboot when complete so you're using the installed kernel.
    "uname -a" after that to check kernel version.

    Once you have the latest kernel, try installing the kernel headers again.
    Last edited by aephlux; 2016-03-20 at 03:38.

  3. #3
    Join Date
    2016-Mar
    Location
    Genova, Italy
    Posts
    4
    To update kernel one would usually just do dist-upgrade
    Code:

    apt-get update && apt-get dist-upgrade -y

    Reboot when complete so you're using the installed kernel.
    "uname -a" after that to check kernel version.

    Once you have the latest kernel, try installing the kernel headers again.
    Nothing new, again the same error as before:

    Building dependency tree
    Reading state information... Done
    E: Unable to locate package linux-headers-4.3.0-kali1-amd64
    E: Couldn't find any package by regex 'linux-headers-4.3.0-kali1-amd64'

  4. #4
    Quote Originally Posted by simoneeva View Post
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package linux-headers-4.3.0-kali1-amd64
    E: Couldn't find any package by regex 'linux-headers-4.3.0-kali1-amd64'
    Apparently you're not using the current kernel version.
    Kali only keeps the latest kernel headers in the repo.

    What is the output of "uname -a"?

    Maybe try running update and dist-upgrade again?

  5. #5
    Join Date
    2016-Mar
    Location
    Genova, Italy
    Posts
    4
    uname -a
    4.3.0-kali1-amd64 #1 SMP Debian 4.3.3-5kali4 (2016-01-13) x86_64 GNU/Linux

    Now I will try to reinstall kali and see what happens.

  6. #6
    Join Date
    2016-Mar
    Location
    Genova, Italy
    Posts
    4
    Problem solved! I formatted everything, added the rolling repo and all works fine! Tanks for the support!!

  7. #7
    Join Date
    2016-Mar
    Posts
    2

    linux headers

    hello, sir i am having the same problem i also got the same result on using command uname -a how did you fix it, what did you mean by you formated it and it solved your issue kindly assist!

  8. #8
    Join Date
    2016-Mar
    Posts
    2
    hy, can you tell me how did you format? i am having the same problem..please assist..same as yours

  9. #9
    Join Date
    2016-Mar
    Location
    Bitola, Macedonia
    Posts
    19
    reinstall kali and the problem will be solved

  10. #10
    Join Date
    2016-May
    Posts
    8
    Not sure if you are still checking on this thread, but if so I am running apt-get update && apt-get dist-upgrade -y right now. It is taking awhile to load.
    After It finishes loading do I have to "try installing the kernel headers again"?
    I am doing all of this because there seems to be a problem with the driver for Railink Chipset for wifi adapters, the problem being no injection.
    I tried the same wifi card with an old version of Backtrack and there was no problem at all with injection.
    Anyway after I run apt-get update && apt-get dist-upgrade -y what should my next step be after rebooting?
    Thanks

Similar Threads

  1. Cannot install kernel headers (kernel header mismatch)
    By sebos in forum Installing Archive
    Replies: 10
    Last Post: 2022-12-19, 08:11
  2. Trouble installing kernel headers
    By ThatManNextStore in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2020-02-26, 20:59
  3. Replies: 2
    Last Post: 2015-07-09, 20:24
  4. VMware Tools failed after updating Linux Kernel Headers
    By altjx in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2013-06-05, 08:53

Posting Permissions

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