LC_ALL = (unset) or when you try to install anything with apt-get and get error
Hello every one ,
Today i got some strange 1 in the life time error – and i want to share it and resolve it .
My server is an VPS linux server (Ubuntu 12.04) – Parallels Virtuoozzoo .
Every time I try to install anything with apt-get,restart service and use commands – I get the following error.
For example:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "he_IL.UTF-8",
LC_ADDRESS = "he_IL.UTF-8",
LC_MONETARY = "he_IL.UTF-8",
LC_NUMERIC = "he_IL.UTF-8",
LC_TELEPHONE = "he_IL.UTF-8",
LC_IDENTIFICATION = "he_IL.UTF-8",
LC_MEASUREMENT = "he_IL.UTF-8",
LC_TIME = "he_IL.UTF-8",
LC_NAME = "he_IL.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
The picture on one more server of my :
One more example :
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_GB:en",
LC_ALL = (unset),
LANG = "en_GB"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Solution to that problem:
I runt couple of commands :
root@www:# dpkg-reconfigure locales
and
root@www:# sudo localwe-gen en_US.UTF-8
You are done 🙂 – no need to reboot the system .
For Debian systems it may work , but i know only this :
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
P.S
You may also use :
LC_ALL="en_GB.utf8"
sudo apt-get install --reinstall language-pack-en
—
Good Luck .
Sergey Babkevych
