update-locale command not found

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

Introduction

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

update-locale: command not found

or when using sudo you get the following error message

sudo: update-locale: command not found

Solutions to update-locale: command not found

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

In Ubuntu update-locale is provided by gosa-dev package.

gosa-dev is:

This package contains a couple of tools to generate online help, extract localizations and howto’s for developing Gosa² plugins.

GOsa² is a combination of system-administrator and end-user web interface, designed to handle LDAP based setups.

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

sudo apt-get -y install gosa-dev

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

You can also use apt command to install gosa-dev.

sudo apt -y install gosa-dev

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

sudo aptitude install gosa-dev

Summary

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