Results 1 to 6 of 6

Thread: trying to install linux headers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2016-Feb
    Posts
    13

    trying to install linux headers

    Hi,
    I am running Kali 2 on a RPI 2b

    uname - r returns 3.18.16-v7

    when i try to run

    Code:
    apt-get install linux-headers-$(uname -r)
    i get the response

    Code:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package linux-headers-3.18.16-v7
    E: Couldn't find any package by regex 'linux-headers-3.18.16-v7'
    i have run the following which hasn't helped

    apt-get update
    apt-get dist-update -y

    my source.list file contains

    Code:
    deb http://http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security sana/updates main contrib non-free
    
    deb-src http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    any suggestions.... all i am trying to do is get the latest WiFi drivers from backports and not having the headers has stopped me in my tracks.

    Thanks..

  2. #2
    Join Date
    2016-Apr
    Posts
    100
    To see what in the repos try:
    Code:
     apt-cache search linux-header*

  3. #3
    Join Date
    2016-Feb
    Posts
    13

    Linux Header versions

    Quote Originally Posted by P373 View Post
    To see what in the repos try:
    Code:
     apt-cache search linux-header*
    Thanks for the reply @P373

    The response i get is for headers on version 4.0.0-kali1

    Code:
    linux-headers-4.0.0-kali1-all - All header files for Linux 4.0 (meta-package)
    linux-headers-4.0.0-kali1-all-armhf - All header files for Linux 4.0 (meta-package)
    linux-headers-4.0.0-kali1-armmp - Header files for Linux 4.0.0-kali1-armmp
    linux-headers-4.0.0-kali1-armmp-lpae - Header files for Linux 4.0.0-kali1-armmp-lpae
    linux-headers-4.0.0-kali1-common - Common header files for Linux 4.0.0-kali1
    linux-headers-armmp - Header files for Linux armmp configuration (meta-package)
    linux-headers-armmp-lpae - Header files for Linux armmp-lpae configuration (meta-package)
    I'm presuming this is a different version as my uname -r reports as 3.18.6-v7

    Do i need to upgrade and if so can it be done as an upgrade or is it a rebuild ?

    Thanks

  4. #4
    Join Date
    2016-Feb
    Posts
    13
    I have tried upgrading to Kali-rolling... but once done ( several hours ) my kernel version reports as the same... 3.18.1-v7...is that correct.

    The process i go through is

    cat << EOF > /etc/apt/sources.list
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    EOF

    apt-get update
    apt-get dist-upgrade -o APT::Force-LoopBreak=1

    If i don't run the Force-Loopback command it will not update.

    After finishing i run "uname -a" and get the same version number 3.18.6-v7

    This means i am still unable to update the headers as the repos seem to have a different version.

    Any suggestions?
    Last edited by pigsfoot; 2016-06-20 at 14:49. Reason: Original edit suggested it was fixed... unfortunatley its not

  5. #5
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi pigsfoot,

    you can install my custom kernel package. It comes with with kernel 4.1.21, wifi injection patch, touch screen support (which you can safely ignore if you haven't installed one), awesome kali-pi boot logo and kernel headers.
    You can get it here:

    https://whitedome.com.au/download/Ka...current.tar.gz

    Just download and extract it.
    Make sure you mount /boot first and then run install.sh

    More details can be found on the Sticky Finger's Kali-Pi page:
    https://whitedome.com.au/kali-pi

    Hope that helps,
    Re4son

  6. #6
    Join Date
    2016-Feb
    Posts
    13
    Hi @re4son,

    Thank you for the offer but i prefer to keep with a stock Kali build just for any future issues or updates.

    Is there no way to upgrade the 3.18 RPI kernel build to current ?

    Thanks

Similar Threads

  1. Hey! How to install linux-headers for nethunter?
    By SlopyWasTaken in forum Installing NetHunter
    Replies: 1
    Last Post: 2022-07-23, 15:01
  2. Possible to install old linux headers?
    By peter_7793 in forum General Archive
    Replies: 5
    Last Post: 2016-12-01, 20:06
  3. Kali Linux 2.0 unable to install linux-headers-3.18.0-kali3-686-pae
    By sla2016 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2015-12-31, 11:58
  4. Replies: 2
    Last Post: 2015-07-09, 20:24

Posting Permissions

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