Results 1 to 4 of 4

Thread: Kali Kernel 4.13 is looking for the 4.12 headers... no fix so far

  1. #1

    Angry Kali Kernel 4.13 is looking for the 4.12 headers... no fix so far

    Note: I am new to Linux/Kali but I'm getting the hang of it

    The problem
    I updated my Kali Linux OS (I use the Live USB /w persistence) and I am having tremendous problems installing the right kernel headers. My Linux OS is looking for the 4.12 headers, although I have kernel 13 installed through the latest updates. So where is this mismatch coming from? this happened when I updated from 4.12 to 4.13 through the system updates. So far the problem still exists...

    This mismatch results in a lot of packages failing to install.. no kernel header found.


    What I did
    installed all the updates through:
    - apt-get update
    - apt-get upgrade
    - apt-get dist-upgrade
    - more of those commands for updates

    I also installed the latest 4.13 amd64 headers and image from the official https://http.kali.org/kali/pool/main/l/linux/ repo...

    The Results

    > uname -r
    4.12.0-kali1-amd64

    > uname -a
    Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux

    > 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.12.0-kali1-amd64
    E: Couldn't find any package by glob 'linux-headers-4.12.0-kali1-amd64'
    E: Couldn't find any package by regex 'linux-headers-4.12.0-kali1-amd64'


    > apt-cache search linux-headers
    aufs-dkms - DKMS files to build and install aufs
    linux-headers-4.13.0-kali1-all - All header files for Linux 4.13 (meta-package)
    linux-headers-4.13.0-kali1-all-amd64 - All header files for Linux 4.13 (meta-package)
    linux-headers-4.13.0-kali1-amd64 - Header files for Linux 4.13.0-kali1-amd64
    linux-headers-4.13.0-kali1-common - Common header files for Linux 4.13.0-kali1
    linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package)
    linux-libc-dev-alpha-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-arm64-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-armhf-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-hppa-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-m68k-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mips-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mips64-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mips64el-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-mipsel-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-powerpc-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-powerpcspe-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-ppc64-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-ppc64el-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-s390x-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-sh4-cross - Linux Kernel Headers for development (for cross-compiling)
    linux-libc-dev-sparc64-cross - Linux Kernel Headers for development (for cross-compiling)

    >cat /etc/apt/sources.list
    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

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    Reboot and boot into 4.13. Then run the apt-get install command again.

  3. #3
    Did not fix anything unfortunately...

    > apt-get install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    libbind9-140 libdns162 libisc160 libisccc-export140
    libisccfg-export140 libisccfg140
    Use 'apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    > dpkg-query -l linux-generic\* linux-image\*
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-==============-============-============-=================================
    un linux-image <none> <none> (no description available)
    ii linux-image-4. 4.12.6-1kali amd64 Linux 4.12 for 64-bit PCs
    ii linux-image-4. 4.13.4-2kali amd64 Linux 4.13 for 64-bit PCs
    ii linux-image-4. 4.13.4-2kali amd64 Debug symbols for linux-image-4.1
    ii linux-image-am 4.13+86+kali amd64 Linux for 64-bit PCs (meta-packag
    dpkg-query: no packages found matching linux-generic*

  4. #4
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012

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. How to Install Kernel Headers for '3.10.73-ElementalX-N5X-1.16' kernel
    By pxoto in forum NetHunter General Questions
    Replies: 0
    Last Post: 2018-08-13, 06:41
  3. kernel headers for Kali 1.0.6 on Raspberry Pi
    By n0-0ne in forum ARM Archive
    Replies: 4
    Last Post: 2014-08-28, 15:09

Tags for this Thread

Posting Permissions

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