rustfilt command not found

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

Introduction

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

rustfilt: command not found

or when using sudo you get the following error message

sudo: rustfilt: command not found

Solutions to rustfilt: command not found

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

In Ubuntu rustfilt is provided by rustfilt package.

rustfilt is:

rustfilt works similarly to c++filt, in that it accepts mangled symbol names as command line arguments, and if none are provided it accepts mangled symbols from stdin. Demangled symbols are written to stdout.

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

sudo apt-get -y install rustfilt

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

You can also use apt command to install rustfilt.

sudo apt -y install rustfilt

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

sudo aptitude install rustfilt

Summary

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