Couldn find package linux headers

Install Linux Headers Kali 2020 | Unable to Locate Package linux-headers-5.4.0-kali2-amd64

How to Install Linux Headers Kali 2020?

Welcome Fellow Hackers and Tinkerers. In this post, we will share a solution for a Kali Linux Headers Issue that most of us have been facing for years.

The Annoying “Unable to locate package linux-headers”

If you have been playing around with Kali Linux, you might be familiar with some the below mention errors.

Updated : March 2020

“Unable to locate packages “.
E: Unable to locate package linux-headers-5.4.0-kali2-amd64
E: Couldn’t find any package by glob ‘linux-headers-5.4.0-kali2-amd64’
E: Couldn’t find any package by regex ‘linux-headers-5.4.0-kali2-amd64’

We have been struggling to install this linux-headers for days but whatever we do, we end up with this error.

Setting up Linux Headers in a Nutshell

Time needed: 5 minutes.

How to Install Linux Headers Kali 2020?

    Add the right Repositories

Perform an Update and an Upgrade

Directly install Linux Headers

Download and manually install Linux Headers

Installing Linux Headers

I have a solution for this issue and this worked for almost all my colleagues. Give it a shot!

There are two methods – The Usual Method to install Kali Linux Header and a Manual Method. Here I will explained both.

Method 1 – Installing Linux-Headers using apt-get

First go to this link and Add the correct repositories to the source.list file.

Читайте также:  2yt43 windows 10 key

Then run this commands in the terminal.

After that, reboot the system, open up the terminal and run

By running that command, it is supposed to install the linux kernel headers but in Kali 2019 it was not working. So I went with Method 2.

Method 2 – Manual Method

Step 1

Like we did in the first method, add proper Kali Linux repo to /etc/apt/sources.list
Then run this commands in the terminal

Make sure you Reboot after successfully completing the operation

Step 2

After rebooting, open up the terminal and execute the command

It will show you the current version

Step 3

Now Download the required header files and install it using the command

Commonly used header files are provided below.

linux-headers-5.4.0-kali2-all_5.4.8-1kali1_amd6..> 800768 06-Jan-2020 17:15
linux-headers-5.4.0-kali2-all_5.4.8-1kali1_arm6..> 800768 06-Jan-2020 19:23
linux-headers-5.4.0-kali2-all_5.4.8-1kali1_arme..> 800768 06-Jan-2020 22:08
linux-headers-5.4.0-kali2-all_5.4.8-1kali1_armh..> 800768 07-Jan-2020 05:16
linux-headers-5.4.0-kali2-all_5.4.8-1kali1_i386..> 800764 06-Jan-2020 17:17
linux-headers-5.4.0-kali2-amd64_5.4.8-1kali1_am..> 1305420 06-Jan-2020 17:15
linux-headers-5.4.0-kali2-arm64_5.4.8-1kali1_ar..> 1260632 06-Jan-2020 19:23
linux-headers-5.4.0-kali2-armmp-lpae_5.4.8-1kal..> 1275164 07-Jan-2020 05:16
linux-headers-5.4.0-kali2-armmp_5.4.8-1kali1_ar..> 1271996 07-Jan-2020 05:16
linux-headers-5.4.0-kali2-cloud-amd64_5.4.8-1ka..> 1057744 06-Jan-2020 17:15

If these aren’t the files you are looking for, follow the below links and download any version of header you want.

This will help you successfully install the linux-header.

Источник

Оцените статью