1.
根据自己的需要下载对应的版本吧
安装相应的依赖
sudo apt install qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev build-essential automake autoconf libgtk2.0-dev libglib2.0-dev flex bison libpcap-dev libgcrypt20-dev cmake -y
2. Download wireshark latest source code from and untar
https://www.wireshark.org/download.html
tar -Jxf wireshark-3.0.6.tar.xz
3.
创建build文件夹
cd wireshark-3.0.6 && mkdir build && cd build
configure the source code to adapt it to the system
cmake ../
##下面是编译后出现的提示
-- Configuring done
-- Generating done
-- Build files have been written to:
build the sources.
make
##这个过程一般在五分钟左右,有进度条可以查看
然后安装
make install