I have a very stubborn, well-known locale error on Ubuntu 9.10:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "custom.UTF-8", LANG = "en_US.UTF-8"
Tried the following:
apt-get install --reinstall locales(error: perl: warning: Falling back to the standard locale ("C"). /usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct)
sudo dpkg-reconfigure locales. Result: Cannot set LC_ALL to default locale: No such file or directory, and then updates locales all locales including en_US.UTF-8
sudo locale-genupdates all locales successfully, including en_US.UTF-8
sudo locale-gen un_US en_US.UTF-8gives no error nor other output
echo $LANGgives en_US.UTF-8
/var/lib/locales/supported.d/localsays en_US.UTF-8 UTF-8
locale -agives me:
C en_AG en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_NG en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZW.utf8 POSIX
So well... I am pretty much out of options I can think of. Anybody any idea??