-4

How to install Kali Linux header? I used this command apt-get update && apt-get install -y linux-headers-$(uname -r), but it was showing the below error

E:unable to locate package linux-headers-4.6.0-kali1-686 pae'
E: could not find any package by glob 'linux-headers-4.6.0-kali1-686 pae'
E: could not find any package by regex 'linux-headers-4.6.0-kali1-686 pae'
0

Open the sources.list file:

gksudo gedit /etc/apt/sources.list

Add the following line (carefully):

deb http://http.kali.org/kali kali-rolling main contrib non-free

Save it then run the following commands :

apt-get update
apt-get upgrade
apt-cache search linux-headers

Then install the appropriate linux-headers:

sudo apt-get install linux-headers-$(uname -r)
  • I wonder why is it so? – user5954246 Dec 17 '16 at 14:25
  • @DenisKa Because there are no entries in his sources.list repository. – defalt Dec 17 '16 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.