uchardet command not found

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

Introduction

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

uchardet: command not found

or when using sudo you get the following error message

sudo: uchardet: command not found

Solutions to uchardet: command not found

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

In Ubuntu uchardet is provided by uchardet package.

uchardet is:

uchardet is a C language binding of the original C++ implementation of the universal charset detection library by Mozilla.

uchardet is a encoding detector library, which takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text.

This package contains the cli detection utility.

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

sudo apt-get -y install uchardet

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

You can also use apt command to install uchardet.

sudo apt -y install uchardet

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

sudo aptitude install uchardet

Summary

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