Comment 6 for bug 1598326

Revision history for this message
andrew bezella (abezella) wrote : additional debug info

my initial problem was that i'd not been including the
'language-pack-en' but it still doesn't seem to be working as expected.

attempting to noninteractively reconfigure locales *un*sets
locales/locales_to_be_generated (full output in
noninteractive-dpkg-reconfigure+debug.log):
~# debconf-show locales
* locales/locales_to_be_generated: en_US.UTF-8 UTF-8
* locales/default_environment_locale: en_US.UTF-8
~# egrep -v ^\# /etc/locale.gen
                                [intentionally blank lines]

~# cat /etc/default/locale
# File generated by update-locale
~# DEBIAN_FRONTEND=noninteractive /usr/sbin/dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_AG.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_NG.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_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
~# debconf-show locales
* locales/locales_to_be_generated:
* locales/default_environment_locale: en_US.UTF-8
~# egrep -v ^\# /etc/locale.gen

~# cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8

notably, when `/usr/sbin/dpkg-reconfigure locales` is run
*interactively* in place of the noninteractive call, "en_US.UTF-8 UTF-8"
is *not* preselected; selecting it and completing the reconfigure
results in what i would expect (full output in
interactive-dpkg-reconfigure+debug.log):
~# debconf-show locales
* locales/locales_to_be_generated: en_US.UTF-8 UTF-8
* locales/default_environment_locale: en_US.UTF-8
~# egrep -v ^\# /etc/locale.gen

~# cat /etc/default/locale
# File generated by update-locale
~# /usr/sbin/dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_AG.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_NG.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_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
~# debconf-show locales
* locales/default_environment_locale: en_US.UTF-8
* locales/locales_to_be_generated: en_US.UTF-8 UTF-8
~# egrep -v ^\# /etc/locale.gen

en_US.UTF-8 UTF-8
~# cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8

it's unclear to me why the run of `/var/lib/dpkg/info/locales.config
reconfigure 2.23-0ubuntu3` behaves as it does, but something appears
awry. after finding /etc/locale.gen empty, the locales.config script
(via GEN_LOCALES and SELECTED_LOCALES variables) appears to *un*set
locales/locales_to_be_generated. similarly, it seems that the script
tries to substitute the DEFAULT_LOCALES that it finds (from on-disk
files) into locales/default_environment_locale (cf. the debconf error
above) without regard to its existing value.

tia!

andy

--
andrew bezella <email address hidden>
Internet Archive