An info sec junkie's path to a pentesting career, currently working towards his OSCP certification. As of now, I’m a blue teamer but being a pentester is my ultimate goal. I love hacking and coding and I hope I can give my little knowledge back to the community and help make information systems more secure. This blog focuses on information security and white hat hacking, i.e. hacking based on the client's authorization. Hacking must be done responsibly: don't ruin people's lives and businesses.
When trying to install Snort in Kali Linux, you may find yourself with a not very encouraging E:Unable to locate package message, alike this one above.
If this occurs, you're left with the only option of compiling it from source, which, in this case, is pretty painful.
Luckily, there's an easier alternative. Aptitude can't find the program we're looking for because it doesn't have the necessary repositories in its database.
So, in order to solve the problem, all we need to do is adding them manually.
Go the repositories list in Kali official website, then right-click and copy each repositories listed there (in other words, right-click and copy all the entries starting by deb, shown in the screenshot below).
That done, open the file etc/apt/sources.list with any text editor of your choice.
Paste the repositories you previously copied from the official website to said file and save it.
Now, you'll only have to run apt-get update -y in order to update your sources list.
With that being done, run apt-get install snort -y and this time around it will work.