🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.glibc
Article #8

Bug#1151251: libc6: Can't generate locales after dpkg-reconfigure locales

#8
From: 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
Technical Details
Message-ID: <NTGka-8GXG-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <NTGka-8GXG-11@gated-at.bofh.it> <NTGka-8GXG-11@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Aurelien Jarno <aurel32@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.glibc
Subject: Bug#1151251: libc6: Can't generate locales after dpkg-reconfigure locales
Date: Thu, 29 Oct 2026 23:00:02 +0100
Message-ID: <NTGka-8GXG-9@gated-at.bofh.it>
References: <NTGka-8GXG-11@gated-at.bofh.it> <NTGka-8GXG-11@gated-at.bofh.it>
X-Original-To: Ryan Cunningham <proudtobe2e1@gmail.com>, 1151251@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct 29 21:55:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.699
Reply-To: Aurelien Jarno <aurel32@debian.org>, 1151251@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-glibc@lists.debian.org
X-Debian-Pr-Message: followup 1151251
X-Debian-Pr-Package: libc6
X-Debian-Pr-Keywords: d-i l10n
X-Debian-Pr-Source: eglibc, glibc
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/2.4.1 (2026-07-04)
X-Debian-User: aurel32
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999610
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 51
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 29 Oct 2026 22:54:21 +0100
X-Original-Message-ID: <auPAjc4Wa2_VLMRb@aurel32.net>
X-Original-References: <DS0PR15MB437026653D766033B93E42915AA5982@DS0PR15MB437026.namprd15.prod.outlook.com> <DS0PR15MB437026653D766033B93E42915AA5982@DS0PR15MB437026.namprd15.prod.outlook.com>