How to install Wireshark 2.2.6 latest version in Ubuntu 16.04

How to install Wireshark 2.2.6 latest version in Ubuntu 16.04

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 2.2.6 version on Ubuntu.

To know more about the installation process of Wireshark in Debian 8.3, visit

https://www.linuxhelp.com/how-to-install-wireshark-in-debian/

Installation procedure

To begin with the installation, add the repo by executing the following command.

root@linuxhelp1:~# add-apt-repository ppa:wireshark-dev/stable
 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
 More info: https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmppp4ffz_k/secring.gpg'  created
gpg: keyring `/tmp/tmppp4ffz_k/pubring.gpg'  created
gpg: requesting key 14ECA0F0 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmppp4ffz_k/trustdb.gpg: trustdb created
gpg: key 14ECA0F0: public key " Launchpad PPA for Wireshark Developers"  imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Update the repository using the apt-get update command.

root@linuxhelp1:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease             
Hit:3 http://ppa.launchpad.net/mhsabbagh/greenproject/ubuntu xenial InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease     
Get:5 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial InRelease [24.4 kB]
Hit:6 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease               
Get:7 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 Packages [3,284 B]
Get:8 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main i386 Packages [3,272 B]
Get:9 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main Translation-en [1,784 B]
Fetched 32.7 kB in 1s (27.4 kB/s)                                  
Reading package lists... Done

Next install the Wireshark package by executing the following command.

root@linuxhelp1:~# apt-get install wireshark
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  geoip-database-extra javascript-common libc-ares2 libjs-openlayers libnghttp2-14 libnl-route-3-200 libqgsttools-p1
  libqt5multimedia5-plugins libqt5multimediawidgets5 libsmi2ldbl libwireshark-data libwireshark8 libwiretap6 libwscodecs1
  libwsutil7 wireshark-common wireshark-qt
Suggested packages:
  apache2 | lighttpd | httpd snmp-mibs-downloader wireshark-doc
The following NEW packages will be installed:
  geoip-database-extra javascript-common libc-ares2 libjs-openlayers libnghttp2-14 libnl-route-3-200 libqgsttools-p1
  libqt5multimedia5-plugins libqt5multimediawidgets5 libsmi2ldbl libwireshark-data libwireshark8 libwiretap6 libwscodecs1
  libwsutil7 wireshark wireshark-common wireshark-qt
0 upgraded, 18 newly installed, 0 to remove and 310 not upgraded.
Need to get 31.2 MB of archives.
After this operation, 136 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 geoip-database-extra all 20160408-1 [12.1 MB]
Get:2 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 libwireshark-data all 2.2.6+g32dac6a-1~xenial1 [943 kB]
Get:3 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 libwsutil7 amd64 2.2.6+g32dac6a-1~xenial1 [91.6 kB]    
Get:4 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 libwiretap6 amd64 2.2.6+g32dac6a-1~xenial1 [195 kB]   
Get:5 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 libwscodecs1 amd64 2.2.6+g32dac6a-1~xenial1 [47.7 kB] 
Get:6 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 libwireshark8 amd64 2.2.6+g32dac6a-1~xenial1 [12.9 MB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 javascript-common all 11 [6,066 B]                                     
Get:8 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libnghttp2-14 amd64 1.7.1-1 [71.1 kB]                              
Get:9 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libnl-route-3-200 amd64 3.2.27-1 [124 kB]                              
.
.                                                                                    
.
Setting up libsmi2ldbl:amd64 (0.4.8+dfsg2-11) ...
Setting up libjs-openlayers (2.13.1+ds2-2) ...
Setting up libwireshark-data (2.2.6+g32dac6a-1~xenial1) ...
Setting up libc-ares2:amd64 (1.10.0-3ubuntu0.1) ...
Setting up wireshark-common (2.2.6+g32dac6a-1~xenial1) ...
Setting up wireshark-qt (2.2.6+g32dac6a-1~xenial1) ...
Setting up wireshark (2.2.6+g32dac6a-1~xenial1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...

To check the version of the Wireshark, execute the following command.

root@linuxhelp1:~# wireshark -v
Wireshark 2.2.6 (Git Rev Unknown from unknown)
Copyright 1998-2017 Gerald Combs < gerald@wireshark.org>  and contributors.
License GPLv2+: GNU GPL version 2 or later < http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> 
This is free software  see the source for copying conditions. There is NO
warranty  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) with Qt 5.5.1, with libpcap, with POSIX capabilities (Linux),
with libnl 3, with GLib 2.48.2, with zlib 1.2.8, with SMI 0.4.8, with c-ares
1.10.0, with Lua 5.2.4, with GnuTLS 3.4.10, with Gcrypt 1.6.5, with MIT
Kerberos, with GeoIP, with nghttp2 1.7.1, with QtMultimedia, without AirPcap.
Running on Linux 4.4.0-21-generic, with locale en_IN, with libpcap version
1.7.4, with GnuTLS 3.4.10, with Gcrypt 1.6.5, with zlib 1.2.8.
        Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz (with SSE4.2)
Built using gcc 5.4.0 20160609.

Once the application has been installed, type the Wireshark package name and run the application.

The application is running successfully. Now the user can use the application for various troubleshooting purposes.

Wasn' t that an easy installation procedure? The Wireshark implements the user interface using the pcap to capture packets.

FAQ
Q
how to check the version of wireshark application in ubuntu?
A
check the version of the Wireshark, execute the following command
# wireshark -v
Q
where to run the wireshark in ubuntu?
A
the application has been installed, type the Wireshark package name and run the application.
Q
how to add the repo for wireshark in terminal?
A
begin with the installation, add the repo of wireshark by executing the following command.
# add-apt-repository ppa:wireshark-dev/stable
Q
what is the use of installing the wireshark in ubuntu?
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
how to install wireshark in opensuse?
A
through YaST->Software->Software Management and search for wireshark

# zypper in wireshark