• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Wireshark in Ubuntu

{{postValue.id}}

To install Wireshark in Ubuntu

Wireshark is an open-source protocol analyzer software which is used for monitoring and troubleshooting the network traffic. It tries to capture the network packets and displays them with detailed protocol information. The installation of Wireshark on Ubuntu is briefed in this article.


To install Wireshark

Before the installation of Wireshark, it is essential to add it in your repository.

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
 More info: https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpwqdv9zqe/secring.gpg'  created
gpg: keyring `/tmp/tmpwqdv9zqe/pubring.gpg'  created
gpg: requesting key 14ECA0F0 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpwqdv9zqe/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

Once the repository is added, invoke the following command to update it.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial InRelease [18.1 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease                     
Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease                   
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease                 
Get:6 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main amd64 Packages [3,820 B]
Get:7 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main i386 Packages [3,824 B]
Get:8 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial/main Translation-en [1,556 B]
Fetched 27.3 kB in 3s (7,956 B/s)                
Reading package lists... Done

After the repository is updated, install the Wireshark package with the following command.

root@linuxhelp1:~# apt-get install wireshark -y
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 416 not upgraded.
Need to get 31.1 MB of archives.
After this operation, 136 MB of additional disk space will be used.
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.1+ga6fbd27-1~xenial1 [931 kB]
.
.
.
Setting up libwiretap6:amd64 (2.2.1+ga6fbd27-1~xenial1) ...
Setting up libwscodecs1:amd64 (2.2.1+ga6fbd27-1~xenial1) ...
Setting up libwireshark8:amd64 (2.2.1+ga6fbd27-1~xenial1) ...
Setting up wireshark-common (2.2.1+ga6fbd27-1~xenial1) ...
Setting up wireshark-qt (2.2.1+ga6fbd27-1~xenial1) ...
Setting up wireshark (2.2.1+ga6fbd27-1~xenial1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...

During the installation, you' ll get a prompt which asks if non sudo users can capture packets. Grant it as follows.

Wireshark-installation

Once the installation is complete, use the following command to open Wireshark.

root@linuxhelp1:~# wireshark

Wireshark window opens as follows.

Wireshark-window

Now click on the required interface for which you want to analyze the packets and then click start option as follows.
The option ens33 is chosen here for packet analyzing.

Wireshark-ens33

The Wireshark starts packet analyzing as follows.

Terminal 1

Displays the list of packet transfer details

Terminal 2

Displays the packet details of the selected IP addresses

Terminal 3

Displays the packet contents in ASCII and hexadecimal format

Wireshark-packet-analyzing

Now filter the packets based on source and destination IP address as follows.

1. Source IP
Wireshark-SourceIP
2. Destination IP
Wireshark-DestinationIP

The packets can also be filtered based on the service as follows.

Wireshark-packets

Here, it is filtered based on ' || ' condition. The below image depicts the same.

Wireshark-||

The packets with port numbers is filtered as shown below.

Wireshark-port-numbers

Tags:
mason
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

How does the Wireshark work?

A

Wireshark, and any packet sniffer works putting the Ethernet interface in promiscuous mode, receiving all the packets in the local network. ... If you don't need to watch packets traversing a network, then it probably won't be much use to you.

Q

Is Wireshark safe to use?

A

Yes, it's safe to install so long as you get it from a trustworthy source, probably Wireshark itself for preference.

Q

Does 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".

Q

How do you use Wireshark?

A

The following methods can be used to start capturing packets with Wireshark:
You can double-click on an interface in the main window.
You can get an overview of the available interfaces using the “Capture Interfaces” dialog box.

Q

How can I monitor network traffic in Wireshark?

A

Open Wireshark. Click the "Capture" menu, then click "Interfaces." ...
Click the "Start" button to start recording network traffic.
Stop monitoring traffic. ...
Examine each packet's information.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.