Beagleblone Black LC_CTYPE LC_MESSAGES LC_ALL

587 views
Skip to first unread message

jiapei100

unread,
Jul 28, 2013, 8:46:41 PM7/28/13
to beagl...@googlegroups.com

Hi, all:

I'm playing with my Beaglebone Black, having ubuntu-13.04-console-armhf-2013-07-22.tar.xz installed. Whenever upgrading/installing some packages, I noticed

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

Just wondering what are these 3 parameters for, and what are the influences without setting these 3 parameters?


Best Regards
Pei

Andrew Henderson

unread,
Jul 28, 2013, 9:40:58 PM7/28/13
to beagl...@googlegroups.com
You might be missing an /etc/locale.conf or /etc/defaults/locale file.  GNU software has a mechanism to query what your current locale is to determine how you prefer to have currency, dates, etc. formatted when they are displayed.

http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Locale-Categories.html

You can try apt-get'ing the glibc-locale package on the BBB.  Also, make sure that the locale set up locally is also available on the BBB.  If you're ssh'ing into the BBB from a Linux machine, your locale on the Linux machine might not match a locale available on the BBB.  If you see LC_CTYPE, LC_MESSAGES, and LC_ALL like you are, that is a likely possibility.

Andrew

Robert Nelson

unread,
Jul 28, 2013, 10:05:56 PM7/28/13
to beagl...@googlegroups.com
On Sun, Jul 28, 2013 at 7:46 PM, jiapei100 <jp4...@gmail.com> wrote:
>
> Hi, all:
>
> I'm playing with my Beaglebone Black, having
> ubuntu-13.04-console-armhf-2013-07-22.tar.xz installed. Whenever
> upgrading/installing some packages, I noticed
>
> 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

Just run:
dpkg-reconfigure locales

Then logout/login.. if it still fails, do:

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
dpkg-reconfigure locales

> Just wondering what are these 3 parameters for, and what are the influences
> without setting these 3 parameters?

Mostly just annoying error messages..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages