리눅스 일반

[Linux] Ubuntu에 Wireshark 설치 하기

트리스탄1234 2023. 1. 9. 08:44
728x90
반응형

안녕하세요 ^.^

Wireshark는 네트워 인터페이스 카드로 왔다 갔다 하는 packet을 visual하게 캡쳐 후 

보여 주는 Tool 입니다..

 

문제점 분석의 기본 Tool로 많이 사용이 되지요.

오늘은 이 wireshark tool을 ubuntu에 설치 하는 방법에 대해서 포스팅을 해보겠습니다.

 

우선 아래의 명령어로 ubuntu에 wireshark를 설치를 합니다.

user1@user1-Precision-7670:~$
user1@user1-Precision-7670:~$ sudo apt install wireshark
sudo: unable to resolve host user1-Precision-7670: Name or service not known
[sudo] password for user1:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libc-ares2 libdouble-conversion3 liblua5.2-0 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediawidgets5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libsmi2ldbl libsnappy1v5 libspandsp2 libssh-gcrypt-4 libwireshark-data libwireshark13 libwiretap10 libwsutil11 libxcb-xinerama0 libxcb-xinput0
  qt5-gtk-platformtheme qttranslations5-l10n wireshark-common wireshark-qt
Suggested packages:
  qt5-image-formats-plugins qtwayland5 snmp-mibs-downloader geoipupdate geoip-database geoip-database-extra libjs-leaflet libjs-leaflet.markercluster wireshark-doc
The following NEW packages will be installed:
  libc-ares2 libdouble-conversion3 liblua5.2-0 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediawidgets5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libsmi2ldbl libsnappy1v5 libspandsp2 libssh-gcrypt-4 libwireshark-data libwireshark13 libwiretap10 libwsutil11 libxcb-xinerama0 libxcb-xinput0
  qt5-gtk-platformtheme qttranslations5-l10n wireshark wireshark-common wireshark-qt
0 upgraded, 31 newly installed, 0 to remove and 106 not upgraded.
Need to get 32.9 MB of archives.

두번째는 Y를 아래와 같이 입력을 합니다.

