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

Bug #1802194 reported by dexter on 2018-11-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Undecided
Unassigned

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.)

dexter (rekoghllgsuz) wrote :
Download full text (4.1 KiB)

/var/log/dist-upgrade/apt-term.log does not contain all the (error) messages what was on the screen during do-release-upgrade.

I have found in /var/log/syslog a "Falling back to the standard locale ("C")":

....
Nov 7 16:57:47 - org.debian.apt[893]: /usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:35: PyGIWarning: PackageKitGlib was imported without specifying a version first. Use gi.require_version('PackageKitGlib', '1.0') before import to ensure that the right version gets loaded.
Nov 7 16:57:47 - org.debian.apt[893]: from gi.repository import PackageKitGlib as pk
Nov 7 16:57:47 - org.debian.apt[893]: 16:57:47 AptDaemon [INFO]: CommitPackages() was called: dbus.Array([dbus.String('python3-netifaces#auto')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('kmod'), dbus.String('libkmod2'), dbus.String('libxkbcommon-x11-0'), dbus.String('libxkbcommon0'), dbus.String('module-init-tools'), dbus.String('openssh-client'), dbus.String('ppp')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s'))
Nov 7 16:57:47 - AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/fe6ec1c7a6bc44b7adfc9ccc71fdec0c
Nov 7 16:57:47 - org.debian.apt[893]: 16:57:47 AptDaemon.Trans [INFO]: Queuing transaction /org/debian/apt/transaction/fe6ec1c7a6bc44b7adfc9ccc71fdec0c
Nov 7 16:57:47 - AptDaemon.Worker: INFO: Simulating trans: /org/debian/apt/transaction/fe6ec1c7a6bc44b7adfc9ccc71fdec0c
Nov 7 16:57:47 - org.debian.apt[893]: 16:57:47 AptDaemon.Worker [INFO]: Simulating trans: /org/debian/apt/transaction/fe6ec1c7a6bc44b7adfc9ccc71fdec0c
Nov 7 16:57:48 - AptDaemon.Worker: INFO: Committing packages: dbus.Array([dbus.String('python3-netifaces#auto')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([dbus.String('kmod'), dbus.String('libkmod2'), dbus.String('libxkbcommon-x11-0'), dbus.String('libxkbcommon0'), dbus.String('module-init-tools'), dbus.String('openssh-client'), dbus.String('ppp')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s'))
Nov 7 16:57:48 - org.debian.apt[893]: 16:57:48 AptDaemon.Worker [INFO]: Committing packages: dbus.Array([dbus.String('python3-netifaces#auto')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([dbus.String('kmod'), dbus.String('libkmod2'), dbus.String('libxkbcommon-x11-0'), dbus.String('libxkbcommon0'), dbus.String('module-init-tools'), dbus.String('openssh-client'), dbus.String('ppp')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s'))
Nov 7 16:57:48 - org.debian.apt[893]: perl: warning: Setting locale failed.
Nov 7 16:57:48 - org.debian.apt[893]: perl: warning: Please check that your locale settings:
Nov 7 16:57:48 - org.debian.apt[893]: #011L...

Read more...

dexter (rekoghllgsuz) wrote :

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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers