LOCALE screwed up?
Opened this issue · 0 comments
giuliomoro commented
You would occasionally get this warning (e.g.: when apt-get
'ing something that uses perl
to configure the package).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.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
This solution worked:
$ export LANGUAGE=en_US.UTF-8
$ export LANG=en_US.UTF-8
$ export LC_ALL=en_US.UTF-8
$ locale-gen en_US.UTF-8
$ dpkg-reconfigure locales
note: the current (incomplete, see log above) configuration is en_GB.UTF-8
(so GB
instead of US
). I reckon the above fixe with en_GB
would work similarly well.