Results 1 to 5 of 5

Thread: Kernel Headers Installation

  1. #1
    Join Date
    2014-May
    Posts
    4

    Kernel Headers Installation

    Hi,
    After installing the latest Kali Linux Beaglebone Black image onto my Beaglebone Black, I have come across some issues with certain things that I try to "make" (this is for a patch). When I enter make, it responds with errors about kernel headers not being installed, or to specify the correct path to them. Can anyone direct me as to how to install the correct headers please?
    I've tried using apt-cache search linux-headers and installing some of the packages that come up, but even after that it still errors. I've also searched on these forums and the internet, but I haven't found anything.
    Thanks

  2. #2
    Code:
    apt-get update
    apt-get dist-upgrade
    #*may need to reboot here into a new kernel*
    apt-get install -y linux-headers-$(uname -r)
    Source: http://docs.kali.org/general-use/ins...-on-kali-linux
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

  3. #3
    Join Date
    2014-May
    Posts
    4
    apt-get dist-upgrade returned that I have all the latest stuff, so nothing happened there.
    How is one to boot into a new kernel as you say might be necessary?
    I just skipped that step as I don't know what do to, and I did the apt-get install -y linux-headers-$(uname -r).
    This returned
    E: Unable to locate package linux-headers-3.8.13-bone35.1
    E: Couldn't find any package by regex 'linux-headers-3.8.13-bone35.1'
    I did also go to the official site which has the recommended sources in /etc/apt/sources.list, and I added the source repositories just in case, but this made no difference.
    I think I will try booting from a new image because I may have messed some things up previously.

  4. #4
    Join Date
    2014-May
    Posts
    4
    Yes I booted up an fresh image of Kali and still responds the same with no package found...

  5. #5
    Join Date
    2014-Feb
    Posts
    309
    Building things against the kali arm images is going to be a tiny bit difficult unless you actually build the image yourself, or you'll need to download the source code for the kernel. We are working on a way to rectify the situation, but as it currently stands, the easiest way to figure out where the source is, is to use the kali-arm-build-scripts repo, look at the script, and pull down the sources. The bbb in particular uses it's own crafty little kernel build system, which is essentially another script that automates it. I do believe that MOST of it would work with a mainline kernel, but there are some bits that are still missing, but hopefully around 3.16's release, things needed will be there, and we can actually use the same sources as the x86/amd64 installs do. Only time will tell though.

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. Kernel headers problem
    By Philly in forum TroubleShooting Archive
    Replies: 59
    Last Post: 2016-09-12, 13:58
  3. Fix Kernel Headers Problem
    By Alton Jhon in forum General Archive
    Replies: 5
    Last Post: 2015-03-01, 03:04

Posting Permissions

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