[Solved] Unable to locate package linux-headers | How to Install Kali 2018 Headers | Install Virtual Box
I have been trying to install Linux headers for Kali Linux 2018 on my machine and I have tried every possible solution on the internet but it always show “Unable to locate packages “.
E: Unable to locate package linux-headers-4.9.0-kali3-amd64
E: Couldn’t find any package by glob ‘linux-headers-4.9.0-kali3-amd64’
E: Couldn’t find any package by regex ‘linux-headers-4.9.0-kali3-amd64’
After days of googling, I found a solution for installing the linux-headers
The Problems I Faced
What I was trying to do was, trying to install virtual box. Every time I install virtualbox and start virtualbox service, I always ended up with an error. After further troubleshooting, I found that the real issue was with my linux headers. During dependency check, if missing, installer will prompt that kernel headers should be installed.
The Usual Method (Didn’t work for most of us)
Add the correct repositories from Here. Then run this commands in the terminal