Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SOLVED: Correct Locate Configuration
- OS: Linux
- Problem: Getting messages similar to the following whenever you run an app, especially in a terminal
- ###################################################################
- $ man schroot
- man: can't set the locale; make sure $LC_* and $LANG are correct
- $ locale
- 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
- $ perl -v
- perl: warning: Setting locale failed.
- perl: warning: Please check that your locale settings:
- LANGUAGE = "en_US:en",
- LC_ALL = (unset),
- LC_CTYPE = "UTF-8",
- LANG = "en_US.UTF-8"
- are supported and installed on your system.
- perl: warning: Falling back to the standard locale ("C").
- #############################################################
- SOLUTIONS:
- The Easy Way
- Install debconf (i.e. run apt-get update then apt-get install debconf, as root)
- Run dpkg-reconfigure locales as root
- The Hard Way
- Edit /etc/locale.gen as root. If /etc/locale.gen does not exist, create it. An example /etc/locale.gen is below.
- Run /usr/sbin/locale-gen as root
- A sample /etc/locale.gen
- # This file lists locales that you wish to have built. You can find a list
- # of valid supported locales at /usr/share/i18n/SUPPORTED. Other
- # combinations are possible, but may not be well tested. If you change
- # this file, you need to rerun locale-gen.
- #
- # XXX GENERATED XXX
- #
- # NOTE!!! If you change this file by hand, and want to continue
- # maintaining manually, remove the above line. Otherwise, use the command
- # "dpkg-reconfigure locales" to manipulate this file. You can manually
- # change this file without affecting the use of debconf, however, since it
- # does read in your changes.
- en_US.UTF-8 UTF-8
Add Comment
Please, Sign In to add comment