snort is no longer available in Kali repositories
Here are the steps to install snort on Kali
- Backup kali's source.list
mv /etc/apt/sources.list /etc/apt/sources.list.bak
- Remove updates
find /var/lib/apt/lists -type f -exec rm {} \;
- Change source.list content
sudo nano /etc/apt/source.list
Paste content given below
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
If you are using kali as a virtual machine then paste this instead
As core Ubuntu repositories do not have the ARM repositories in them
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
deb [arch=i386,amd64] http://us.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb [arch=i386,amd64] http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb [arch=i386,amd64] http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
- Add the specified public keys
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
- Update
sudo apt update
- Now install snort
sudo apt install snort
Oldest comments (2)
Hi there,
I like the post, but unfortunately it's not really working for me. Could you please help out?
E: Failed to fetch archive.ubuntu.com/ubuntu/dists/fo... 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch archive.ubuntu.com/ubuntu/dists/fo... 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch archive.ubuntu.com/ubuntu/dists/fo... 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch archive.ubuntu.com/ubuntu/dists/fo... 404 Not Found [IP: 185.125.190.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
βββ(rootγΏkali-IDS)-[/home/cyber-warlock]
ββ# apt install snort
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package snort
Even after following your steps it's still unable to find the snort package. Also several repo's aren't responding.
I ran into a similar issue using a VM. When I swapped the sources.list out for the second one above (deb [arch=...), snort installed just fine.