use wireshark in ubuntu code example
Example 1: install wireshark on ubuntu
$ sudo apt update
$ sudo apt install wireshark
$ sudo usermod -aG wireshark $(whoami)
$ sudo reboot
Example 2: wireshark para ubuntu
sudo add-apt-repository ppa:wireshark-dev/stable && sudo apt-get update && sudo apt-get install wireshark