learn wireshark

How do I install / upgrade Wireshark in Ubuntu Linux?

How do I install / upgrade Wireshark in Ubuntu Linux?  First things first – the Wireshark downloads page is here: https://www.wireshark.org/download.html

I know I have put the answer to this in other articles over the years (like this one), but I think it is appropriate to answer the question directly and specifically.

Installing Wireshark in Ubuntu or virtually any Linux distribution is pretty easy – it is available in almost all Linux repositories.  Just add it from the software installer, or from the terminal/command line:

sudo apt install wireshark

Let’s say that does not work.  Perhaps you need to add the repository first:

sudo add-apt-repository universe
sudo apt install wireshark

Sometimes, when you install Wireshark in the manner described, or you install Ubuntu Linux as a new system, a VM, or whatever, you will note that the version of Wireshark is older than the current release, so this getting the latest release can be an issue if the repositories are not updated (and trust me they are painfully slow).

You can always show which version of Wireshark you have with this command:

apt show wireshark

It will look something like this:

2020 12 05 09 44

If not having the latest release is an issue for you, you should add the official Wireshark PPA.

In a terminal, use the following commands one by one:

sudo add-apt-repository ppa:wireshark-dev/stable
sudo apt update
sudo apt install wireshark

**Note here: if any of my readers are Kali Linux people – the above should work, but I noted in the latest version of Kali, you must also run this command:
sudo apt-get install software-properties-common
before the above three commands.

Your Wireshark will be updated to the newer stable version.

During the installation process, you may be asked whether to allow non-superusers to capture packets. Select Yes to allow and No to restrict non-superusers to capture packets & finish the installation.

If you want to run Wireshark without sudo (for instance if you selected No in the previous installation), then run the following command as root:

sudo dpkg-reconfigure wireshark-common

On the screen that pops up, select Yes by pressing the tab key and then using enter key.

Since you have allowed the non-superuser to capture packets, you have to add the user to wireshark group. Use the usermod command to add yourself to the wireshark group.

sudo usermod -aG wireshark $(theusername)

Finally, restart your Ubuntu system to make the necessary changes to your system.

sudo reboot

I hope you find this article and its content helpful.  Comments are welcomed below.  If you would like to see more articles like this, please support us by clicking the patron link where you will receive free bonus access to courses and more, or simply buying us a cup of coffee!, and all comments are welcome!

Leave a Comment

Contact Us Here


Please verify.
Validation complete :)
Validation failed :(
 
Your contact request has been received. We usually respond within an hour, but please be patient. We will get back to you very soon.
Scroll to Top