Tran Nghi's Site  - Make notes and share experience

How to fix a locale setting warning from Perl?

This post is also available in: English

Getting this waring everything I am trying to use apt-get,

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

After all, I found this, it solved my issue… how about u?

[email protected]:~# export LANGUAGE=en_US.UTF-8
[email protected]:~# export LC_ALL=en_US.UTF-8
[email protected]:~# export LANG=en_US.UTF-8
[email protected]:~# export LC_TYPE=en_US.UTF-8

export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8

 

 

Message