After this operation, 163 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 libdouble-conversion3 amd64 3.1.5-4ubuntu1 [37.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpcre2-16-0 amd64 10.34-7ubuntu0.1 [181 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5core5a amd64 5.12.8+dfsg-0ubuntu2.1 [2,006 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5dbus5 amd64 5.12.8+dfsg-0ubuntu2.1 [208 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5network5 amd64 5.12.8+dfsg-0ubuntu2.1 [673 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xinerama0 amd64 1.14-2 [5,260 B]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xinput0 amd64 1.14-2 [29.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5gui5 amd64 5.12.8+dfsg-0ubuntu2.1 [2,971 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5widgets5 amd64 5.12.8+dfsg-0ubuntu2.1 [2,295 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqt5svg5 amd64 5.12.8-0ubuntu1 [131 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 liblua5.2-0 amd64 5.2.4-1.1build3 [106 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqt5multimedia5 amd64 5.12.8-0ubuntu1 [283 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5opengl5 amd64 5.12.8+dfsg-0ubuntu2.1 [136 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqt5multimediawidgets5 amd64 5.12.8-0ubuntu1 [36.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqt5multimediagsttools5 amd64 5.12.8-0ubuntu1 [104 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqt5multimedia5-plugins amd64 5.12.8-0ubuntu1 [197 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libqt5printsupport5 amd64 5.12.8+dfsg-0ubuntu2.1 [193 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsmi2ldbl amd64 0.4.8+dfsg2-16 [100 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal/universe amd64 libspandsp2 amd64 0.0.6+dfsg-2 [272 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssh-gcrypt-4 amd64 0.9.3-2ubuntu2.2 [202 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/universe amd64 libwireshark-data all 3.2.3-1 [1,456 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-ares2 amd64 1.15.0-1ubuntu0.1 [38.2 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal/main amd64 libsnappy1v5 amd64 1.1.8-1build1 [16.7 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal/universe amd64 libwsutil11 amd64 3.2.3-1 [61.1 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal/universe amd64 libwiretap10 amd64 3.2.3-1 [199 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal/universe amd64 libwireshark13 amd64 3.2.3-1 [15.2 MB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 qt5-gtk-platformtheme amd64 5.12.8+dfsg-0ubuntu2.1 [124 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal/universe amd64 qttranslations5-l10n all 5.12.8-0ubuntu1 [1,486 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal/universe amd64 wireshark-common amd64 3.2.3-1 [441 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal/universe amd64 wireshark-qt amd64 3.2.3-1 [3,774 kB]
Get:31 http://archive.ubuntu.com/ubuntu focal/universe amd64 wireshark amd64 3.2.3-1 [5,088 B]
Fetched 32.9 MB in 41s (807 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libdouble-conversion3:amd64.
(Reading database ... 226795 files and directories currently installed.)
Preparing to unpack .../00-libdouble-conversion3_3.1.5-4ubuntu1_amd64.deb ...
Unpacking libdouble-conversion3:amd64 (3.1.5-4ubuntu1) ...
Selecting previously unselected package libpcre2-16-0:amd64.
Preparing to unpack .../01-libpcre2-16-0_10.34-7ubuntu0.1_amd64.deb ...
Unpacking libpcre2-16-0:amd64 (10.34-7ubuntu0.1) ...
Selecting previously unselected package libqt5core5a:amd64.
Preparing to unpack .../02-libqt5core5a_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libqt5dbus5:amd64.
Preparing to unpack .../03-libqt5dbus5_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5dbus5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libqt5network5:amd64.
Preparing to unpack .../04-libqt5network5_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5network5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libxcb-xinerama0:amd64.
Preparing to unpack .../05-libxcb-xinerama0_1.14-2_amd64.deb ...
Unpacking libxcb-xinerama0:amd64 (1.14-2) ...
Selecting previously unselected package libxcb-xinput0:amd64.
Preparing to unpack .../06-libxcb-xinput0_1.14-2_amd64.deb ...
Unpacking libxcb-xinput0:amd64 (1.14-2) ...
Selecting previously unselected package libqt5gui5:amd64.
Preparing to unpack .../07-libqt5gui5_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5gui5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libqt5widgets5:amd64.
Preparing to unpack .../08-libqt5widgets5_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5widgets5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libqt5svg5:amd64.
Preparing to unpack .../09-libqt5svg5_5.12.8-0ubuntu1_amd64.deb ...
Unpacking libqt5svg5:amd64 (5.12.8-0ubuntu1) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../10-liblua5.2-0_5.2.4-1.1build3_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1build3) ...
Selecting previously unselected package libqt5multimedia5:amd64.
Preparing to unpack .../11-libqt5multimedia5_5.12.8-0ubuntu1_amd64.deb ...
Unpacking libqt5multimedia5:amd64 (5.12.8-0ubuntu1) ...
Selecting previously unselected package libqt5opengl5:amd64.
Preparing to unpack .../12-libqt5opengl5_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5opengl5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libqt5multimediawidgets5:amd64.
Preparing to unpack .../13-libqt5multimediawidgets5_5.12.8-0ubuntu1_amd64.deb ...
Unpacking libqt5multimediawidgets5:amd64 (5.12.8-0ubuntu1) ...
Selecting previously unselected package libqt5multimediagsttools5:amd64.
Preparing to unpack .../14-libqt5multimediagsttools5_5.12.8-0ubuntu1_amd64.deb ...
Unpacking libqt5multimediagsttools5:amd64 (5.12.8-0ubuntu1) ...
Selecting previously unselected package libqt5multimedia5-plugins:amd64.
Preparing to unpack .../15-libqt5multimedia5-plugins_5.12.8-0ubuntu1_amd64.deb ...
Unpacking libqt5multimedia5-plugins:amd64 (5.12.8-0ubuntu1) ...
Selecting previously unselected package libqt5printsupport5:amd64.
Preparing to unpack .../16-libqt5printsupport5_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking libqt5printsupport5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package libsmi2ldbl:amd64.
Preparing to unpack .../17-libsmi2ldbl_0.4.8+dfsg2-16_amd64.deb ...
Unpacking libsmi2ldbl:amd64 (0.4.8+dfsg2-16) ...
Selecting previously unselected package libspandsp2:amd64.
Preparing to unpack .../18-libspandsp2_0.0.6+dfsg-2_amd64.deb ...
Unpacking libspandsp2:amd64 (0.0.6+dfsg-2) ...
Selecting previously unselected package libssh-gcrypt-4:amd64.
Preparing to unpack .../19-libssh-gcrypt-4_0.9.3-2ubuntu2.2_amd64.deb ...
Unpacking libssh-gcrypt-4:amd64 (0.9.3-2ubuntu2.2) ...
Selecting previously unselected package libwireshark-data.
Preparing to unpack .../20-libwireshark-data_3.2.3-1_all.deb ...
Unpacking libwireshark-data (3.2.3-1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../21-libc-ares2_1.15.0-1ubuntu0.1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.15.0-1ubuntu0.1) ...
Selecting previously unselected package libsnappy1v5:amd64.
Preparing to unpack .../22-libsnappy1v5_1.1.8-1build1_amd64.deb ...
Unpacking libsnappy1v5:amd64 (1.1.8-1build1) ...
Selecting previously unselected package libwsutil11:amd64.
Preparing to unpack .../23-libwsutil11_3.2.3-1_amd64.deb ...
Unpacking libwsutil11:amd64 (3.2.3-1) ...
Selecting previously unselected package libwiretap10:amd64.
Preparing to unpack .../24-libwiretap10_3.2.3-1_amd64.deb ...
Unpacking libwiretap10:amd64 (3.2.3-1) ...
Selecting previously unselected package libwireshark13:amd64.
Preparing to unpack .../25-libwireshark13_3.2.3-1_amd64.deb ...
Unpacking libwireshark13:amd64 (3.2.3-1) ...
Selecting previously unselected package qt5-gtk-platformtheme:amd64.
Preparing to unpack .../26-qt5-gtk-platformtheme_5.12.8+dfsg-0ubuntu2.1_amd64.deb ...
Unpacking qt5-gtk-platformtheme:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Selecting previously unselected package qttranslations5-l10n.
Preparing to unpack .../27-qttranslations5-l10n_5.12.8-0ubuntu1_all.deb ...
Unpacking qttranslations5-l10n (5.12.8-0ubuntu1) ...
Selecting previously unselected package wireshark-common.
Preparing to unpack .../28-wireshark-common_3.2.3-1_amd64.deb ...
Unpacking wireshark-common (3.2.3-1) ...
Selecting previously unselected package wireshark-qt.
Preparing to unpack .../29-wireshark-qt_3.2.3-1_amd64.deb ...
Unpacking wireshark-qt (3.2.3-1) ...
Selecting previously unselected package wireshark.
Preparing to unpack .../30-wireshark_3.2.3-1_amd64.deb ...
Unpacking wireshark (3.2.3-1) ...

이후 아래와 같인 화면이 나오는데요.

방향키를 이용해서 Yes를 선택 후 엔터키를 입력 합니다.

 

이후 아래와 같인 설치 화면이 보입니다.

Setting up libssh-gcrypt-4:amd64 (0.9.3-2ubuntu2.2) ...
Setting up libdouble-conversion3:amd64 (3.1.5-4ubuntu1) ...
Setting up libxcb-xinput0:amd64 (1.14-2) ...
Setting up libc-ares2:amd64 (1.15.0-1ubuntu0.1) ...
Setting up libwsutil11:amd64 (3.2.3-1) ...
Setting up libpcre2-16-0:amd64 (10.34-7ubuntu0.1) ...
Setting up libspandsp2:amd64 (0.0.6+dfsg-2) ...
Setting up libsnappy1v5:amd64 (1.1.8-1build1) ...
Setting up libsmi2ldbl:amd64 (0.4.8+dfsg2-16) ...
Setting up libwiretap10:amd64 (3.2.3-1) ...
Setting up libxcb-xinerama0:amd64 (1.14-2) ...
Setting up qttranslations5-l10n (5.12.8-0ubuntu1) ...
Setting up libqt5core5a:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up libwireshark-data (3.2.3-1) ...
Setting up liblua5.2-0:amd64 (5.2.4-1.1build3) ...
Setting up libqt5dbus5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up libwireshark13:amd64 (3.2.3-1) ...
Setting up libqt5network5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up wireshark-common (3.2.3-1) ...
Setting up libqt5gui5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up libqt5widgets5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up qt5-gtk-platformtheme:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up libqt5multimedia5:amd64 (5.12.8-0ubuntu1) ...
Setting up libqt5printsupport5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up wireshark-qt (3.2.3-1) ...
Setting up libqt5opengl5:amd64 (5.12.8+dfsg-0ubuntu2.1) ...
Setting up wireshark (3.2.3-1) ...
Setting up libqt5svg5:amd64 (5.12.8-0ubuntu1) ...
Setting up libqt5multimediawidgets5:amd64 (5.12.8-0ubuntu1) ...
Setting up libqt5multimediagsttools5:amd64 (5.12.8-0ubuntu1) ...
Setting up libqt5multimedia5-plugins:amd64 (5.12.8-0ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
user1@user1-Precision-7670:~$ ^C
user1@user1-Precision-7670:~$ ^C
user1@user1-Precision-7670:~$

마지막으로 wireshark의 사용자 그룹을 아래와 같이 저정을 해주면 됩니다.

user1@user1-Precision-7670:~$ sudo usermod -aG wireshark $(whoami)

 

그럼 이제 reboot을 한후 부터 해당 프로그램을 사용할 수 있습니다.

 

감사 합니다.

 

728x90
반응형