Article View: linux.debian.bugs.dist
Article #2582Bug#1151251: libc6: Can't generate locales after dpkg-reconfigure locales
From: Aurelien Jarno
Date: Thu, 29 Oct 2026 22:10
Date: Thu, 29 Oct 2026 22:10
57 lines
4154 bytes
4154 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
Technical Details
Message-ID:
<NTGtP-8H9Z-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<NTGka-8GXG-11@gated-at.bofh.it> <NTGka-8GXG-9@gated-at.bofh.it> <NTGka-8GXG-11@gated-at.bofh.it> <NTGka-8GXG-9@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!news.corradoroberto.it!diesel.cu.mi.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:10:01 +0100 Message-ID: <NTGtP-8H9Z-3@gated-at.bofh.it> References: <NTGka-8GXG-11@gated-at.bofh.it> <NTGka-8GXG-9@gated-at.bofh.it> <NTGka-8GXG-11@gated-at.bofh.it> <NTGka-8GXG-9@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 22:09:08 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: locales X-Debian-Pr-Keywords: 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/1999612 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 57 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 29 Oct 2026 23:06:52 +0100 X-Original-Message-ID: <auPDfKmg49u--uyf@aurel32.net> X-Original-References: <DS0PR15MB437026653D766033B93E42915AA5982@DS0PR15MB437026.namprd15.prod.outlook.com> <auPAjc4Wa2_VLMRb@aurel32.net> <DS0PR15MB437026653D766033B93E42915AA5982@DS0PR15MB437026.namprd15.prod.outlook.com> <auPAjc4Wa2_VLMRb@aurel32.net>