do-release-upgrade crashes while updating from 13.04 to 13.10 when locale is ru-RU.UTF8

Bug #1241148 reported by Ilya Loginov
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Application crashes with the following stacktrace:

Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-6agiri/DistUpgrade/DistUpgradeViewText.py", line 107, in _handleException
    "\n".join(lines))
  File "/tmp/ubuntu-release-upgrader-6agiri/DistUpgrade/DistUpgradeViewText.py", line 141, in error

    print(twrap(summary))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-6agiri/saucy", line 10, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-6agiri/DistUpgrade/DistUpgradeMain.py", line 230, in main
    app = DistUpgradeController(view, options, datadir=options.datadir)
  File "/tmp/ubuntu-release-upgrader-6agiri/DistUpgrade/DistUpgradeController.py", line 126, in __init__
    self._view.updateStatus(_("Reading cache"))
  File "/tmp/ubuntu-release-upgrader-6agiri/DistUpgrade/DistUpgradeViewText.py", line 121, in updateStatus
    print(msg)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

When I start do-release-upgrade with LC_ALL=C all works fine.

My locale is:

LANG=ru_RU.UTF-8
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

LC_ALL=C apt-cache policy ubuntu-release-upgrader-core
ubuntu-release-upgrader-core:
  Installed: 1:0.205
  Candidate: 1:0.205
  Version table:
 *** 1:0.205 0
        500 http://ru.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status
(Sorry, I've already upgraded system when upgrader started with LC_ALL=C.)

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ubuntu-release-upgrader-core 1:0.205
ProcVersionSignature: Ubuntu 3.8.0-31.46-generic 3.8.13.8
Uname: Linux 3.8.0-31-generic x86_64
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
CrashDB: ubuntu
Date: Thu Oct 17 22:38:30 2013
InstallationDate: Installed on 2013-06-25 (114 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to saucy on 2013-10-17 (0 days ago)
VarLogDistupgradeAptclonesystemstate.tar.gz: Error: command ['pkexec', 'cat', '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'] failed with exit code 127: pkexec must be setuid root

Revision history for this message
Ilya Loginov (isloginov) wrote :
Revision history for this message
Ferry Toth (ftoth) wrote :

I get the following (below). It is strange because I allready upgraded 3 machines with same locale (NL).

ferry@eeepc:~$ do-release-upgrade -m desktop -f DistUpgradeViewKDE -d
Er wordt gecontroleerd of er een nieuwe Ubuntu-uitgave is
Get:1 Handtekening opwaardeerprogramma [198 B]
Get:2 Opwaardeerprogramma [1140 kB]
Fetched 1140 kB in 6s (147 kB/s)
Traceback (most recent call last):
  File "/usr/bin/do-release-upgrade", line 152, in <module>
    fetcher.run()
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py", line 281, in run
    if not self.authenticate():
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py", line 77, in authenticate
    'signature': os.path.basename(sig)})
UnicodeEncodeError: 'ascii' codec can't encode character '\xeb' in position 47: ordinal not in range(128)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Ferry Toth (ftoth) wrote :

For KDE the exact command line to get passed this bug is:
 LC_ALL=C.UTF-8 sudo do-release-upgrade -m desktop -f DistUpgradeViewKDE

This gives the following:
Er wordt gecontroleerd of er een nieuwe Ubuntu-uitgave is
Ophalen:1 Handtekening opwaardeerprogramma [198 B]
Ophalen:2 Opwaardeerprogramma [1136 kB]
1136 kB opgehaald in 0s (0 B/s)
'saucy.tar.gz' tegen 'saucy.tar.gz.gpg' verifiëren
âsaucy.tar.gzâ wordt uitgepakt

(note strange char's)

Then follows some repeated:
Fontconfig warning: ignoring C.UTF-8: not a valid language tag

So, not 100% language tag, but get's me passed the crash point.

Revision history for this message
Ferry Toth (ftoth) wrote :

While doing ppa-purge on xorg-edgers I noticed the following warnings that may be related to my problem:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "nl:en_US:en",
        LC_ALL = (unset),
        LANG = "nl_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE 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

No idea what this means. Maybe be missing a dependancy?

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

Other bug subscribers

Remote bug watches

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