traceshark command not found

In this troubleshooting guide we learn how to fix traceshark command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

traceshark: command not found

or when using sudo you get the following error message

sudo: traceshark: command not found

Solutions to traceshark: command not found

How To Fix traceshark: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu traceshark is provided by traceshark package.

traceshark is:

The trace can be collected using trace-cmd or perf. It can be used to visualize the following events: cpu_frequency cpu_idle sched_migrate_task sched_process_exit sched_process_fork sched_switch sched_wakeup sched_wakeup_new sched_waking

To fix this problem, we can install more using the command below.

sudo apt-get -y install traceshark

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install traceshark.

sudo apt -y install traceshark

Or if you have aptitude installed you can use the following command.

sudo aptitude install traceshark

Summary

In this tutorial we learn how to fix traceshark command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.