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

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

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

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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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