scan_mojibake command not found

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

Introduction

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

scan_mojibake: command not found

or when using sudo you get the following error message

sudo: scan_mojibake: command not found

Solutions to scan_mojibake: command not found

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

In Ubuntu scan_mojibake is provided by libtest-mojibake-perl package.

libtest-mojibake-perl is:

Many modern text editors automatically save files using UTF-8 encoding, however, perl interpreter does not expects it by default. Whereas this does not represent a big deal on (most) backend-oriented programs, Web framework (Catalyst, Mojolicious) based applications will suffer of so-called Mojibake (lit. “unintelligible sequence of characters”).

Test::Mojibake lets you check for inconsistencies in source and documentation encoding, and report its results in a standard Test::Simple fashion.

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

sudo apt-get -y install libtest-mojibake-perl

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

You can also use apt command to install libtest-mojibake-perl.

sudo apt -y install libtest-mojibake-perl

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

sudo aptitude install libtest-mojibake-perl

Summary

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