mrt-slice command not found

In this troubleshooting guide we learn how to fix mrt-slice command not found error message

Introduction

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

mrt-slice: command not found

or when using sudo you get the following error message

sudo: mrt-slice: command not found

Solutions to mrt-slice: command not found

How To Fix mrt-slice: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mrt-slice is provided by mrtparse package.

mrtparse is:

The MRT format can be used to export routing protocol messages, state changes, and routing information base contents, and is defined in RFC6396.

Programs like Quagga / Zebra, BIRD, OpenBGPD and PyRT can dump the MRT format data. Archives are also available from the Route Views Projects and RIPE NCC.

This package contains various utilities using the Python module, including a tool to convert to an ExaBGP input, a tool to a bgpdump input, a tool to dump all the information as text and a tool to print a short summary.

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

sudo apt-get -y install mrtparse

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

You can also use apt command to install mrtparse.

sudo apt -y install mrtparse

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

sudo aptitude install mrtparse

Summary

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