linux

Kali - Snore apt-get install 설치

summerorange 2023. 10. 9. 15:59
반응형

kali 에서 sudo apt-get install snort 하면 에러가 떠서 해결 방법.

다른 분들이 이미 올려주신 게 있는데 테스트 해보니 잘 되서. 마찬가지로 혹시 몰라서 포스팅. (23.10)

혹시 모르니 백업하기. source list 백업

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

이전 업데이트 삭제

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

sources.list 변경

# vim, nano, cat? editor 활용
sudo vim /etc/apt/sources.list

Virtual box에서 다루고 있어서 다음과 같이 수정했다

# 해당 editor에서 하단의 내용을 붙여넣고 :wq!
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse<br>
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse<br>
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse<br>

deb [arch=i386,amd64] http://us.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse<br>
deb [arch=i386,amd64] http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse<br>
deb [arch=i386,amd64] http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse<br>

이제 터미널에서 public keys 입력

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C

업데이트

sudo apt update

하면 이제 잘 설치가 되었다. 

sudo apt install snort

configure 은 다음과 같음...

virtual이 아닌 경우는 에디터에 

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse<br>
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse<br>

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse<br>
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse<br>

deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse<br>
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse<br>

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse<br>
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse<br>

deb http://archive.canonical.com/ubuntu focal partner<br>
deb-src http://archive.canonical.com/ubuntu focal partner<br>

이렇게 수정하고 설치하면 된다고 한다. 

 

Reference

https://dev.to/ankitsahu/install-snort-on-kali-1co8

 

Installing Snort on Kali Linux

Snort is no longer available in Kali repositories Here are the steps to install snort on...

dev.to

 

반응형