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

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

  1. #1
    Junior Member
    Join Date
    Mar 2016
    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 04:21 PM.

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

  3. #3
    Junior Member
    Join Date
    Jun 2017
    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
    Member
    Join Date
    Jun 2013
    Posts
    59
    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 AM.

  5. #5
    Junior Member
    Join Date
    Mar 2016
    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
    Member
    Join Date
    Jun 2013
    Posts
    59
    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
    Junior Member
    Join Date
    Jul 2017
    Posts
    1
    Sir.. Please describe how do you fix it with persistence...

  8. #8
    Junior Member
    Join Date
    Jun 2017
    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
    Junior Member
    Join Date
    Jul 2017
    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
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    548
    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.

Posting Permissions

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