
How to Install Wireshark on Ubuntu 22.04
Wireshark is a widely used free and open-source network protocol analyzer that allows administrators to capture and deeply analyze the packets flowing through a network. It can be used to examine and troubleshoot network and security issues. It is also used as a learning tool to understand network protocols.
This post is going to describe how to install Wireshark on Ubuntu 22.04 LTS (Jammy Jellyfish).
Method#1 Installing Wireshark on Ubuntu from Ubuntu Repository
On Ubuntu, you can install Wireshark from the default repositories. Follow the below simple steps to install Wireshark on your system:
1. Use the command below to update your package repositories:
$ sudo apt update
Provide your password to run the update command.
2. Now to install Wireshark on your Ubuntu system, run the command below:
$ sudo apt install wireshark
Confirm the installation by hitting the y and then Enter key.
During installation, the following window will pop up on your screen asking if you want to allow non-superusers to capture packets. Based on your preferences, select Yes or No and then hit Enter.
This should now install Wireshark on your Ubuntu machine.
You can confirm the installation of Wireshark and check its version that is installed on your system using the command below:
$ wireshark --version
The output will look similar to this showing the version of Wireshark. The Wireshark version installed on our system is 3.6.2.
Method#2 Installing Wireshark on Ubuntu from PPA
You can also install Wireshark on Ubuntu through PPA. This method installs the latest version of Wireshark on your system. Follow the below simple steps to install Wireshark on your system:
1. First, run the command below to add the Wireshark PPA repository to your system’s software sources:
$ sudo add-apt-repository ppa:wireshark-dev/stable
2. Update your package repositories using the command below in the Terminal:
$ sudo apt update
3. Now you can install Wireshark using the command below:
$ sudo apt install Wireshark
Confirm the installation by hitting the y and then Enter key.
This should now install Wireshark on your Ubuntu machine.
You can confirm the installation of Wireshark and check its version that is installed on your system using the command below:
$ wireshark --version
The output will look similar to this showing the version of Wireshark. The Wireshark version installed on our system is 3.6.7.
Launch Wireshark
After Wireshark is installed, you can launch it by using this command in Terminal:
$ wireshark
You can also launch it from the applications menu.
Uninstall Wireshark
If in case you want to remove Wireshark from your system, you can do it using the command below:
$ sudo apt remove wireshark
Provide your password to run the above command. If required, provide your confirmation by hitting the y and then the Enter key.
Conclusion
In this post, we described how you can install Wireshark on Ubuntu OS. You can now use Wireshark to analyze network traffic and capture packets from network connections. You can also remove Wireshark from your system through the method described at the end of this post.