🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.glibc
2 messages
2 total messages Started by Aurelien Jarno Thu, 29 Oct 2026 22:00
Bug#1151251: libc6: Can't generate locales after dpkg-reconfigure locales
#8
Author: Aurelien Jarno
Date: Thu, 29 Oct 2026 22:00
51 lines
3841 bytes
control: reassign -1 locales
control: severity -1 importnat
control: tags -1 - d-i

Hi,

On 2026-10-19 08:16, Ryan Cunningham wrote:
> Package: libc6
> X-Debbugs-Cc: proudtobe2e1@gmail.com, debian-boot@lists.debian.org
> Version: 2.44-3
> Severity: important
> Tags: d-i l10n
> 
> Dear Maintainer,
> 
> I encountered the following error message when attempting to run
> 'dpkg-reconfigure locales' to change my computer's locale settings to Spanish:
> 
> [sudo] password for ryan:
> Generating locales (this might take a while)...
>   es_US.UTF-8... done
> Generation complete.

By default, dpkg-reconfigure locales does not provides the es_US.UTF-8 
locales as it is not a standard one. I guess you manually added it to 
/etc/locale.gen, which is fine. Could you please confirm that?

> *** update-locale: Error: invalid locale settings:  LC_ALL=en_US.UTF-8 LANG=es_US.UTF-8
> ----------
> 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
> ANSI_X3.4-1968
> ----------

The problem there is that the LC_ALL environment variable is somehow 
defined to en_US.UTF-8 on your system (note *en*, not *es*). With such a 
configuration you need to generate both en_US.UTF-8 and es_US.UTF-8 
locales.

This variable is not written by the 'dpkg-reconfigure locales' scripts, 
which only touch the LANG environment variable, so it is not clear from 
where it comes from. You should maybe check in /etc/locale.conf or grep 
/etc, and remove it, unless you prefer to generate both locales.

Regards
Aurelien 

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Bug#1151251: libc6: Can't generate locales after dpkg-reconfigure locales
#12
Author: Aurelien Jarno
Date: Thu, 29 Oct 2026 22:10
57 lines
4238 bytes
Hi,

On 2026-10-29 22:54, Aurelien Jarno wrote:
> Hi,
> 
> On 2026-10-19 08:16, Ryan Cunningham wrote:
> > Package: libc6
> > X-Debbugs-Cc: proudtobe2e1@gmail.com, debian-boot@lists.debian.org
> > Version: 2.44-3
> > Severity: important
> > Tags: d-i l10n
> > 
> > Dear Maintainer,
> > 
> > I encountered the following error message when attempting to run
> > 'dpkg-reconfigure locales' to change my computer's locale settings to Spanish:
> > 
> > [sudo] password for ryan:
> > Generating locales (this might take a while)...
> >   es_US.UTF-8... done
> > Generation complete.
> 
> By default, dpkg-reconfigure locales does not provides the es_US.UTF-8 
> locales as it is not a standard one. I guess you manually added it to 
> /etc/locale.gen, which is fine. Could you please confirm that?

Ok, checking again, it appears that this locale is now a standard one, 
sorry about the confusion.

> > *** update-locale: Error: invalid locale settings:  LC_ALL=en_US.UTF-8 LANG=es_US.UTF-8
> > ----------
> > 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
> > ANSI_X3.4-1968
> > ----------
> 
> The problem there is that the LC_ALL environment variable is somehow 
> defined to en_US.UTF-8 on your system (note *en*, not *es*). With such a 
> configuration you need to generate both en_US.UTF-8 and es_US.UTF-8 
> locales.
> 
> This variable is not written by the 'dpkg-reconfigure locales' scripts, 
> which only touch the LANG environment variable, so it is not clear from 
> where it comes from. You should maybe check in /etc/locale.conf or grep 
> /etc, and remove it, unless you prefer to generate both locales.

This part is still valid. The problem is the configuration of the LC_ALL 
variable, I am not sure from where it comes from, but not from the 
locales packages.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads