How To'sLinux

How To Install Wireshark On Ubuntu 22.04 and 18.04 Desktop

Wireshark is a free and open-source network analyzer. Wireshark allows you to record live network traffic for network analysis, troubleshooting, education, and development. Install Wireshark on Ubuntu 22.04 and 18.04 Desktop.

Install Wireshark on Ubuntu

You can install either the stable or development version of Wireshark. The development branch gives you the latest release.

Install Wireshark Stable Release

Add PPA Repository:

sudo apt update
sudo apt install software-properties-common apt-transport-https
sudo add-apt-repository ppa:wireshark-dev/stable

Install Wireshark on Ubuntu 22.04, 20.04, 18.04:

sudo apt update
sudo apt -y install wireshark

Install Wireshark Development Release

To get the development release, add

sudo add-apt-repository ppa:dreibh/ppa

Install Wireshark from the repository:

sudo apt update
sudo apt -y install wireshark

When prompted if non-superusers can capture packets, choose yes and continue installing.

Let’s find out which version of Wireshark is installed.

How To Start And Configure Wireshark?

In order to give permission to a normal user, you can add user to Wireshark group.

sudo usermod -a -G wireshark $USER

Change dumpcap file permission as well.

sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

You can verify:

$ sudo getcap /usr/bin/dumpcap
/usr/bin/dumpcap = cap_net_admin,cap_net_raw+eip

Noor Qureshi

Experienced Founder with a demonstrated history of working in the computer software industry. Skilled in Network Security and Information Security.

Related Articles

Back to top button