mstlink command not found

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

Introduction

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

mstlink: command not found

or when using sudo you get the following error message

sudo: mstlink: command not found

In Ubuntu mstlink is provided by mstflint package.

mstflint is:

This package contains a burning tool and diagnostic tools for Mellanox manufactured host channel adapters (HCA) and network interface cards (NIC).

This burning tool should be used only with Mellanox-manufactured HCA/NIC cards. Using it with cards manufactured by other vendors may be harmful to the cards (due to different configurations). Using the diagnostic tools is normally safe for all HCAs/NICs.

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

sudo apt-get -y install mstflint

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

You can also use apt command to install mstflint.

sudo apt -y install mstflint

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

sudo aptitude install mstflint

Summary

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