• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

How Do I Install Wireshark On Ubuntu?

CJ Saathoff

Published on: October 8, 2024

Categories: VPS Hosting 0

Wireshark is a cross-platform network protocol analyzer that lets you interactively capture and view network packets. Although this is a rather advanced topic, for those in the know it allows them to capture network traffic as it travels across the network. You can even save those captures for later analytics. This tool may be utilized for reasons from network troubleshooting, cybersecurity, research, and more.

In this post, we will go over the basics of Wireshark Ubuntu from the background information you should know and how to install Wireshark on your Ubuntu machine.

Table of Contents
  • What Is A Packet?
  • What Is Packet Capture?
  • Do I Need Special Permissions?

⚠️ Warning

Before using a tool like this it’s recommended to get permission from the owner of the network, as acceptable use policies may forbid the use of packet capture software.

What Is A Packet?

In computer networking a packet is the final format before it is sent on towards the destination.

What Is Packet Capture?

Packet capture is when packets are captured for analysis. Something to keep in mind is that packets will vary based on the protocol being used.

Do I Need Special Permissions?

The answer is yes, additional permissions beyond standard user permissions are required to use packet capture software.

  • First, before you get started be sure you have permissions from the administrator of the Network you want to run Wireshark on.
  • You will need the right environment, some virtual technologies and containers can affect the ability to packet capture.

You will need more permissions than standard user permissions. For Linux, you need to be added to a user group, have superuser permissions, or root permissions.

Wireshark Installation

To download Wireshark and install Wireshark on newer versions of Ubuntu (18.04 and up) search using your preferred package manager for Wireshark. If you see other instructions saying you need to add an apt repository, be aware this is only if you are on an older Ubuntu version or if you need a version not provided by the standard repositories.

  • On the command line, you would run:sudo apt install wiresharkDuring the installation, you will be prompted if you would like non-superusers to be able to capture packets. Unless this is a feature you require I recommend selecting No.Configuration window while installing wireshark

If you do choose to use this option you will need to add the users you want to be able to use Wireshark to the Wireshark group.

Basic Usage

  1. After you open Wireshark it will ask what interface you want to capture traffic on. Select the interface you want to capture traffic onTroubleshooting tip: if you get an error message box that says “you don’t have permission to capture on that device” either close and reopen Wireshark with sudo or follow the directions provided to allow your user to capture packets without needing to elevate their permissions.

From here you will see traffic as it captured.

  1. When you are done capturing click on the red stop button. 🟥
  2. (Optional) To save the capture for later now go to file > Save then and provide a and click save.

Bonus

Need to capture packets on a server that doesn’t have a graphical environment? Use tcpdump as shown below, and you can open the packet capture for later.

sudo tcpdump -i eth0 -w capture.pcap

Make sure to replace eth0 with the correct interface for the system you are using.

Later on, you can open the file containing the captured packets, in Wireshark by going to File Open and selecting the file.

Conclusion

In this post we have covered background like what a packet is, why someone would use this software, and that packet capture requires additional permissions. Moving on we touched on how to install and basic usage. Wrapping things up with a way to capture packets on servers and then later be able to open the file with Wireshark.

Additional Links

Done reading and looking for additional information, why not check these out?

  • Wireshark Documentation
  • My other posts
CJ Saathoff

Embracing a lifelong passion for technology since childhood, CJ delved into the intricate workings of systems, captivated by the desire to understand the unknown. This innate curiosity led to his discovery of Linux, a revelation that resonated deeply. With more than 7 years of on the job experience, he’s honed his technical skills as a Geek and Senior Linux Systems Administrator.

Related Posts

Bash Conditional Expressions: [[ vs [ vs test

In bash scripts, we use conditional statements frequently. Whether it’s in an “if fi” logic block or within a “while” or “do” loop, we evaluate statements all the time to determine whether they’re true or false, and perform various actions based on the result. True to form, there are multiple ways to do this, and […]

Git Rebase vs Merge vs Cherry-Pick: When to Use Each

Git has many tools for merging branches and commits. Rebasing, merging, and cherry-picking all have their uses.

How to Use Process Substitution in Bash

Bash allows you to combine multiple nested steps in a single command using process substitution. It's faster, and more reusable.

Command Substitution – Parentheses vs Backticks

Bash command substitution comes in two flavors - parentheses and backticks. Here's the difference between them.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA