mtr-packet command not found

In this troubleshooting guide we learn how to fix mtr-packet command not found error message

Introduction

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

mtr-packet: command not found

or when using sudo you get the following error message

sudo: mtr-packet: command not found

Solutions to mtr-packet: command not found

How To Fix mtr-packet: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mtr-packet is provided by mtr package.

mtr is:

mtr combines the functionality of the ’traceroute’ and ‘ping’ programs in a single network diagnostic tool.

As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each network hop between the machines, it sends a sequence of ICMP ECHO requests to each one to determine the quality of the link to each machine. As it does this, it prints running statistics about each machine.

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

sudo apt-get -y install mtr

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

You can also use apt command to install mtr.

sudo apt -y install mtr

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

sudo aptitude install mtr

Summary

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