[Bug 1802194] Re: do-release-upgrade gives many "locale: Cannot set LC_ALL to default locale: No such file or directory" messages

dexter 1802194 at bugs.launchpad.net
Wed Nov 7 23:28:05 UTC 2018


While the do-release-upgrade was running, (in a separate window) I
queried the current locale. It was:

$ locale
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
LANG=en_US.iso88592
LANGUAGE=en
LC_CTYPE=hu_HU.iso88592
LC_NUMERIC=hu_HU.iso88592
LC_TIME=hu_HU.iso88592
LC_COLLATE=hu_HU.iso88592
LC_MONETARY=hu_HU.iso88592
LC_MESSAGES=en_US.iso88592
LC_PAPER=hu_HU.iso88592
LC_NAME=hu_HU.iso88592
LC_ADDRESS=hu_HU.iso88592
LC_TELEPHONE=hu_HU.iso88592
LC_MEASUREMENT=hu_HU.iso88592
LC_IDENTIFICATION=en_US.iso88592
LC_ALL=

$ locale -a
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
hu_HU
hu_HU.iso88592
hungarian
POSIX

So, do-release-upgrade (or the 'locales' package?) created many-many en_*.utf8 locales.. (-- which I do not needm never needed and never will need!)
But "en_US.iso8852" was not created (and the previous generatum was dropped or lost). Despite that the (original) /etc/default/locale (and /var/lib/locales/supported.d/en etc.) do contained it.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1802194

Title:
  do-release-upgrade gives many "locale: Cannot set LC_ALL to default
  locale: No such file or directory" messages

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  On an Xubuntu 18.04 machine..

  With locale (likely)

  $ locale
  LANG=en_US.iso88592
  LANGUAGE=en
  LC_CTYPE=hu_HU.iso88592
  LC_NUMERIC=hu_HU.iso88592
  LC_TIME=hu_HU.iso88592
  LC_COLLATE=hu_HU.iso88592
  LC_MONETARY=hu_HU.iso88592
  LC_MESSAGES=en_US.iso88592
  LC_PAPER=hu_HU.iso88592
  LC_NAME=hu_HU.iso88592
  LC_ADDRESS=hu_HU.iso88592
  LC_TELEPHONE=hu_HU.iso88592
  LC_MEASUREMENT=hu_HU.iso88592
  LC_IDENTIFICATION=en_US.iso88592
  LC_ALL=

  $ sudo do-release-upgrade
  ....
  Setting up libssl1.1:amd64 (1.1.1-1ubuntu2) ...
  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
  Setting up libpython3.6-minimal:amd64 (3.6.7-1~18.10) ...
  ....
  Setting up adduser (3.117ubuntu1) ...
  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
  ....
  Preparing to unpack .../38-cups-bsd_2.2.8-5ubuntu1_amd64.deb ...
  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
  Unpacking cups-bsd (2.2.8-5ubuntu1) over (2.2.7-1ubuntu2.1) ...
  ....
  Setting up debconf (1.5.69) ...
  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
  ....
  Setting up base-passwd (3.5.45) ...
  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
  ....
  update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
  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
  Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
  ....
  Setting up gconf2-common (3.2.6-4.1ubuntu2) ...
  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
  Setting up libtdb1:amd64 (1.3.16-1) ...
  ....
  Setting up keyboard-configuration (1.178ubuntu9) ...
  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
  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
  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
  ....
  Setting up less (487-0.1build1) ...
  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
  ....
  Setting up libpam-gnome-keyring:amd64 (3.28.2-0ubuntu1) ...
  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
  ....
  Setting up libssl1.0.0:amd64 (1.0.2n-1ubuntu6) ...
  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
  ....
  ....

  So /var/log/dist-upgrade/apt-term.log is (almost) full of
   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
  messages.
  (I am not sure what does it mean exactly. Some functionality is lost? Essential functionality or non-essential, or what essentiality-grade..? What can we say? Was the release-upgrade successful or not?.. What to do?)

  do-release-upgrade finished (somehow).

  After reboot, the locale was (I cannot recall in full detail)
  something "C.UTF-8"s.

  I manually reconstructed the locale. (Via: Language Support GUI,
  /etc/default/locale, /var/lib/locales/supported.d/en, /etc/locale.gen,
  'rm -r /usr/lib/locale/*', locale-gen .)

  Please *test* do-release-upgrade with locale-encodings other than
  UTF-8. (And languages other than en_US.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1802194/+subscriptions



More information about the foundations-bugs mailing list