u8loc command not found

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

Introduction

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

u8loc: command not found

or when using sudo you get the following error message

sudo: u8loc: command not found

Solutions to u8loc: command not found

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

In Ubuntu u8loc is provided by u8loc package.

u8loc is:

Sometimes it is useful for a program to be able to run a child process and more or less depend on its output being valid UTF-8. This can usually be accomplished by setting one or more environment variables, but there is the question of what to set them to - what UTF-8-capable locale is present on this particular system? This is where the utf8_locale module comes in.

This package provides the u8loc command-line tool.

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

sudo apt-get -y install u8loc

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

You can also use apt command to install u8loc.

sudo apt -y install u8loc

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

sudo aptitude install u8loc

Summary

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