PDA

View Full Version : problem installing snort



josh1000
2017-03-20, 16:51
helo, greetings everyone. i have been having problem installing snort on kalilinux.
im using kali 2.0. i'v done apt-get update, apt-get upgrade still unable to install.
when i type apt-get install snort, this is the reply:

root@josh:~# apt-get install snort
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdaq2 oinkmaster snort-common snort-common-libraries snort-rules-default
Suggested packages:
snort-doc
The following NEW packages will be installed:
libdaq2 oinkmaster snort snort-common snort-common-libraries
snort-rules-default
0 upgraded, 6 newly installed, 0 to remove and 2237 not upgraded.
Need to get 1,186 kB/2,230 kB of archives.
After this operation, 7,325 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://http.kali.org/kali/ kali-rolling/main snort-rules-default all 2.9.7.0-5
Connection failed
Err http://http.kali.org/kali/ kali-rolling/main snort amd64 2.9.7.0-5
Connection failed
E: Failed to fetch http://http.kali.org/kali/pool/main/s/snort/snort-rules-default_2.9.7.0-5_all.deb Connection failed

E: Failed to fetch http://http.kali.org/kali/pool/main/s/snort/snort_2.9.7.0-5_amd64.deb Connection failed

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?




Here s the content of my sources.list file:
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/update main contrib non-free
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
deb http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main


pls i need urgent help on this issue. im working on a project on sniffing and IDS tools, snort
is among the tools im working on. thanks in advance

steev
2017-03-20, 17:36
You need to NOT mix all the different repositories.

Remove the Kali sana lines.
Remove the Ubuntu saucy lines.
Remove the Debian jessie lines.

You will run into issues when you mix and match everything.

josh1000
2017-03-20, 19:58
i have removed the lines,its still giving me thesame output. unable to install: after removing the lines, i did apt-get update before trying installing snort but it still wont install. this is the output:

root@josh:~# apt-get install snort
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdaq2 oinkmaster snort-common snort-common-libraries snort-rules-default
Suggested packages:
snort-doc
The following NEW packages will be installed:
libdaq2 oinkmaster snort snort-common snort-common-libraries
snort-rules-default
0 upgraded, 6 newly installed, 0 to remove and 2162 not upgraded.
Need to get 1,186 kB/2,230 kB of archives.
After this operation, 7,325 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://http.kali.org/kali/ kali-rolling/main snort amd64 2.9.7.0-5
Connection failed
Err http://http.kali.org/kali/ kali-rolling/main snort-rules-default all 2.9.7.0-5
Connection failed
E: Failed to fetch http://http.kali.org/kali/pool/main/s/snort/snort-rules-default_2.9.7.0-5_all.deb Connection failed

E: Failed to fetch http://http.kali.org/kali/pool/main/s/snort/snort_2.9.7.0-5_amd64.deb Connection failed

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


here is the content of my sources.list file after removing those lines:
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Sagaryal
2017-03-24, 12:20
Change the mirrors in your sources.list file. Here is the link (http://http.kali.org/README.mirrorlist).
For eg. Selecting one of the mirrors from the list would make your sources.list file as:




deb http://kali.mirror.garr.it/mirrors/kali kali-rolling main contrib non-free
deb-src http://kali.mirror.garr.it/mirrors/kali kali-rolling main contrib non-free



Then try


$ sudo apt update

$ sudo apt install snort

That should do it.