Locale error on new BBB install

32 views
Skip to first unread message

Chris Green

unread,
Jan 28, 2021, 5:33:23 PM1/28/21
to beagl...@googlegroups.com
I have just installed the Debian 10.3 console image on a BBB an it has
a locale error:-

root@beaglebone:~# 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=en_GB.UTF-8
LANGUAGE=
LC_CTYPE=en_GB.utf8
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
root@beaglebone:~#

It looks as if locales are not correctly installed and the en_GB.UTF-8
locale hasn't been generated.

The command localefdef can't find the require character maps.

What do I need to install/build, anyone know?


--
Chris Green
·

jonnymo

unread,
Jan 28, 2021, 5:57:17 PM1/28/21
to Beagle Board
There is a solution posted in this link:

Basically, try:
sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales

Although, you may want to change the 'US" stuff for the locale you are in.

Cheers,

Jon

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/51qbeh-11u1.ln1%40esprimo.zbmc.eu.

Chris Green

unread,
Jan 28, 2021, 6:18:21 PM1/28/21
to beagl...@googlegroups.com
... and the answer is one needs to install the locales package.

This is a bug IMHO, the locales package should always be installed,
even on a 'console' device.

Once you've installed locales you need to edit /etc/locale.gen and
then run locale-gen.

--
Chris Green
·

Chris Green

unread,
Jan 29, 2021, 4:33:29 AM1/29/21
to beagl...@googlegroups.com
jonnymo <jonn...@gmail.com> wrote:
> [-- text/plain, encoding quoted-printable, charset: UTF-8, 81 lines --]
>
> There is a solution posted in this link:
> https://stackoverflow.com/questions/65525716/why-do-i-get-a-locale-error-even-though-it-is-set
>
> Basically, try:
>
> *sudo locale-gen en_US en_US.UTF-8*
> *sudo dpkg-reconfigure locale*s
>
The problem is (was) that locale-gen isn't installed on the console
image. Once I installed the 'locales' package and ran locale-gen
(which is part of the locales package) for the locale I wanted then
all was well.

--
Chris Green
·

Reply all
Reply to author
Forward
0 new messages