Results 1 to 11 of 11

Thread: Cannot install kernel headers (kernel header mismatch)

  1. #1
    Join Date
    2022-Apr
    Posts
    1

    Cannot install kernel headers (kernel header mismatch)

    Hello,

    I tried to install the kernel header on Kali linux 2022.1 with the following commands:

    Code:
    # apt update
    # apt dist-upgrade
    [REBOOT]
    # apt install linux-headers-$(uname -r)
    But I get:
    Code:
    E: Unable to locate package linux-headers-5.15.0-kali3-amd64
    E: Couldn't find any package by glob 'linux-headers-5.15.0-kali3-amd64'
    Note that the `uname -r` commands returns `5.15.0-kali3-amd64`. However, searching for linux-headers gives:

    Code:
    $ apt search linux-header
    (...)
    linux-headers-5.16.0-kali6-amd64/kali-rolling 5.16.14-1kali2 amd64
      Header files for Linux 5.16.0-kali6-amd64
    (...)
    It looks like my kernel is not the most recent one and I guess this is why I have this issue. So how can I installed the linux source for 5.15.0-kali3-amd64 or update to 5.16.0-kali6-amd64?

    My /etc/apt/sources.list only contains `deb http://http.kali.org/kali kali-rolling main contrib non-free`

    Thank you

  2. #2
    Join Date
    2022-Jul
    Posts
    4
    I am having a similar issue:
    Unable to locate package linux-headers-5.16.0-kali7-amd64

  3. #3
    Join Date
    2022-Jul
    Posts
    1
    Same issue !

    I've tried to install the headers manually downloading the linux-headers-5.15.0-kali3-amd64_5.15.15-1kali2_amd64.debhere: http://ftp.tku.edu.tw/kali/pool/main/l/linux/

    Using the dpkg command:

    sudo dpkg ?i linux-headers-5.15.0-kali3-amd64_5.15.15-1kali2_amd64.deb

    But unfortunately a lot of another dependencies came up and I didn't find out how to solve them...


  4. #4
    Join Date
    2022-Aug
    Location
    Sweden
    Posts
    1
    I have this issue too when trying to install VMWare, downloaded VMware-Workstation-Full-16.2.4-20089737.x86_64.bundle.

    When triggering the installation a pop-up appears (VMware Kernel Module Updater) stating that Kernel headers for version 5.18.0-kali5-amd64 were not found. If you installed them in a non-default path you can specify the path below.

    Not sure how to solve this. Anyone who might have some tips or ideas?

    Much appreciated.

  5. #5
    Join Date
    2022-Aug
    Posts
    1
    Quote Originally Posted by weller View Post
    I am having a similar issue:
    Unable to locate package linux-headers-5.16.0-kali7-amd64
    Hi weller, did you manage to locate the package linux-headers-5.16.0-kali7-amd64? I am having the same problem.

  6. #6
    Join Date
    2022-Aug
    Posts
    1
    hi guys , ı have a problem.
    this error code...

    Screenshot_2022-08-09_05_43_30.jpg

  7. #7
    Join Date
    2022-Oct
    Posts
    1
    It worked for me, first downloading http://ftp.tku.edu.tw/kali/pool/main...1kali6_all.deb
    dpgk -i linux-headers-5.18.0-kali5-common_5.18.5-1kali6_all.deb
    and then http://ftp.tku.edu.tw/kali/pool/main...ali6_amd64.deb
    dpkg -i linux-headers-5.18.0-kali5-amd64_5.18.5-1kali6_amd64.deb

    thanks !

  8. #8
    Join Date
    2021-May
    Location
    UK
    Posts
    782
    Updating to installed version kernel headers;

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

  9. #9
    its worked thanks
    Last edited by abokaka; 2023-04-14 at 21:12.

  10. #10
    Join Date
    2022-Dec
    Posts
    1
    Hey, i have prblem with finding headers 5.18.0-kali5-amd64. i dont see file on list. Maybe someone will help me. sudo ap.t install linux-headers-$(uname -r) not working for me. or i am doing something wrong. i am new here so please be gentle with me

  11. #11
    Join Date
    2022-Dec
    Posts
    2
    I have Lenovo IdeaPad 3, with AMD Rayzen 5000series. With window 11 Nvme 500gb. Now the problem is that whenever I boot my device from my pendrive. There are black screen apear with Some command, GNU,Grub , version 2.06-4 Kali 1.
    This place i am stuck from last 3 days how to install it.
    I have Kali Everything version. Whose size approx 11.5GB, before installation. Please help me out. Thanku in advance for your support..

Similar Threads

  1. 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
  2. Kernel / Headers mismatch
    By ptpi in forum TroubleShooting Archive
    Replies: 5
    Last Post: 2017-08-30, 04:42
  3. Cannot install kernel header linux-headers-4.9.0-kali4-amd64
    By adhossain in forum TroubleShooting Archive
    Replies: 18
    Last Post: 2017-08-20, 05:05
  4. Replies: 1
    Last Post: 2014-02-06, 10:38

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
  •