I am trying to install Linux headers for Kali Linux on my machine and I have tried every possible solution on the internet but it always show Unable to locate packages root@kali:/usr/sbin# apt-get install linux-headers-4.6.0-kali1-amd64Reading package lists... DoneBuilding dependency tree       Reading state information... DoneE: Unable to locate package linux-headers-4.6.0-kali1-amd64E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'Here is my sources.list file :# Regular Repositoriesdeb http://http.kali.org/kali sana main non-free contribdeb http://security.kali.org/kali-security sana/updates main contrib non-free# Source repositoriesdeb-src http://http.kali.org/kali sana main non-free contribdeb-src http://security.kali.org/kali-security sana/updates main contrib non-freeUname -a output : root@kali:/usr/sbin# uname -aLinux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux
Can't install Linux Headers (Kali Linux)
apt;linux kernel;kali linux
The package linux-headers-4.6.0-kali1-amd64 is no longer available on the regularly kali-linux repository, it should be upgraded to the 4.8.x version.List the available linux-headers and linux-image through apt-cache search :apt-cache search linux-headersThen install the correct package e,g ( this is an example , it depends on the previous output command) :apt-get install linux-headers-4.8.0-kali1-amd64also run;apt-cache search linux-imageinstall it:apt-get install linux-image-4.8.0-kali1-amd64Reboot your system.