update-manager crashed with TypeError in normalize(): character mapping must return integer, None or unicode

Bug #822913 reported by Fabio Marconi
This bug affects 295 people
Affects Status Importance Assigned to Milestone
Aptdaemon
Fix Released
Undecided
Unassigned
aptdaemon (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Hello
Running an upgrade, at the end when no updates was founded, this popup appear.
In terminal everythings works.
Thanks
Fabio

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: update-manager 1:0.152.10
ProcVersionSignature: Ubuntu 3.0.0-8.10-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
Architecture: amd64
Date: Mon Aug 8 22:03:11 2011
ExecutablePath: /usr/bin/update-manager
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/update-manager
ProcEnviron:
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/update-manager']
SourcePackage: update-manager
Title: update-manager crashed with TypeError in normalize(): character mapping must return integer, None or unicode
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
visibility: private → public
Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Roth (evfool) wrote :

Reassigned to aptdaemon, as the trace is coming from there, and I have seen the same traceback in software-center too.

affects: update-manager (Ubuntu) → aptdaemon (Ubuntu)
Changed in aptdaemon (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Robert Roth (evfool) wrote :

Setting this to Triaged, as this is 100% reproducible, we have a stacktrace, and setting to Medium, as users are starting to report this from both software-center and update-manager, so this might affect all aptdaemon-based tools.

description: updated
Revision history for this message
crtm (carlosrtm) wrote :

crash when start. In termnal is ok.

Revision history for this message
Seth Hikari (sethhikari) wrote :

Not sure if it has anything to do with it but synaptic crashed after I used it some time before this and I noticed it was running in the background keeping a lock on things.

Revision history for this message
Stephen Cradock (s-cradock) wrote :

The update-manager accepts the "Check" button command, but fails to update its display after the check is finished. Running u-m from a terminal gives the following console messages:

~$ update-manager
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/defer/__init__.py", line 472, in _inline_callbacks
    result = gen.throw(result.type, result.value, result.traceback)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 33, in update
    trans = yield self.client.update_cache(defer=True)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/defer/__init__.py", line 474, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 1055, in _set_property
    self._set_locale(value)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 726, in _set_locale
    (lang, encoding) = locale._parse_localename(locale_str)
  File "/usr/lib/python2.7/locale.py", line 421, in _parse_localename
    code = normalize(localename)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

Revision history for this message
Sheldon Taylor (sheldont22) wrote :

Update manager was able to read the package information, but the unexpected-close notification came up immediately after clicking the Install Updates button. Update manager was then non-responsive and had to be closed in the processes list. Happened each of the four times I've attempted to update through the UM. Updating works as normal in the terminal.

Revision history for this message
Rus F Adrian (tue-deactivatedaccount) wrote :

Can confirme this issue it happens today while I click on "Install Updates"

Revision history for this message
Sheldon Taylor (sheldont22) wrote :

~$ sudo update-manager

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/defer/__init__.py", line 472, in _inline_callbacks
    result = gen.throw(result.type, result.value, result.traceback)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 52, in commit
    downgrade, defer=True)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/defer/__init__.py", line 474, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 1055, in _set_property
    self._set_locale(value)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 726, in _set_locale
    (lang, encoding) = locale._parse_localename(locale_str)
  File "/usr/lib/python2.7/locale.py", line 421, in _parse_localename
    code = normalize(localename)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

Revision history for this message
Timo Witte (spacefish) wrote :

i don´t have synaptic installed and can confirm that this bug happens without synaptic! Synaptic doesn´t touch these files anyway or changed anything near this..

Revision history for this message
Robert Roth (evfool) wrote :

I am raising the importance of this bug to High, as it has a moderate impact on a large portion of Ubuntu users (estimated), as it does seem to affect Software-center, Update-manager and all aptdaemon-based tools, making it impossible to install/update software using GUI, the only workaround is using apt-get, which is not user-friendly.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in aptdaemon (Ubuntu):
importance: Medium → High
Revision history for this message
Andrew Bolster (bolster) wrote :

Sorry for the status change, unfortunate keyboard shortcut behavior.

Changed in aptdaemon (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
Anadon (joshua-r-marshall-1991) wrote :

I gotta say, exact same thing as everyone above.

Revision history for this message
Anadon (joshua-r-marshall-1991) wrote :

Also, I ran it as sudo, and windows borders are now gone.

Revision history for this message
Anadon (joshua-r-marshall-1991) wrote :

Another confirmation that this also affects Ubuntu Software Center, but not apt or synaptic.

Revision history for this message
Roy H Huddleston (archspader) wrote :

I was having a ramz error. I changed Radeon x1300 to Nvidia 9500 Gt at the time. I also was running a Debian Testing with multiarch similiar to this Lubuntu Alpha 3. I am updated to Kernel 3.0.0.8 with is changeover from the older Lubuntu version of Natty to this newer version of Ubuntu Lubuntu 11.10. I hope that came out right.

Revision history for this message
Lukasz Olszewski (olszewskil) wrote :

Same here. update-manager crashes after clicking Check button. apt-get update works fine. Synaptic and Software Center are ok on my box.

Revision history for this message
Luca (luca-ice) wrote :

Traceback (most recent call last):
  File "/usr/share/playonlinux/python/mainwindow.py", line 470, in <module>
    lng.Lang()
  File "/usr/share/playonlinux/python/lib/lng.py", line 19, in __init__
    mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True)
  File "/usr/lib/python2.7/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 437, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python2.7/gettext.py", line 132, in _expand_lang
    locale = normalize(locale)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

luca@luca-HP-Pavilion-dv5-Notebook-PC:~$ Traceback (most recent call last):
  File "/usr/share/playonlinux/python/message_one.py", line 32, in <module>
    lib.lng.Lang()
  File "/usr/share/playonlinux/python/lib/lng.py", line 19, in __init__
    mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True)
  File "/usr/lib/python2.7/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 437, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python2.7/gettext.py", line 132, in _expand_lang
    locale = normalize(locale)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

