How to Install and Use Wireshark on Ubuntu Linux?
Last Updated :
23 Jul, 2025
Wireshark is an open-source network protocol analyzer that helps us to see what is happening inside a network when we try to communicate with other networks. Currently, Wireshark is the most famous application to analyze networks. As the most popular network analyzer tool, Wireshark provides an in-depth view of your network traffic, making it an essential tool for anyone working with networks.
Steps to Install Wireshark on Ubuntu Linux
To install the latest version of Wireshark on Ubuntu we have to follow certain steps:
Step 1: Open the Terminal
Go to the terminal by simply pressing 'Ctrl + Alt + T' or 'right-click + Open in Terminal'.
Step 2: Add the Wireshark Repository
Add a repository by running this command,
sudo add-apt-repository ppa:wireshark-dev/stable
Step 3: Update the Repository List
After adding the repository, update your system's package list to include the latest packages:
sudo apt update
Step 4: Install Wireshark
With the repository updated, install Wireshark using the following command:
sudo apt install wireshark
Step 5: Launch Wireshark
Wireshark is installed, you can run in the terminal to do so run this command
sudo wireshark
or just simply go to show applications and run Wireshark.
You can check the version of your installed Wireshark by running the following command
apt show wireshark
If you face any error during installation or running Wireshark like Wireshark xdg_runtime_dir not set then open the terminal and run this command and click YES to the message box
sudo dpkg-reconfigure wireshark-common
After opening Wireshark if you can see wavy lines beside enp0s3 then congratulations, you are all set and good to go.
Troubleshooting Installation Errors
If you encounter any errors during installation, such as the common 'Wireshark xdg_runtime_dir not set
'
error, run the following command:
sudo dpkg-reconfigure wireshark-common
How to Use Wireshark for Network Packet Analysis
To capture the networking packages using Wireshark follow these steps:
Step 1: Start Capturing Packets
Go to Wireshark and double click on the first option 'enp0s3' to start capturing
Step 2: Monitor Captured Data
You can see a window with various source and destination IP addresses, protocols, lengths, etc. This is where you are capturing the protocols. The Protocol is showing currently which network protocol is running on your system and their source and destination IP addresses. You can also apply filters by protocol names to see only the packets you want to see.
Step 3: Stop and Restart Capture
After capturing all the required packets that you want, you can stop by simply clicking the red square button at the top-left. To start capturing again just click the blue button beside the red stop button.
To know more about the usage of Wireshark, you can refer to the article – Packet Capturing and Analyzing.
Conclusion
Wireshark is a critical tool for network monitoring, troubleshooting, and analysis. With its powerful features and user-friendly interface, Wireshark empowers you to identify and resolve network issues, enhance security, and optimize performance. By following the steps above, you can quickly set up Wireshark and begin monitoring your network's traffic with ease.
Similar Reads
How to Install Tor on Linux? Tor browser is a web browser that is designed and developed to protect your privacy online and is mostly famous among normal people as a key for safely accessing hidden or restricted online resources, including those on the dark web. We will see what Tor is and how to install it on your Linux machin
5 min read
How to install Zabbix on Linux A system administrator's duties include network management. Zabbix is a free and open-source monitoring tool for administering and monitoring networks. This software is open-source and free, and it has a tonne of functionality. Zabbix is used to monitor resources in the cloud as well as networks, se
2 min read
How to install Nagios on Ubuntu Nagios is a free and open-source monitoring program that was created to keep track of various networking software, their sources, and Linux-based devices. We can keep an eye on any crucial actions and occurrences of software faults using Nagios by providing automatic notifications to the administrat
3 min read
How To Install Splunk on Linux Splunk is a software that helps organizations work with large amounts of data. The latest version 9.0.4.1 has new abilities. It can search data faster and use less memory. This makes it easier to look at and understand the data. Splunk 9.0.4.1 can now store old data in the cloud. This frees up space
5 min read
User DLTs Protocol Table in Wireshark Wireshark uses tables to show data and statistics to the user. The summarized data displayed in tables reduce the complexity of the information and make it easy for the user to analyze. For managing and editing these tables in Wireshark, the User Table editor is used. Wireshark's âUser DLTs protocol
2 min read
How to Install ntopng in Linux? ntopng is an Open Source Tool to monitor the network. It is a security network monitoring tool, also monitors web activities passively. It is also used for packet capturing, Traffic Recording, and Network Probing. A huge number of companies like Google, HP, Cisco, IBM, and many more uses ntop. It ac
2 min read