bash: locale-gen: command not found

When I run locale-gen command, i get the following error

root@netmon1:~# locale-gen en_US.UTF-8
bash: locale-gen: command not found
root@netmon1:~# 

To see which package provide the locale-gen command, run

boby@sok-01:~$ dpkg -S /usr/sbin/locale-gen
locales: /usr/sbin/locale-gen
boby@sok-01:~$ 

The command locale-gen is provided by package locales. To fix the error install package “locales” with the command

apt install -y locales

See locale-gen

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *