locale-check command not found

In this troubleshooting guide we learn how to fix locale-check command not found error message

Introduction

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

locale-check: command not found

or when using sudo you get the following error message

sudo: locale-check: command not found

Solutions to locale-check: command not found

How To Fix locale-check: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu locale-check is provided by base-files package.

base-files is:

This package contains the basic filesystem hierarchy of a Debian system, and several important miscellaneous files, such as /etc/debian_version, /etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others, and the text of several common licenses in use on Debian systems.

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

sudo apt-get -y install base-files

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

You can also use apt command to install base-files.

sudo apt -y install base-files

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

sudo aptitude install base-files

Summary

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