Add Linux Headers to Kali 2.0
I recently tried to install the linux-headers package for Kali 2 in a VM, however I could not find the linux-headers package anywhere. It turns out that the default Kali repository does not include the headers package, and in order to install it the Kali archive repository.
- Add the kali-archive apt list:
echo 'deb http://http.kali.org/kali sana main non-free contrib' >> /etc/apt/sources.list.d/kali-archive.list echo 'deb-src http://http.kali.org/kali sana main non-free contrib' >> /etc/apt/sources.list.d/kali-archive.list
- Update the repository cache and upgrade the system:
apt-get update && apt-get upgrade
- Install the headers package:
apt-get install linux-headers-$(uname -r)