Results 1 to 19 of 19

Thread: Cannot install kernel header linux-headers-4.9.0-kali4-amd64

  1. #1
    Join Date
    2016-Mar
    Posts
    2

    Cannot install kernel header linux-headers-4.9.0-kali4-amd64

    Hello, I'm very frustrated to install header. I've searched thousands of pages but couldn't find a working solution.

    So let me tell you what I did,

    At first, my sources.list is

    deb http://http.kali.org/kali kali-rolling main contrib non-free
    deb-src http://http.kali.org/kali kali-rolling main contrib non-free
    Then I did the following;

    1. apt-get update
    2. apt-get upgrade
    3. apt-get dist-upgrade
    4. reboot


    Then I gave

    apt-cache search linux-headers
    and found the header
    linux-headers-4.9.0-kali4-amd64
    Then I looked with
    uname -a and got
    Linux kali 4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux

    Finally I tried to install with
    apt-get install linux-headers-$(uname -r)
    And got the following error:
    HTML Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package linux-headers-4.9.0-kali3-amd64
    E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'
    E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'
    If I try
    apt-get install linux-headers-4.9.0-kali4-amd64
    then it gives me
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-4.9.0-kali4-amd64 is already the newest version (4.9.25-1kali1).
    The following packages were automatically installed and are no longer required:
      jsql libjs-mochikit python-advancedhttpserver python-alembic python-boltons python-cheetah python-dap
      python-editor python-formencode python-geoip2 python-geojson python-icalendar python-maxminddb
      python-mpltoolkits.basemap python-openid python-pampy python-paste python-pastedeploy
      python-pastedeploy-tpl python-pastescript python-pluginbase python-pyotp python-scgi python-smoke-zephyr
      python-tempita python-termcolor python-tzlocal
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Where it says, "linux-headers-4.9.0-kali4-amd64 is already the newest version (4.9.25-1kali1)"

    But if it is already installed then why do "uname -a" gives

    Linux kali 4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux
    Isn't is suppose to give

    Linux kali 4.9.0-kali4-amd64 ............
    P:S. I'm running Kali on persistence USB mode

    Your response would be very much appreciated.

    Thanks,
    Last edited by adhossain; 2017-06-03 at 16:21.

  2. #2
    Join Date
    2017-Jun
    Posts
    3
    Well, I have the exact same issue... Hope we find some sort of solution to that.

  3. #3
    Join Date
    2017-Jun
    Location
    root
    Posts
    4
    Quote Originally Posted by j1nxd071r View Post
    Well, I have the exact same issue... Hope we find some sort of solution to that.
    Same here, I have the same issue and i suspect this is the reason why Virtualbox don't works.
    If someone can help us
    Thank you so much

  4. #4
    I had the same issue with my persistence setup, I just grabbed a new weekly image and things worked great again....I had trouble shooted for days when I should have just re-did my persistence stick immediately 😒 Something weird about the kernel not updating on it properly I would imagine.
    sudo apt install linux-headers-amd64 has worked as intended after a the fresh install.
    Last edited by undersc0re; 2017-06-13 at 03:38.

  5. #5
    Join Date
    2016-Mar
    Posts
    2
    Quote Originally Posted by undersc0re View Post
    I had the same issue with my persistence setup, I just grabbed a new weekly image and things worked great again....I had trouble shooted for days when I should have just re-did my persistence stick immediately �� Something weird about the kernel not updating on it properly I would imagine.
    sudo apt install linux-headers-amd64 has worked as intended after a the fresh install.
    So it worked for the latest weekly release?

  6. #6
    Quote Originally Posted by adhossain View Post
    So it worked for the latest weekly release?
    Yes it worked for me, once I put the latest weekly image on my usb stick with persistence, it worked fine...I think maybe it is something to do with persistence. I think you have to edit your sources list for updating when you use persistence usb as well, I am not sure if that would have helped in this situation or not though.

  7. #7
    Join Date
    2017-Jul
    Posts
    1
    Sir.. Please describe how do you fix it with persistence...

  8. #8
    Join Date
    2017-Jun
    Location
    Anonymous
    Posts
    2
    apt-get update && apt-get upgrade && apt-get dist-upgrade

    apt-get update && apt-get upgrade && apt-get dist-upgrade
    Finally use this commend

    apt-get install linux-headers-$(uname -r)

  9. #9
    Join Date
    2017-Jul
    Posts
    8

    Angry linux-headers-$(uname -r) not found

    Quote Originally Posted by arman View Post
    apt-get update && apt-get upgrade && apt-get dist-upgrade



    Finally use this commend

    apt-get install linux-headers-$(uname -r)
    I followed these steps 100% and I received the following output:

    Code:
    root@kali:~# apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package linux-headers-4.9.0-kali3-amd64
    E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'
    E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'

  10. #10
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by Acidic9 View Post
    I followed these steps 100% and I received the following output:

    Code:
    root@kali:~# apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package linux-headers-4.9.0-kali3-amd64
    E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'
    E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'
    Show the output of cat /etc/apt/sources.list.

  11. #11
    Join Date
    2017-Jul
    Posts
    12

    Change the ISP, Waiting for Headers issue will be resolved

    Hi Friends,

    I am also facing the same problem. I use Win10 Laptop with VMplayer installed. Earlier I had downloaded Kali VM image from the office website. Configured & powered on successfully. First command I used is apt-get update to check is there any thing needs an update. After executing the command. I have noticed that it is getting stuck at Waiting for Headers... After 10-15 Minutes, I gives error.

    Searched Google and tried updating the repositories but still the same. Also tried setting up a port forwarding, but still the same.


    root@kali:~# apt-get update
    Ign:1 http://http.kali.org/kali kali-rolling InRelease
    Err:2 http://http.kali.org/kali kali-rolling Release
    Connection failed
    Reading package lists... Done
    E: The repository 'http://http.kali.org/kali kali-rolling Release' does no longer have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    root@kali:~# apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    linux-headers-4.9.0-kali3-amd64 is already the newest version (4.9.18-1kali1).
    0 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.

    deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access, uncomment the following line
    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free


    Finally I given a try changing the Internet ISP i.e, earlier using home broadband and now connected the system to the Mobile Internet(different ISP). Voila...

    It worked. I am successfully updated the Kali linux - Downloaded around 886MB updates.

    Now again connected back to cable broadband and the again the issue started. It is getting stuck at Waiting for headers. So now thinking where is the problem, whether it is in the router / connected internet.

    Not only the Waiting for headers, I am unable to open the Webpage cdimage.kali.org as well as http://http.kali.org.
    Last edited by CrazyArjun; 2017-07-28 at 18:27. Reason: Quote is not applied properly

  12. #12
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    To check if that's not the problem with your ISP, generate ping request to repo servers.

  13. #13
    Join Date
    2017-Jul
    Posts
    12
    Please find the below info.

    C:\Users\Crazy>tracert cdimage.kali.org

    Tracing route to cdimage.kali.org [192.99.200.113]
    over a maximum of 30 hops:

    1 <1 ms <1 ms <1 ms ROUTERNAME [xx.xx.xx.xx]
    2 5 ms 2 ms 4 ms xx.xx.xx.xx
    3 * * * Request timed out.
    4 2 ms 2 ms 2 ms 1.186.35.13.dvois.com [1.186.35.13]
    5 4 ms 2 ms 2 ms 1.186.32.209.dvois.com [1.186.32.209]
    6 24 ms 22 ms 30 ms 125.21.255.125
    7 162 ms 172 ms 152 ms 182.79.187.26
    8 * * * Request timed out.
    9 * * * Request timed out.
    10 * * * Request timed out.
    11 * * * Request timed out.
    12 * * * Request timed out.
    13 * * * Request timed out.
    14 * * * Request timed out.
    15 * * * Request timed out.
    16 * * * Request timed out.
    17 * * * Request timed out.
    18 * * * Request timed out.
    19 * * * Request timed out.
    20 * * * Request timed out.
    21 * * * Request timed out.
    22 * * * Request timed out.
    23 * * * Request timed out.
    24 * * * Request timed out.
    25 * * * Request timed out.
    26 * * * Request timed out.
    27 * * * Request timed out.
    28 * * * Request timed out.
    29 * * * Request timed out.
    30 * * * Request timed out.

    Trace complete.



    C:\Users\Crazy>ping kali.org

    Pinging kali.org [192.124.249.10] with 32 bytes of data:
    Reply from 192.124.249.10: bytes=32 time=151ms TTL=52
    Reply from 192.124.249.10: bytes=32 time=151ms TTL=52
    Reply from 192.124.249.10: bytes=32 time=152ms TTL=52
    Reply from 192.124.249.10: bytes=32 time=151ms TTL=52

    Ping statistics for 192.124.249.10:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 151ms, Maximum = 152ms, Average = 151ms


    C:\Users\Crazy>ping cdimage.kali.org

    Pinging cdimage.kali.org [192.99.200.113] with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.

    Ping statistics for 192.99.200.113:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


    C:\Users\Crazy>ping http.kali.org

    Pinging hebe.kali.org [192.99.200.113] with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.

    Ping statistics for 192.99.200.113:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

  14. #14
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    It looks like a problem with your ISP. You should report them why they are blocking kali repo. Do not use the DNS server of your ISP. Switch to 8.8.8.8 & 8.8.4.4

  15. #15
    Join Date
    2017-Jul
    Posts
    12
    Thanks for the response and suggestion. I have informed them about the issue and they are investigating it. I have also switched the DNS to 8.8.8.8 and 8.8.4.4 as well.

  16. #16
    Join Date
    2017-Jul
    Posts
    12
    Still the issue persists. ISP is unable to confirm the issue is from their side. They say issue is from my system or router a they are able to browse from their systems. How to identify that my router is making this problem? I know for sure that my system do not have a problem. Kali VM is making a successful connection to the http.kali.org if I switch to a different ISP internet.

    I am using Mi Router 3C. Please advise.

  17. #17
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Change your ISP and show them that it was the problem with their routing.

  18. #18
    Join Date
    2017-Aug
    Posts
    1
    Hello Arman

    I tried your commands and it worked!!!!

    sources.list

    deb http://http.kali.org/kali kali-rolling main contrib non-free

    #deb-src http://http.kali.org/kali kali main non-free contri




    before
    Linux kali 4.9.0-kali1-amd64

    after update
    Linux Rolling 4.11.0-kali1-amd64

  19. #19
    Join Date
    2017-Jul
    Posts
    12
    Quote Originally Posted by _defalt View Post
    Change your ISP and show them that it was the problem with their routing.
    I told them if the website is not working then I no need to use your internet connection. The local Field engineer connected me with their head branch IT guy for fixing the issue. I have provided the websites to him which I am unable to access. Now it worked. He excluded those websites. When asked what is the reason, there will be a default block list from every ISP and they simply removed that.

    Thanks all for your help.

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. 2020.4 5.7.0-kali1-amd64 kernel header missing
    By OwnerKL in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-10-28, 13:49
  3. Bug Last Upgrade linux-image-4.19.0-kali4-amd64
    By Normac in forum TroubleShooting Archive
    Replies: 7
    Last Post: 2019-05-13, 01:44

Posting Permissions

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