Installing Snort on Kali Linux

2020 Setup

Alex Rodriguez
2 min readOct 18, 2020

Hi! In this tutorial, I will show you how to install Snort on Kali Linux. Installing Snort is not as easy (it’s a pain in the a**) as installing other tools where we simply need to run the command sudo apt install [tool_name]. Because Snort does not exist as a package within Kali’s apt repository, we will need to use Ubuntu’s apt repositories. Let’s get Snort installed on your machine.

Make a Backup of Current Sources.list File

First, we need to create a backup of Kali’s sources.list file in order to restore it later:

mv /etc/apt/sources.list /etc/apt/sources.list.bak

Remove currently installed Kali Updates

Go to /var/lib/apt/lists and delete all the files within the directory, leaving only the partial and auxfiles directory:

find /var/lib/apt/lists -type f -exec rm {} \;

Download Ubuntu Sources.list File

Download Ubuntu’s sources.list file into the /etc/apt/ directory:

wget https://gist.githubusercontent.com/ishad0w/788555191c7037e249a439542c53e170/raw/3822ba49241e6fd851ca1c1cbcc4d7e87382f484/sources.list -O /etc/apt/sources.list

--

--

Alex Rodriguez

I am an Offensive Security Engineer @ Amazon who writes about cybersecurity and anything related to technology. Opinions are my own.