When I always try to install new package I get this message:
Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_GB:en",
LC_ALL = (unset),
LC_CTYPE = "en_GB.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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
My OS is Debian Jessie 8.3 (Mate) using English with French keyboard. When I type locale, I get this:
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
LANG=en_US.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE=en_GB.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
/etc/locale.gen
does't did the job for me (did logout/login), butlocale-gen
solved mytmux: need UTF-8 locale (LC_CTYPE)
problem onDebian 4.9.82
– eapo May 30 '18 at 21:59/etc/locale.gen
and then runlocale-gen
. – Gilles 'SO- stop being evil' May 30 '18 at 22:30en_US.UTF-8
as well and your own locale. I found out the hard way then circled back here to make my own answer before realising it was here all along. – Alastair McCormack Feb 09 '19 at 18:49sudo dpkg-reconfigure locales
. Then it worked fine. – HelloWorld101 Apr 03 '19 at 08:35