[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:06:30 UTC 2018


/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]: #011LANGUAGE = (unset),
Nov  7 16:57:48 - org.debian.apt[893]: #011LC_ALL = (unset),
Nov  7 16:57:48 - org.debian.apt[893]: #011LANG = "C.UTF-8"
Nov  7 16:57:48 - org.debian.apt[893]:     are supported and installed on your system.
Nov  7 16:57:48 - org.debian.apt[893]: perl: warning: Falling back to the standard locale ("C").
Nov  7 16:57:48 - org.debian.apt[893]: locale: Cannot set LC_CTYPE to default locale: No such file or directory
Nov  7 16:57:48 - org.debian.apt[893]: locale: Cannot set LC_MESSAGES to default locale: No such file or directory
Nov  7 16:57:48 - org.debian.apt[893]: locale: Cannot set LC_COLLATE to default locale: No such file or directory
Nov  7 16:57:55 - AptDaemon.Worker: INFO: Processing transaction /org/debian/apt/transaction/fe6ec1c7a6bc44b7adfc9ccc71fdec0c
Nov  7 16:57:55 - org.debian.apt[893]: 16:57:55 AptDaemon.Worker [INFO]: Processing transaction /org/debian/apt/transaction/fe6ec1c7a6bc44b7adfc9ccc71fdec0c
....

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