To fix
following kind of errors:
perl: warning: Setting locale
failed.
perl: warning: Please check that your locale settings:
LANGUAGE =
"en_US:en",
LC_ALL =
(unset),
LC_MESSAGES =
"en_US.UTF-8",
LANG =
"en_US.UTF-8"
are supported and installed on your
system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or
directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or
directory
(Reading database ... 21173 files and directories currently
installed.)
Removing bind9 ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or
directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or
directory
Solution: Check the current locale settings
using below command
- $ locale
- Now fix them using: $sudo locale-gen
"en_US.UTF-8"
- followed by $ sudo dpkg-reconfigure
locales
- If there is still issue, add below lines to /etc/environment file and
execute $source /etc/environment
- LC_ALL=en_US.UTF-8
- LANG=en_US.UTF-8