utfcheck command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
utfcheck: command not found
or when using sudo you get the following error message
sudo: utfcheck: command not found
Solutions to utfcheck: command not found
How To Fix utfcheck: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu utfcheck is provided by utfcheck package.
utfcheck is:
The utfcheck program examines a text file and prints a summary of what the file contains: ASCII, UTF-8, UTF-16 (either big-endian or little-endian based on an initial Byte Order Mark), or binary data. ASCII and UTF-8 files are processed further; UTF-16 and binary files are not. For a UTF-8 file, the summary includes whether or not the file begins with the Unicode Byte Order Mark (U+FEFF). Any following data encountered that is not well-formed ASCII or UTF-8 Unicode is considered to be binary data; upon reading such data the input file is considered not to be a proper text file and the program exits with an error status.
The utfcheck program returns an exit status of EXIT_SUCCESS if the text file was well-formed, and EXIT_FAILURE otherwise.
To fix this problem, we can install more using the command below.
sudo apt-get -y install utfcheck
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install utfcheck.
sudo apt -y install utfcheck
Or if you have aptitude installed you can use the following command.
sudo aptitude install utfcheck
Summary
In this tutorial we learn how to fix utfcheck command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.