I noticed on some VPS's,
locales is not installed by default so
dpkg-reconfigure locales will only throw an error saying that
locales is not installed.
I want to do
apt-get install locales, I've done this a couple times and I know this sets up the locales, but it would also start to throw warnings despite configuring itself to work, hence every package thereafter will not complain with something like:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), 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
But should I do something like edit
/etc/environment and manually set environment variables like
en_US.UTF-8 to make sure the installation of
locales goes fine? Or does it not even matter because I'll only install it one time and despite it throwing warnings when trying to install itself, since it will work after that, not worry about it?