I keep getting locale errors.
I tried fixing it using sudo dpkg-reconfigure locales
The output was:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
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_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Can you tell me how I can fix this? The locale I set is en_GB.UTF-8 UTF-8
You can install the console-setup package to configure keyboard layouts and locales, (outside of Kodi) but that will interfere with the splash screen on bootup. (One reason it is not currently installed by default, the other being that it slows down the boot process considerably)
I thought I missed that splash screen on the first install, so I just reinstalled my sd card with a fresh downloaded image via the installer.
On boot I see the nice bokeh image background and an installing progressbar, after 100% it reboots straight into osmc. Time says at first 12:00 am, then changes to GMT. (iām in gmt +1).
There is no splashscreen where I can set my locales.
When I ssh into the system and type ālocaleā I get the same error.
So I guess everybody has this error? Has anyone been able to fix it?
To change your timezone in Kodi go to Settings->Appearance->International to choose your Language, Region, Character set, Keyboard layout, and Timezone Country.
Itās possible that system log files will still be in GMT though - this should be fixed before the final release of OSMC as there will be a first time walk through for many settings including timezone.
Thanks for your answer. I did set those settings but it keeps giving locale errors.
When installing a package these errors come up, and when I installed for instance deluge, I launch it with ādelugedā, after a few seconds the error comes up and I have to ctrl-c to get a new command line.
I did, without result unfortunately.
Are there others with the same setup (Rpi 2, OSMC fresh install) who do not have this problem?
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
osmc@osmc:~$ 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
LANG=C
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
osmc@osmc:~$
Iām logging in via SSH yes, from my Macbook (Mac OS 10.10.2)
I have 2 other Rpiās, 1 with Raspbian and 1 with Raspmbc, I donāt get these errors on them.
dpkg -l | grep locales gives:
ii locales 2.19-13 all GNU C Library: National Language (locale) data [support]
ii python-apt-common 0.9.3.11 all Python interface to libapt-pkg (locales)
I think this is caused by LC_ALL not being exported properly. I have made some attempts to remedy this and we will see if it resolves issues in the next build
Hi. Same problem from windows, "sudo apt-get install locales" and export LC_ALL in .bashrc not helped:
-bash: warning: setlocale: LC_ALL: cannot change locale (ru_RU.UTF-8): No such file or directory
osmc@osmc:~$ locale
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
LANG=C
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=ru_RU.UTF-8