removing the package regenerates the locales for ALL other languages

Bug #34593 reported by Matthias Klose
30
Affects Status Importance Assigned to Milestone
langpack-locales (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

$ sudo dpkg -P language-pack-cs language-pack-cs-base
(Lese Datenbank ... 119708 Dateien und Verzeichnisse sind derzeit installiert.)
Entferne language-pack-cs ...
Entferne language-pack-cs-base ...
Generating locales...
  ar_AE.UTF-8... done
  ar_BH.UTF-8... done
  ar_DZ.UTF-8... done
  ar_EG.UTF-8... done
  ar_IN.UTF-8... done
  ar_IQ.UTF-8... done
  ar_JO.UTF-8... done
  ar_KW.UTF-8... done
  ar_LB.UTF-8... done
  ar_LY.UTF-8... done
  ar_MA.UTF-8... done
  ar_OM.UTF-8... done
  ar_QA.UTF-8... done
  ar_SA.UTF-8... done
  ar_SD.UTF-8... done
  ar_SY.UTF-8... done
  ar_TN.UTF-8... done
  ar_YE.UTF-8... done
  de_AT.UTF-8... done
  de_BE.UTF-8... done
  de_CH.UTF-8... done
  de_DE.UTF-8... done
  de_LU.UTF-8... done
  el_CY.UTF-8... done
  el_GR.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZW.UTF-8... done
  es_AR.UTF-8... done
  es_BO.UTF-8... done
  es_CL.UTF-8... done
  es_CO.UTF-8... done
  es_CR.UTF-8... done
  es_DO.UTF-8... done
  es_EC.UTF-8... done
  es_ES.UTF-8... done
  es_GT.UTF-8... done
  es_HN.UTF-8... done
  es_MX.UTF-8... done
  es_NI.UTF-8... done
  es_PA.UTF-8... done
  es_PE.UTF-8... done
  es_PR.UTF-8... done
  es_PY.UTF-8... done
  es_SV.UTF-8... done
  es_US.UTF-8... done
  es_UY.UTF-8... done
  es_VE.UTF-8... done
  he_IL.UTF-8... done
  ku_TR.UTF-8... LC_MONETARY: Der Wert im Feld »int_curr_symbol« gehört nicht zu einem gültigen Namen in ISO 4217
Generation complete.
 * Reloading GNOME Display Manager configuration... * Changes will take effect when all current X sessions have ended.
                                                                                                                                              [ ok ]
Lösche Konfigurationsdateien von language-pack-cs-base ...

Revision history for this message
Matthias Klose (doko) wrote :

makes testing with many installed packages a pain

Changed in language-pack-cs:
assignee: nobody → pitti
Martin Pitt (pitti)
Changed in language-pack-cs:
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Richard G. (skunk) wrote : Similar, possibly related problem here

I have two Breezy systems, configured to use en_US.UTF-8 as the only generated locale. When I upgraded libc6 and locales to version 2.3.5-1ubuntu12.5.10.1, I noticed a lot more locales were being generated (though not nearly _all_ of them; only the English UTF-8 ones):

Setting up locales (2.3.5-1ubuntu12.5.10.1) ...
Generating locales...
  en_US.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_ZA.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.

One of the systems has debconf configured to ask about low-priority questions, so I got the dialog with the big list of locale checkboxes. I noticed that all these non-US English locales were mysteriosly selected, so I unchecked them all, and continued---and STILL they were generated. I had to manually trim down /etc/locale.gen on both systems, and rerun locale-gen(1) to get things back the way I wanted.

Revision history for this message
Matt Zimmerman (mdz) wrote :

This results in a bad user experience in the installer (see bug #39989), so targeting for Dapper. Martin, any idea what the problem is?

Revision history for this message
Martin Pitt (pitti) wrote :

Raising severity since it makes espresso installs a pain.

Revision history for this message
Martin Pitt (pitti) wrote :

 belocs-locales-bin (2.3.5-5ubuntu6) dapper; urgency=low
 .
   * debian/remove-language-pack: Do not call locale-gen to regenerate locales.
     Merely remove the binary locales from /usr/lib/locales. This avoids
     regenerating all other locales unnecessarily. Closes: LP#34593

Changed in langpack-locales:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.