Tag Info

Hot answers tagged


First run locale to list what locales you are supposed to have: $ locale LANG=C LANGUAGE= LC_CTYPE=fi_FI.UTF-8 LC_NUMERIC="C" LC_TIME="C" LC_COLLATE=fi_FI.UTF-8 LC_MONETARY="C" LC_MESSAGES=fi_FI.UTF-8 LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL= The generate the missing locale and reconfigure ...


That's because your locale in your local machine is set to German, which SSH forwards to and tries to use on the server, but your server does not have it installed. You've got several options: Generate the locale. Generate the German locale on the server with sudo locale-gen de. Stop forwarding locale from the client. Do not forward the locale environment ...


check which locales are supported: locale -a add the locales you want (for example ru): sudo locale-gen ru_RU sudo locale-gen ru_RU.UTF-8


Nothing suggested above worked in my case (Ubuntu Server 12.04LTS). What finally helped was putting to the file /etc/environment: LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 For some reason it was missing. The outputs for locale and other commands appeared like the variables were properly defined. In other words don't take for granted all the basic stuff is ...


They should disappear after issuing: sudo locale-gen en_US en_US.UTF-8 dpkg-reconfigure locales dpkg-reconfigure reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions, much like when the package was first installed.


I had the same problem, but found the following solution over at ubuntuforums: export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 sudo dpkg-reconfigure locales


Here's another solution, also from Ubuntu Forums. I think this is somewhat cleaner and more robust: it doesn't involve customising Ubuntu's locale files (only settings that you're supposed to edit). Gnome calendar applet adheres to your locale settings. In Ubuntu, you can assign locale components by editing the file /etc/default/locale. Here is ...


Type the following in terminal to get rid of that error, sudo apt-get install language-pack-en-base sudo dpkg-reconfigure locales


Usually this error means that you could have been changing between different languages (locales) and something has caused this to error erroneously. You could try regenerating your list of locales with sudo dpkg-reconfigure locales For me the result was: Generating locales... en_AG.UTF-8... done en_AU.UTF-8... done en_BW.UTF-8... done ...


Try the following commands sudo locale-gen fr_FR sudo update-locale LANG=fr_FR


Just add the following to your .bashrc file (assuming you're using bash) export LC_ALL="en_US.UTF-8"


You can set locale manually using update-locale: sudo update-locale LANG=de_DE.UTF-8 LC_MESSAGES=POSIX Read the man page for more information. Alternatively, you can manually change your system's locale entries by modifying the file /etc/default/locale. For example on a German system, to prevent system messages from being translated, you may use: ...


Run the command locale - it should show your current locale. Generate the locales for french: sudo locale-gen fr_FR sudo locale-gen fr_FR.UTF-8 Also, try regenerating the supported locale list by running: sudo dpkg-reconfigure locales And update/change the current default locale: sudo update-locale LANG=fr_FR.UTF-8 Update Extra steps to try: ...


I've managed to get things running "normally" again. After trying lots of package re-installs etc, including fully removing IBus (all to no effect), I started to think that it may be caused by a config setting which re-installing doesn't modify. I had noticed that the output from locale was rather bereft, of UTF-8 assignments, so I checked this in a ...


This can happen sometimes on fresh minimal/alternate installs or in other situations. The fix is pretty simple. Try these, in the following order, testing after each to see if the situation is fixed: 1. Reconfigure locales sudo dpkg-reconfigure locales if that doesn't work, 2. Reinstall locale language-pack sudo apt-get --reinstall install ...


Solution: Edit /etc/default/locale: LANG="en_US" LANGUAGE="en_US:en" Edit ~/.pam_environment: LANG=en_US Language=en_US Logout and Login or Reboot.


What is an Ubuntu localized image? Due to space restrictions, the official Ubuntu installation CDs (also known as ISO images) that can be downloaded from ubuntu.com contain only a handful of the many languages in which Ubuntu is available. Any additional languages can then be downloaded during or after the installation. Localized images are customized ...


You can list locales with localedef --list-archive or with locale -a Corresponding file size is given by ls -lh /usr/lib/locale/locale-archive To remove unused locales you can do sudo locale-gen --purge it_IT.UTF-8 en_US.UTF-8 && echo "Success!" where it_IT.UTF-8 and en_US.UTF-8 are the only two locales I want. The && echo ...


The full list of key combinations is available on the local filesystem here: /usr/share/X11/locale/$LANG/Compose Everything that starts with <Multi_key> is a Compose key combination. You'll find a lot of multi-number combinations producing stuff like: 34 as ¾ (10) as ⑩ And there are some fun (nearly easter egg) things in there too, including: ...


If LC_ALL is set it overrides the values of all the other LC_ variables. Hence setting it by default would have the same effect for your locale settings as setting all the LC variables but would make it more difficult to change only some of the values.


The only way to do this, would be to patch (or in some cases, un-patch) all of the code which displays sizes to the user, and recompile your own fork of Ubuntu which has all of the sizes displayed using base 8 math (which is what you are asking for, and not base 2). It is a very invasive change to make, and is not an Ubuntu specific thing, as upstream ...


Edit /etc/default/locale: LANG="en_US" LANGUAGE="en_US:en" Edit ~/.pam_environment: LANG=en_US Language=en_US Log out and log in, or reboot.


To adjust this, change or add the following lines in the LC_TIME section in /usr/share/i18n/locales/: week 7;19971130;5 first_weekday 2 first_workday 2 And then update the system: sudo locale-gen


This answer will demonstrate how to fully customize a locale, optionally using an existing locale as a base. The type of locale that will be used in this answer is the i18n type; such type of locale will be implied in every mention of the word "locale" in the body of the answer. Find a guide The first thing you need to customize a locale, is get to know ...


If you run the env command, you will be given the environment variables for language. LANGUAGE= LANG=en_CA.UTF-8 If you set those variables to English settings, with the export command, any command called after this will be in "English mode". export LANG=en_US.UTF-8 You can also put this also in the .bashrc or .profile file in your home directory, this ...


I also met this problem ,as you see, your LC_ALL is empty. I did as follows and it helps: $ sudo vim /etc/environment and set the LC_ALL to something like en_US.UTF-8,mine is: LANG="en_US.UTF-8" LC_MESSAGES="C" LC_ALL="en_US.UTF-8" then reboot,and run locale ,and it should be something like: LANG=zh_CN.utf8 LC_CTYPE="en_US.UTF-8" ...


Redefining the locales and reconfiguring might be sufficient to fix the problem: sudo locale-gen en_AU.UTF-8 sudo dpkg-reconfigure locales When you run sudo dpkg-reconfigure locales you can select the locale you want by clicking on spacebar and moving with ↑ and ↓ before hitting Enter.


check which locales are supported : less /usr/share/i18n/SUPPORTED Add locale to list of generated echo ru_RU.UTF8 >> /var/lib/locales/supported.d/local Regenerate list (it will invoke locale-gen...) sudo dpkg-reconfigure locales


I looked at /etc/default/locale and some of the language options were in Chinese. I removed those and added the following and everything is good now: LC_ALL="en_US.UTF-8"

Only top voted, non community-wiki answers of a minimum length are eligible