With the help of the potent network protocol analyzer Wireshark, users may record and interactively explore network data. One of the most well-liked Linux distributions, Ubuntu, allows users to install Wireshark, which makes it possible to monitor and analyze network packets effectively.
With the help of this tutorial, you will be able to install Wireshark on Ubuntu and be able to monitor network traffic, diagnose network issues, and improve network security. Improve your ability to handle multimedia files by installing FFmpeg on Ubuntu (using apt, snappy methods), and streaming your audio and video files with ease.
Essential Necessities
Before installing Wireshark on Ubuntu, confirm that the following prerequisites are met by your Ubuntu system:
- To install applications on the system, use sudo privileges;
- A dependable internet connection to download the dependencies and Wireshark;
- Sufficient disk space to install Wireshark. Keep in mind that Wireshark doesn’t require much room. Ensure your system has adequate room to prevent any problems during the installation.
Steps for Installing Wireshark on Ubuntu 22.04{Guide}
Once the aforementioned requirements are met, you can start the Wireshark installation. Let’s now follow the instructions below to install Wireshark on Ubuntu 22.04.
Step 1: First Update the Repositories and Packages
You have to upgrade the current packages and repositories first, as best practice. It will assist you in keeping up with the most recent package versions. You can make sure you get the most recent version of Wireshark by using the most recent version of Ubuntu.
Run the following sudo apt update command in the Ubuntu terminal after opening it:
sudo apt update
This update command must be used to upgrade the installed packages on your computers. Next, type the subsequent command:
sudo apt full-upgrade
Compared to using apt upgrade alone, this command will carry out a more comprehensive upgrade. Occasionally, you will receive a request for permission to proceed with the update. If so, type “Y” and hit Enter to carry out the upgrade.
As explained below, you can even mix and execute both commands at the same time.
sudo apt update && sudo apt upgrade
Step 2: Install Ubuntu Wireshark {2 techniques}
Wireshark may be installed on Ubuntu using a few different techniques. The following are the installation techniques that are most often used:
- Installing with the Advanced Package Tool (APT).
- Utilizing the Personal Package Archive (PPA) for installation
Technique 1: Utilizing the APT for Installation
Wireshark is pre-installed in the Ubuntu software repository, allowing you to install it via the APT. It’s the simplest and most direct approach. When updates are made to the Ubuntu system, it makes sure you have the most recent version of Wireshark. Run the following command in the terminal window of Ubuntu.
sudo apt install wireshark
A permission request will be made to you to proceed with the installation. Press Enter after typing “Y” to proceed with the installation. The prompt box below will show up after installation to allow you to configure Wireshark-common in the package configuration.
You have two alternatives to select from in response to this message. One is to permit non-superusers to use. The second is to restrict access and usage to root users exclusively and disable using non-superusers. You have the option to choose “Yes” or “No.”
The technology that makes file saving and network traffic packet capture possible in this case is called Dumpcap. The packets are recorded in pcapng format by default.
Should you have chosen “Yes,” you must execute the following command to add each user to the “wireshark” user group. Add your user’s username there after the wireshark section.
sudo usermod -aG wireshark "username"
Example:
sudo usermod -aG sudo ugehan
You may come up with another request to upgrade kernels throughout the installation. Press ‘Yes’ to proceed with the installation.
Technique 2: Utilizing the PPA for Installation
Use the PPA run by the Wireshark developers if your computer is running an earlier version of Ubuntu. Use the following command to install it:
sudo add-apt-repository ppa:wireshark-dev/stable -y
The official Wireshark PPA will be added to your list of repositories when you run the aforementioned command. Next, use the following commands to update your system’s package list and continue installing Wireshark:
sudo apt update
sudo apt install wireshark
Step 3: Verify the Version of Wireshark
To install Wireshark, you can choose one of the approaches above. Next, you can use the following command to confirm the version of Wireshark:
wireshark --version
Step 4: In the final step Open Wireshark
Entering the sudo wireshark command at the terminal will launch Wireshark. The Wireshark Graphical User Interface (GUI) will launch, allowing you to examine the network traffic.
Additionally, you can use the Ubuntu desktop to launch the Wireshark application tool directly. Open Activities put “Wireshark” into the search field, and press Enter to accomplish that. The Wireshark application can then be launched by clicking on the Wireshark icon.
Wrapping up with Installing Wireshark on Ubuntu
To sum up, installing Wireshark on Ubuntu gives users access to a powerful tool for troubleshooting and network analysis. You can easily install Wireshark on your Ubuntu machine and begin monitoring network traffic by following the easy instructions provided in this guide. Get your Ubuntu system ready for powerful database management by following a step-by-step manual on how to Install MySQL on Ubuntu, and start leveraging the full potential of MySQL for your projects.
With Wireshark, you can secure your network’s smooth functioning and obtain insightful information about your network’s activity, regardless of your background as a network administrator, cybersecurity expert, or interested hobbyist. Accept the power of Ubuntu’s Wireshark and take command of your network right now.