2.第二种方式:安装最新稳定版本
sudo add-apt-repository ppa:wireshark-dev/stable
sudo apt update
sudo apt install wireshark
//查看wireshark信息
apt show wireshark
Package: wireshark
Version: 3.4.8-1~ubuntu18.04.0+wiresharkdevstable1
Priority: optional
Section: net
Maintainer: Balint Reczey balint@balintreczey.hu
Installed-Size: 60.4 kB
Depends: wireshark-qt (= 3.4.8-1~ubuntu18.04.0+wiresharkdevstable1)
Conflicts: ethereal (<< 1.0.0-3)
Replaces: ethereal (<< 1.0.0-3)
Download-Size: 45.2 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/wireshark-dev/stable/ubuntu bionic/main amd64 Pack