Install wireshark on ubuntu 18.04 lts
最近要開始來研究一下UDP傳輸,請來強大的封包截取軟體來看傳輸的封包,聽說還可以拿來做壞事…><…

指令:sudo add-apt-repository ppa:wireshark-dev/stable
執行畫面
Latest stable Wireshark releases back-ported from Debian package versions.
Back-porting script is available at https://github.com/rbalint/pkg-wireshark-ubuntu-ppa
From Ubuntu 16.04 you also need to enable “universe” repository, see:
http://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository
More info: https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
Press [ENTER] to continue or Ctrl-c to cancel adding it.
直接按enter
指令:apt-get update
略…
指令:apt install wireshark

指令:sudo add-apt-repository ppa:wireshark-dev/stable
執行畫面
Latest stable Wireshark releases back-ported from Debian package versions.
Back-porting script is available at https://github.com/rbalint/pkg-wireshark-ubuntu-ppa
From Ubuntu 16.04 you also need to enable “universe” repository, see:
http://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository
More info: https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
Press [ENTER] to continue or Ctrl-c to cancel adding it.
直接按enter
指令:apt-get update
略…
指令:apt install wireshark

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libc-ares2 libmaxminddb0 libnl-route-3-200 libqgsttools-p1 libqt5multimedia5
libqt5multimedia5-plugins libqt5multimediawidgets5 libqt5opengl5 libsmi2ldbl
libwireshark-data libwireshark11 libwiretap8 libwscodecs2 libwsutil9
wireshark-common wireshark-qt
Suggested packages:
mmdb-bin snmp-mibs-downloader wireshark-doc
The following NEW packages will be installed:
libc-ares2 libmaxminddb0 libnl-route-3-200 libqgsttools-p1 libqt5multimedia5
libqt5multimedia5-plugins libqt5multimediawidgets5 libqt5opengl5 libsmi2ldbl
libwireshark-data libwireshark11 libwiretap8 libwscodecs2 libwsutil9
wireshark wireshark-common wireshark-qt
0 upgraded, 17 newly installed, 0 to remove and 16 not upgraded.
Need to get 19.6 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 libmaxminddb0 amd64 1.3.1-1 [25.6 kB]
Get:2 http://tw.archive.ubuntu.com/ubuntu bionic/main amd64 libnl-route-3-200 amd64 3.2.29-0ubuntu3 [146 kB]
Get:3 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 libqt5multimedia5 amd64 5.9.5-0ubuntu1 [293 kB]
Get:4 http://tw.archive.ubuntu.com/ubuntu bionic/main amd64 libqt5opengl5 amd64 5.9.5+dfsg-0ubuntu1 [132 kB]
Get:5 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 libqt5multimediawidgets5 amd64 5.9.5-0ubuntu1 [36.6 kB]
Get:6 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 libqgsttools-p1 amd64 5.9.5-0ubuntu1 [72.4 kB]
Get:7 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 libqt5multimedia5-plugins amd64 5.9.5-0ubuntu1 [194 kB]
Get:8 http://tw.archive.ubuntu.com/ubuntu bionic/main amd64 libsmi2ldbl amd64 0.4.8+dfsg2-15 [100 kB]
Get:9 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libwireshark-data all 2.6.4-2~ubuntu18.04.0 [1,393 kB]
Get:10 http://tw.archive.ubuntu.com/ubuntu bionic/main amd64 libc-ares2 amd64 1.14.0-1 [37.1 kB]
Get:11 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libwsutil9 amd64 2.6.4-2~ubuntu18.04.0 [56.6 kB]
Get:12 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libwiretap8 amd64 2.6.4-2~ubuntu18.04.0 [176 kB]
Get:13 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libwscodecs2 amd64 2.6.4-2~ubuntu18.04.0 [17.6 kB]
Get:14 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libwireshark11 amd64 2.6.4-2~ubuntu18.04.0 [13.6 MB]
Get:15 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 wireshark-common amd64 2.6.4-2~ubuntu18.04.0 [378 kB]
Get:16 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 wireshark-qt amd64 2.6.4-2~ubuntu18.04.0 [2,949 kB]
Get:17 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 wireshark amd64 2.6.4-2~ubuntu18.04.0 [4,480 B]
Fetched 19.6 MB in 8s (2,366 kB/s)
Preconfiguring packages …
Selecting previously unselected package libmaxminddb0:amd64.
(Reading database … 169657 files and directories currently installed.)
Preparing to unpack …/00-libmaxminddb0_1.3.1-1_amd64.deb …
Unpacking libmaxminddb0:amd64 (1.3.1-1) …
Selecting previously unselected package libnl-route-3-200:amd64.
Preparing to unpack …/01-libnl-route-3-200_3.2.29-0ubuntu3_amd64.deb …
Unpacking libnl-route-3-200:amd64 (3.2.29-0ubuntu3) …
Selecting previously unselected package libqt5multimedia5:amd64.
Preparing to unpack …/02-libqt5multimedia5_5.9.5-0ubuntu1_amd64.deb …
Unpacking libqt5multimedia5:amd64 (5.9.5-0ubuntu1) …
Selecting previously unselected package libqt5opengl5:amd64.
Preparing to unpack …/03-libqt5opengl5_5.9.5+dfsg-0ubuntu1_amd64.deb …
Unpacking libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) …
Selecting previously unselected package libqt5multimediawidgets5:amd64.
Preparing to unpack …/04-libqt5multimediawidgets5_5.9.5-0ubuntu1_amd64.deb …
Unpacking libqt5multimediawidgets5:amd64 (5.9.5-0ubuntu1) …
Selecting previously unselected package libqgsttools-p1:amd64.
Preparing to unpack …/05-libqgsttools-p1_5.9.5-0ubuntu1_amd64.deb …
Unpacking libqgsttools-p1:amd64 (5.9.5-0ubuntu1) …
Selecting previously unselected package libqt5multimedia5-plugins:amd64.
Preparing to unpack …/06-libqt5multimedia5-plugins_5.9.5-0ubuntu1_amd64.deb …
Unpacking libqt5multimedia5-plugins:amd64 (5.9.5-0ubuntu1) …
Selecting previously unselected package libsmi2ldbl:amd64.
Preparing to unpack …/07-libsmi2ldbl_0.4.8+dfsg2-15_amd64.deb …
Unpacking libsmi2ldbl:amd64 (0.4.8+dfsg2-15) …
Selecting previously unselected package libwireshark-data.
Preparing to unpack …/08-libwireshark-data_2.6.4-2~ubuntu18.04.0_all.deb …
Unpacking libwireshark-data (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack …/09-libc-ares2_1.14.0-1_aCouldn’t run /usr/bin/dumpcap in child process: Permission deniedmd64.deb …
Unpacking libc-ares2:amd64 (1.14.0-1) …
Selecting previously unselected package libwsutil9:amd64.
Preparing to unpack …/10-libwsutil9_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking libwsutil9:amd64 (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package libwiretap8:amd64.
Preparing to unpack …/11-libwiretap8_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking libwiretap8:amd64 (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package libwscodecs2:amd64.
Preparing to unpack …/12-libwscodecs2_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking libwscodecs2:amd64 (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package libwireshark11:amd64.
Preparing to unpack …/13-libwireshark11_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking libwireshark11:amd64 (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package wireshark-common.
Preparing to unpack …/14-wireshark-common_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking wireshark-common (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package wireshark-qt.
Preparing to unpack …/15-wireshark-qt_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking wireshark-qt (2.6.4-2~ubuntu18.04.0) …
Selecting previously unselected package wireshark.
Preparing to unpack …/16-wireshark_2.6.4-2~ubuntu18.04.0_amd64.deb …
Unpacking wireshark (2.6.4-2~ubuntu18.04.0) …
Processing triggers for mime-support (3.60ubuntu1) …
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) …
Setting up libnl-route-3-200:amd64 (3.2.29-0ubuntu3) …
Setting up libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) …
Setting up libqt5multimedia5:amd64 (5.9.5-0ubuntu1) …
Setting up libsmi2ldbl:amd64 (0.4.8+dfsg2-15) …
Setting up libwsutil9:amd64 (2.6.4-2~ubuntu18.04.0) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
Setting up libwireshark-data (2.6.4-2~ubuntu18.04.0) …
Setting up libwscodecs2:amd64 (2.6.4-2~ubuntu18.04.0) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Processing triggers for shared-mime-info (1.9-2) …
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Setting up libc-ares2:amd64 (1.14.0-1) …
Setting up libmaxminddb0:amd64 (1.3.1-1) …
Setting up libqt5multimediawidgets5:amd64 (5.9.5-0ubuntu1) …
Setting up libqgsttools-p1:amd64 (5.9.5-0ubuntu1) …
Setting up libwiretap8:amd64 (2.6.4-2~ubuntu18.04.0) …
Setting up libqt5multimedia5-plugins:amd64 (5.9.5-0ubuntu1) …
Setting up libwireshark11:amd64 (2.6.4-2~ubuntu18.04.0) …
Setting up wireshark-common (2.6.4-2~ubuntu18.04.0) …
Setting up wireshark-qt (2.6.4-2~ubuntu18.04.0) …
Setting up wireshark (2.6.4-2~ubuntu18.04.0) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
以上安裝完成
如果你是在command line 以root權限執行指令:wireshark 是可以正常執行
但如果是以一般使用者帳號直接執行的話會出現以下錯誤訊息
Couldn’t run /usr/bin/dumpcap in child process: Permission denied
請將一般使用者加入wireshark執行權限
指令:sudo adduser user wireshark

你可能會喜歡

Leave a comment

你的電子郵件位址並不會被公開。 必要欄位標記為 *