Revision history for this message
Luca (luca-ice) wrote :

Traceback (most recent call last):
  File "/usr/share/playonlinux/python/mainwindow.py", line 470, in <module>
    lng.Lang()
  File "/usr/share/playonlinux/python/lib/lng.py", line 19, in __init__
    mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True)
  File "/usr/lib/python2.7/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 437, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python2.7/gettext.py", line 132, in _expand_lang
    locale = normalize(locale)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

luca@luca-HP-Pavilion-dv5-Notebook-PC:~$ Traceback (most recent call last):
  File "/usr/share/playonlinux/python/message_one.py", line 32, in <module>
    lib.lng.Lang()
  File "/usr/share/playonlinux/python/lib/lng.py", line 19, in __init__
    mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True)
  File "/usr/lib/python2.7/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 437, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python2.7/gettext.py", line 132, in _expand_lang
    locale = normalize(locale)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

Changed in playonlinux:
assignee: nobody → Luca (luca-ice)
assignee: Luca (luca-ice) → nobody
Revision history for this message
crtm (carlosrtm) wrote :

Same here. update-manager crashes after clicking Check button. In terminal is ok.

Revision history for this message
Robert Roth (evfool) wrote :

Please use the "This bug affects 126 people. Does this bug affect you? " link to confirm this bug, there is no need to attach any more stacktraces, or comment that this affects you, because lots of people will get an email notification for each comment. Thank you for your understanding.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Christophe Narbonne (christophe31) wrote :

it must be a python package bug, I have same kind of backtrace in one of my django application which works on natty

affects: playonlinux → aptdaemon
Changed in aptdaemon:
status: New → Confirmed
Revision history for this message
Alex Kras (akrasnoborodkin) wrote :

Happen when trying install updates or check it, also after error update-manager can't be closed.

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Please stop comment.

Changed in aptdaemon:
status: Confirmed → Opinion
Changed in aptdaemon (Ubuntu):
status: Confirmed → Opinion
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fixed in

aptdaemon (0.43+bzr666-0ubuntu1) oneiric; urgency=low

  * new bzr snapshot:
    - fix LP: #818521
    - prepare for py3
    - fix crash in _parse_localename() (LP: #825056)

Changed in aptdaemon (Ubuntu):
status: Opinion → Fix Released
Changed in aptdaemon:
status: Opinion → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

For reference the master python bug if #824734

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.