Select the Gcore Platform

Gcore Edge Solutions
Go to Gcore Platform →
  • Edge Delivery (CDN)
  • DNS with failover
  • Virtual Machines
  • Bare Metal
  • Cloud Load Balancers
  • Managed Kubernetes
  • AI Infrastructure
  • Edge Security (DDOS+WAF)
  • FaaS
  • Streaming
  • Object Storage
  • ImageStack (Optimize and Resize)
  • Edge Compute (Coming soon)
Gcore Hosting
Go to Gcore Hosting →
  • VPS Hosting
  • Dedicated Servers
  • SSL Certificates


How to Install WIRESHARK on Ubuntu

Explore your network in a new way with Wireshark, a user-friendly, open-source packet analyzer. This comprehensive guide will help you understand what Wireshark is and how to install it on Ubuntu 22.04.

What is Wireshark?

Wireshark, a well-known open-source packet analyzer, is often referred to as a network protocol analyzer. It serves multiple functions such as network troubleshooting, analysis, software and protocol development, and even educational purposes. Wireshark is a multi-platform tool, compatible with Windows, Linux, macOS, and more.

With Wireshark, you can decode live data from a variety of sources, including Ethernet, IEEE 802.11, PPP/HDLC, ATM, Bluetooth, USB, Token Ring, Frame Relay, FDDI, and beyond. Moreover, it has the ability to interpret captured data from files saved in an array of formats, such as tcpdump (PCAP), NAI’s Sniffer (both compressed and uncompressed), Sniffer Pro, NetXray, Network Instruments Observer, NetScreen snoop, Novell LANalyzer, RADCOM WAN/LAN Analyzer, among others.

To put it simply, Wireshark functions as a diagnostic tool for your network, offering you a granular view of your network activities. It has gained significant popularity across industries for network troubleshooting and learning about network protocols.

Install Wireshark on Ubuntu 22.04

1. Establish a connection to your server running Ubuntu.

2. Update the repository’s list of packages that are available for installation on Ubuntu:

sudo apt update

3. Proceed to install Wireshark from the repositories of Ubuntu:

sudo apt install wireshark
Permission configuration for Wireshark on Ubuntu

4. During the installation, you’ll be asked whether non-superusers should be permitted to capture packets. If you want to capture packets without needing to run Wireshark as root, you should select ‘Yes’.

Command for installation the Wireshark  on Ubuntu

5.  If ‘No’ was your choice in the previous step or you wish to assign packet capture permissions to a specific user, you can add the user to the Wireshark group by typing in the command line:

sudo usermod -a -G wireshark username

Remember to replace ‘username’ with the actual username of the person you want to extend permissions to.

You can launch Wireshark by simply typing ‘wireshark’ in the terminal. As an alternative, you can also look for Wireshark in your applications list and initiate it from the GUI.

Related learning articles

Subscribe to a useful newsletter

Favorable offers and important news once a month. No spam.