The Wireshark is a very powerful clutch tool for a wide range of applications, and is easy to install and configure. This is only an introduction to the installation on Ubuntu .
First install WireSharkvia apt:
$ sudo apt-add-repository ppa:wireshark-dev/stable
$ sudo apt-get update
$ sudo apt install Wireshark
Many dependencies are installed during the installation, including a package called Wireshark-common , which pops up when the dpkg is preconfigured to explain the installation options, to the effect that Dumpcap can be installed to allow users to grab packets in the wireshark user Group, which is better than running directly with root privileges Wireshark, because from the point of view of the whole program, the latter will allow more program code to run under elevated privileges.
Here we choose Yes to turn this feature on, and Some security risks for desktop are not allowed.
If not, then run the following command line, and the page above selects "Yes".
$ sudo dpkg-reconfigure Wireshark-common
Ubuntu16.04 installation Wireshark