Many python programs fail with: "undefined symbol: PyUnicodeUCS4_DecodeUTF8"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| python2.6 (Ubuntu) |
Critical
|
Michael Vogt | ||
| Jaunty |
Critical
|
Michael Vogt |
Bug Description
With python2.6 version 2.6.1-1ubuntu5, many extension modules fail to load, resulting in fatal errors such as:
mnemo@kingfish:~$ update-manager
Traceback (most recent call last):
File "/usr/bin/
import gtk
File "/var/lib/
import gobject as _gobject
File "/var/lib/
from glib import spawn_async, idle_add, timeout_add, timeout_
File "/var/lib/
from glib._glib import *
ImportError: /var/lib/
The problem is corrected in version 2.6.1-1ubuntu5.1. Note that since Update Manager is one of the affected programs, users affected by this bug will need to upgrade using apt-get in a terminal:
$ sudo apt-get update && sudo apt-get dist-upgrade
Related branches
Martin Olsson (mnemo) wrote : | #1 |
Martin Olsson (mnemo) wrote : | #2 |
"aptitude changelog pygtk" shows no changes recently, so it's probably not in there.
These were the packages I got in my two most recent updates (from /var/log/dpkg.log):
2009-03-27 09:06:39 upgrade python-dev 2.6.1-0ubuntu4 2.6.1-0ubuntu6
2009-03-27 09:06:39 upgrade python 2.6.1-0ubuntu4 2.6.1-0ubuntu6
2009-03-27 09:06:40 upgrade python-minimal 2.6.1-0ubuntu4 2.6.1-0ubuntu6
2009-03-27 09:06:43 upgrade libxtst-dev 2:1.0.3-1ubuntu1 2:1.0.3-1ubuntu2
2009-03-27 09:06:43 upgrade libxtst6 2:1.0.3-1ubuntu1 2:1.0.3-1ubuntu2
2009-03-27 09:06:43 upgrade command-
2009-03-27 09:06:43 upgrade command-not-found 0.2.33ubuntu3 0.2.34ubuntu1
2009-03-27 09:06:44 upgrade language-selector 0.4.2 0.4.2.1
2009-03-27 09:06:44 upgrade language-
2009-03-27 10:51:53 upgrade python2.6-dev 2.6.1-1ubuntu4 2.6.1-1ubuntu5
2009-03-27 10:51:53 upgrade libpython2.6 2.6.1-1ubuntu4 2.6.1-1ubuntu5
2009-03-27 10:51:53 upgrade python2.6 2.6.1-1ubuntu4 2.6.1-1ubuntu5
2009-03-27 10:51:54 upgrade python2.6-minimal 2.6.1-1ubuntu4 2.6.1-1ubuntu5
2009-03-27 10:51:58 upgrade locales 2.9+cvs20090214-6 2.9+cvs20090214-7
2009-03-27 10:52:00 upgrade python-central 0.6.11ubuntu4 0.6.11ubuntu5
2009-03-27 10:52:00 upgrade bluetooth 4.32-0ubuntu2 4.32-0ubuntu3
2009-03-27 10:52:01 upgrade bluez-utils 4.32-0ubuntu2 4.32-0ubuntu3
2009-03-27 10:52:01 upgrade example-content 35 36
2009-03-27 10:52:01 upgrade firefox 3.0.7+nobinonly
2009-03-27 10:52:01 upgrade firefox-
2009-03-27 10:52:02 upgrade gnome-app-install 0.5.22-0ubuntu1 0.5.23-0ubuntu1
2009-03-27 10:52:07 upgrade hal-info 20090227-0ubuntu1 20090324-0ubuntu1
2009-03-27 10:52:07 upgrade libkpathsea4 2007.dfsg.2-4 2007.dfsg.
2009-03-27 10:52:07 upgrade nautilus-share 0.7.2-0ubuntu7 0.7.2-0ubuntu8
2009-03-27 10:52:07 upgrade texlive-base-bin 2007.dfsg.2-4 2007.dfsg.
2009-03-27 10:52:09 upgrade texlive-
2009-03-27 10:52:09 upgrade texlive-extra-utils 2007.dfsg.2-4 2007.dfsg.
2009-03-27 10:52:10 upgrade xserver-common 2:1.6.0-0ubuntu4 2:1.6.0-0ubuntu5
2009-03-27 10:52:10 upgrade xserver-
2009-03-27 10:52:10 upgrade xserver-xorg-core 2:1.6.0-0ubuntu4 2:1.6.0-0ubuntu5
2009-03-27 10:52:11 upgrade xserver-xorg-dev 2:1.6.0-0ubuntu4 2:1.6.0-0ubuntu5
2009-03-27 10:52:11 upgrade gnome-system-tools 2.22.2-0ubuntu1 2.22.2-0ubuntu2
2009-03-27 10:52:14 upgrade python2.6-dbg 2.6.1-1ubuntu4 2.6.1-1ubuntu5
Sebastien Bacher (seb128) wrote : | #3 |
that break update-manager which means users will not get the fixed version or any update
Changed in python2.6 (Ubuntu): | |
importance: | Undecided → High |
Sebastien Bacher (seb128) wrote : | #4 |
doko the change seems not detailled in the changelog was that on purpose or an error?
Changed in python2.6 (Ubuntu): | |
assignee: | nobody → doko |
Changed in python2.6 (Ubuntu): | |
assignee: | doko → nobody |
status: | New → Triaged |
Changed in python2.6 (Ubuntu Jaunty): | |
assignee: | nobody → mvo |
importance: | High → Critical |
Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package python2.6 - 2.6.1-1ubuntu5.1
---------------
python2.6 (2.6.1-1ubuntu5.1) jaunty; urgency=low
* revert to 2.6.1-1ubuntu4 because the -1ubuntu5 upload breaks
the entire pygtk and makes important apps like update-manager
no longer start (LP: #349467)
-- Michael Vogt <email address hidden> Fri, 27 Mar 2009 11:26:41 +0100
Changed in python2.6: | |
status: | Triaged → Fix Released |
Matt Zimmerman (mdz) wrote : | #6 |
The offending update has been disabled on archive.ubuntu.com until a fixed version is available. This will temporarily result in HTTP 403 errors and failed downloads. These are harmless, and users should simply refrain from upgrading until the problem is resolved (within the next couple of hours).
Martin Olsson (mnemo) wrote : | #7 |
For those who installed the bad package before canonical 403'd it, please use a terminal and enter "sudo apt-get update" followed by "sudo apt-get upgrade".
If you have the broken python package you will likely also see crashes in many other applications. For example, when I run totem I get this SEGV:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fa4805d07f0 (LWP 4447)]
0x000000000044f8a4 in totem_python_
282 /build/
in /build/
(gdb) bt
#0 0x000000000044f8a4 in totem_python_
#1 0x00007fa47b1ecef4 in IA__g_type_
#2 0x000000000044cf9d in totem_plugins_
#3 0x000000000044d7bd in totem_plugins_
at /build/
#4 0x000000000044d3a0 in totem_plugins_
at /build/
#5 0x000000000044d978 in totem_plugins_
at /build/
#6 0x0000000000421538 in main (argc=1, argv=0x7fff8861
(gdb)
description: | updated |
summary: |
- update-manager fails to install todays updates due to "undefined symbol: + Many python programs fail with: "undefined symbol: PyUnicodeUCS4_DecodeUTF8" |
kulight (kulight) wrote : | #8 |
349467 > 349462
how come 462 is a dupe of 467 ?
Daniel Holbach (dholbach) wrote : | #9 |
kulight: the bug numbers are not important. The information in the bugs is more important.
Stinks like bug 394518 is a dupe of this one.
Darren Worrall (dazworrall) wrote : | #11 |
Is it possible to get hold of the 5.1 deb so I dont have to wait for the mirrors to catch up?
Matt Zimmerman (mdz) wrote : | #12 |
When the debs become available, you'll be able to download them directly from here if necessary:
amd64: https:/
i386: https:/
Darren Worrall (dazworrall) wrote : | #13 |
Thanks for that :)
The i386 build has finished, but the binaries are 'awaiting acceptance'.
Darren Worrall (dazworrall) wrote : | #14 |
Ignore me I'm being impatient :$
description: | updated |
Matt Zimmerman (mdz) wrote : | #15 |
The fixed packages are now available on archive.ubuntu.com via apt-get.
Martin Olsson (mnemo) wrote : | #16 |
I can confirm that update-manager, apport, totem etc are all working again after I ran sudo apt-get update && sudo apt-get upgrade. Terrific work with the quick fix!!
Sebastien Bacher (seb128) wrote : | #17 |
I can confirm the new revision fixes the issue
jango (charraoalegria-netcabo) wrote : | #18 |
I still can get any update...
Julian Lam (julian-lam) wrote : | #19 |
Glad to report that this problem has been fixed by the latest batch of updates.
Great work everyone!
bwallum (rbw2) wrote : | #20 |
I confirm that I had a problem with the Update Manager not running and solved it with your recommendation to run the code:
$ sudo apt-get dist-upgrade
That you for the help, all running as expected now.
Till Kamppeter (till-kamppeter) wrote : | #21 |
Note that the buggy Python was used for at least some hours also on the build servers and can have corrupted some packages. One package I know of is the i386 version of HPLIP 3.9.2-3ubuntu2. See bug 349781. I am rebuilding this package now as the build server should use the fixed version now.
Everyone who maintains packages of Python apps or libraries please check. Everyone who still has problems with Python apps after a full update, please addd a link to this bug and to bug 349781 in your bug report.
It seems that all python+GTK apps are affected by this bug:
mnemo@kingfish: ~/projs/ python/ hello_world_ gtk$ python hello.py python- support/ python2. 6/gtk-2. 0/gtk/_ _init__ .py", line 38, in <module> python- support/ python2. 6/gtk-2. 0/gobject/ __init_ _.py", line 33, in <module> add_seconds, \ python- support/ python2. 6/gtk-2. 0/glib/ __init_ _.py", line 30, in <module> python- support/ python2. 6/gtk-2. 0/glib/ _glib.so: undefined symbol: PyUnicodeUCS4_ DecodeUTF8
Traceback (most recent call last):
File "hello.py", line 4, in <module>
import gtk
File "/var/lib/
import gobject as _gobject
File "/var/lib/
from glib import spawn_async, idle_add, timeout_add, timeout_
File "/var/lib/
from glib._glib import *
ImportError: /var/lib/