How To Install Wireshark on Ubuntu 16.04 LTS

Install Wireshark on Ubuntu 16

Wireshark is a free and open-source packet analyzer. It is used for network troubleshooting, monitoring, analysis, software and communications protocol development. Wireshark offers graphical interface to view and analyze network results so it’s easy to use. It can capture network traffic to specific devices and network interfaces and can save the captured traffic to various formats for analysis and troubleshoot of network releted problems.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation wireshark network analyzer on a Ubuntu 16.04 (Xenial Xerus) server.
Install Wireshark on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Wireshark.

Run the commands below in terminal to install wireshark:

apt-get install wireshark

During the installation,it will require to confirm security about allowing non-superuser to execute Wireshark. Just confirm YES if you want to. If you check on NO, you must run Wireshark with sudo. Later, if you want to change this:

sudo dpkg-reconfigure wireshark-common

Step 3. Start Capturing Packet.

Once installed, new group named wireshark will be created when installing wireshark. You can verify this by looking at the end of /etc/group file:

tail /etc/group

Running Wireshark as root is insecure. To run wireshark as normal user you have to add yourself into wireshark group:

sudo gpasswd -a <YourUserName> wireshark

Wireshark will be the user’s secondary group. To temporarily set wireshark as the user’s primary group, run the following command:

newgrp wireshark

Finally, Start the wireshark program from the terminal:

wireshark

Note: If you want to start wireshark in application menu, you have to log out of the current session and log back in.

Congratulation’s! You have successfully installed wireshark. Thanks for using this tutorial for installing wireshark network analyzer on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official wireshark web site.