install wireshark for 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: sudo apt install wiresharck ubuntu
$ sudo apt install wireshark