AMP AMP

How to Install WireShark on Linuxmint 19

Installation of WireShark On Linuxmint 19

Wireshark is a free, cross platform and open source packet analyzer using the Qt widget toolkit. It is used for network troubleshooting, analysis, software and communications protocol development, and education. It supports GUI and allows the user to put network interface controllers on the network' s traffic. This tutorial will explain on how to install Wireshark On Linuxmint 19

Installation procedure

Check the Linuxmint version by using the following command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

Before beginning the installation procedure, execute the following command to add the package in the repo list in the target system.

root@linuxhelp:~# add-apt-repository ppa:wireshark-dev/stable
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
You are about to add the following PPA:
 Latest stable Wireshark releases back-ported from Debian package versions.

Back-porting script is available at https://github.com/rbalint/pkg-wireshark-ubuntu-ppa

From Ubuntu 16.04 you also need to enable "universe"  repository, see:
http://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository

The packaging repository for Debian and Ubuntu is at: https://salsa.debian.org/debian/wireshark
 More info: https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
Press Enter to continue or Ctrl+C to cancel

Executing: /tmp/apt-key-gpghome.uyklVRlCUL/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 14ECA0F0
gpg: key D875551314ECA0F0: public key "Launchpad PPA for Wireshark Developers" imported
gpg: Total number processed: 1
gpg:               imported: 1

The repositories are added successfully to the target system. Execute the following command to update the apt sources-list.

root@linuxhelp:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]                                                    
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]                                             
Ign:4 http://packages.linuxmint.com tara InRelease                                                                      
Get:5 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2,316 B]                                        
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                               
Get:7 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2,320 B]                                       
.
.
.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
677 packages can be upgraded. Run 'apt list --upgradable' to see them.

Install the wireshark package by running the following command.

root@linuxhelp:~# apt install wireshark
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libc-ares2 libmaxminddb0 libnl-route-3-200 libqt5multimedia5 libqt5printsupport5 libsmi2ldbl libwireshark-data
  libwireshark11 libwiretap8 libwscodecs2 libwsutil9 wireshark-common wireshark-qt
Suggested packages:
  mmdb-bin snmp-mibs-downloader wireshark-doc
Recommended packages:
  libqt5multimedia5-plugins
The following NEW packages will be installed:
  libc-ares2 libmaxminddb0 libnl-route-3-200 libqt5multimedia5 libqt5printsupport5 libsmi2ldbl libwireshark-data
  libwireshark11 libwiretap8 libwscodecs2 libwsutil9 wireshark wireshark-common wireshark-qt
0 upgraded, 14 newly installed, 0 to remove and 677 not upgraded.
Need to get 19.9 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libmaxminddb0 amd64 1.3.1-1 [25.6 kB]
.
.
.
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up libc-ares2:amd64 (1.14.0-1) ...
Setting up libmaxminddb0:amd64 (1.3.1-1) ...
Setting up libwiretap8:amd64 (2.6.8-1~ubuntu18.04.0) ...
Setting up libwireshark11:amd64 (2.6.8-1~ubuntu18.04.0) ...
Setting up wireshark-common (2.6.8-1~ubuntu18.04.0) ...
Setting up wireshark-qt (2.6.8-1~ubuntu18.04.0) ...
Setting up wireshark (2.6.8-1~ubuntu18.04.0) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

Search for Wireshark

This is the wireshark application With this, the method to install Wireshark on linuxmint 19 comes to end.

FAQ
Q
What is Wireshark?
A
Wireshark is a free, cross-platform and open-source packet analyzer using the Qt widget toolkit. It is used for network troubleshooting, analysis, software and communications protocol development, and education. It supports GUI and allows the user to put network interface controllers on the network' s traffic.
Q
Can Wireshark capture all network traffic?
A
If you're trying to capture network traffic that's not being sent to or from the machine running Wireshark or TShark, i.e. traffic between two or more other machines on an Ethernet segment, you will have to capture in "promiscuous mode", and, on a switched Ethernet network, you will have to set up the machine especially.
Q
Does Wireshark work on Windows Vista or Windows Server 2008?
A
Yes, but if you want to capture packets as a normal user, you must make sure npf.sys is loaded. Wireshark's installer enables this by default. This is not a concern if you run Wireshark as Administrator, but this is discouraged.
Q
Are there any plans to support {your favorite protocol}?
A
Support for particular protocols is added to Wireshark as a result of people contributing that support; no formal plans for adding support for particular protocols in particular future releases exist.
Q
What protocols are currently supported?
A
There are currently hundreds of supported protocols and media. Details can be found in the wireshark(1) man page.