[karmic] aptBackend.py crash

Bug #420348 reported by Bruno
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kpackagekit

Kpackagekit when it runs from systemsettings fails to display packages or updates. Apport reports a aptBackend.py crash (line 153 setlocale). Unfortunately Apport fails to send automatically bug report.

Kapackagekit works fine if it's used as a standalone application.

Here's Apport's backtrace :

ProblemType: Crash
Date: Fri Aug 28 08:48:06 2009
ExecutablePath: /usr/share/PackageKit/helpers/apt/aptBackend.py
InterpreterPath: /usr/bin/python2.6
ProcCmdline: python /usr/share/PackageKit/helpers/apt/aptBackend.py refresh-cache
ProcCwd: /
ProcEnviron: LANG=fr.UTF-8
ProcMaps:
 00400000-0060f000 r-xp 00000000 08:02 1582 /usr/bin/python2.6
 0080e000-0080f000 r--p 0020e000 08:02 1582 /usr/bin/python2.6
 0080f000-00870000 rw-p 0020f000 08:02 1582 /usr/bin/python2.6
 00870000-0087e000 rw-p 00000000 00:00 0
 019bb000-023a0000 rw-p 00000000 00:00 0 [heap]
 7f6cd0080000-7f6cd00b4000 r-xp 00000000 08:02 397322 /usr/lib/python2.6/lib-dynload/pyexpat.so
 7f6cd00b4000-7f6cd02b3000 ---p 00034000 08:02 397322 /usr/lib/python2.6/lib-dynload/pyexpat.so
 7f6cd02b3000-7f6cd02b6000 r--p 00033000 08:02 397322 /usr/lib/python2.6/lib-dynload/pyexpat.so
 7f6cd02b6000-7f6cd02b8000 rw-p 00036000 08:02 397322 /usr/lib/python2.6/lib-dynload/pyexpat.so
 7f6cd02b8000-7f6cd03fb000 r-xp 00000000 08:02 649 /usr/lib/libxapian.so.15.6.5
 7f6cd03fb000-7f6cd05fa000 ---p 00143000 08:02 649 /usr/lib/libxapian.so.15.6.5
 7f6cd05fa000-7f6cd0600000 r--p 00142000 08:02 649 /usr/lib/libxapian.so.15.6.5
 7f6cd0600000-7f6cd0601000 rw-p 00148000 08:02 649 /usr/lib/libxapian.so.15.6.5
 7f6cd0601000-7f6cd06ae000 r-xp 00000000 08:02 393245 /usr/lib/python2.6/dist-packages/_xapian.so
 7f6cd06ae000-7f6cd08ad000 ---p 000ad000 08:02 393245 /usr/lib/python2.6/dist-packages/_xapian.so
 7f6cd08ad000-7f6cd08ae000 r--p 000ac000 08:02 393245 /usr/lib/python2.6/dist-packages/_xapian.so
 7f6cd08ae000-7f6cd08b6000 rw-p 000ad000 08:02 393245 /usr/lib/python2.6/dist-packages/_xapian.so
 7f6cd08b6000-7f6cd08b7000 rw-p 00000000 00:00 0
 7f6cd08b7000-7f6cd08c8000 r-xp 00000000 08:02 3779 /usr/lib/libapt-inst-libc6.9-6.so.1.1.0
 7f6cd08c8000-7f6cd0ac8000 ---p 00011000 08:02 3779 /usr/lib/libapt-inst-libc6.9-6.so.1.1.0
 7f6cd0ac8000-7f6cd0ac9000 r--p 00011000 08:02 3779 /usr/lib/libapt-inst-libc6.9-6.so.1.1.0
 7f6cd0ac9000-7f6cd0aca000 rw-p 00012000 08:02 3779 /usr/lib/libapt-inst-libc6.9-6.so.1.1.0
 7f6cd0aca000-7f6cd0ace000 r-xp 00000000 08:02 394559 /usr/lib/python2.6/dist-packages/apt_inst.so
 7f6cd0ace000-7f6cd0cce000 ---p 00004000 08:02 394559 /usr/lib/python2.6/dist-packages/apt_inst.so
 7f6cd0cce000-7f6cd0ccf000 r--p 00004000 08:02 394559 /usr/lib/python2.6/dist-packages/apt_inst.so
 7f6cd0ccf000-7f6cd0cd0000 rw-p 00005000 08:02 394559 /usr/lib/python2.6/dist-packages/apt_inst.so
 7f6cd0cd0000-7f6cd0cd3000 r-xp 00000000 08:02 397311 /usr/lib/python2.6/lib-dynload/_hashlib.so
 7f6cd0cd3000-7f6cd0ed2000 ---p 00003000 08:02 397311 /usr/lib/python2.6/lib-dynload/_hashlib.so
 7f6cd0ed2000-7f6cd0ed3000 r--p 00002000 08:02 397311 /usr/lib/python2.6/lib-dynload/_hashlib.so
 7f6cd0ed3000-7f6cd0ed4000 rw-p 00003000 08:02 397311 /usr/lib/python2.6/lib-dynload/_hashlib.so
 7f6cd0ed4000-7f6cd0eee000 r-xp 00000000 08:02 2818 /lib/libgcc_s.so.1
 7f6cd0eee000-7f6cd10ed000 ---p 0001a000 08:02 2818 /lib/libgcc_s.so.1
 7f6cd10ed000-7f6cd10ee000 r--p 00019000 08:02 2818 /lib/libgcc_s.so.1
 7f6cd10ee000-7f6cd10ef000 rw-p 0001a000 08:02 2818 /lib/libgcc_s.so.1
 7f6cd10ef000-7f6cd11df000 r-xp 00000000 08:02 806 /usr/lib/libstdc++.so.6.0.12
 7f6cd11df000-7f6cd13df000 ---p 000f0000 08:02 806 /usr/lib/libstdc++.so.6.0.12
 7f6cd13df000-7f6cd13e6000 r--p 000f0000 08:02 806 /usr/lib/libstdc++.so.6.0.12
 7f6cd13e6000-7f6cd13e8000 rw-p 000f7000 08:02 806 /usr/lib/libstdc++.so.6.0.12
 7f6cd13e8000-7f6cd13fd000 rw-p 00000000 00:00 0
 7f6cd13fd000-7f6cd14b3000 r-xp 00000000 08:02 3781 /usr/lib/libapt-pkg-libc6.9-6.so.4.7.0
 7f6cd14b3000-7f6cd16b2000 ---p 000b6000 08:02 3781 /usr/lib/libapt-pkg-libc6.9-6.so.4.7.0
 7f6cd16b2000-7f6cd16b5000 r--p 000b5000 08:02 3781 /usr/lib/libapt-pkg-libc6.9-6.so.4.7.0
 7f6cd16b5000-7f6cd16b6000 rw-p 000b8000 08:02 3781 /usr/lib/libapt-pkg-libc6.9-6.so.4.7.0
 7f6cd16b6000-7f6cd16d8000 r-xp 00000000 08:02 393456 /usr/lib/python2.6/dist-packages/apt_pkg.so
 7f6cd16d8000-7f6cd18d8000 ---p 00022000 08:02 393456 /usr/lib/python2.6/dist-packages/apt_pkg.so
 7f6cd18d8000-7f6cd18d9000 r--p 00022000 08:02 393456 /usr/lib/python2.6/dist-packages/apt_pkg.so
 7f6cd18d9000-7f6cd18de000 rw-p 00023000 08:02 393456 /usr/lib/python2.6/dist-packages/apt_pkg.so
 7f6cd18de000-7f6cd18e2000 r-xp 00000000 08:02 397315 /usr/lib/python2.6/lib-dynload/termios.so
 7f6cd18e2000-7f6cd1ae1000 ---p 00004000 08:02 397315 /usr/lib/python2.6/lib-dynload/termios.so
 7f6cd1ae1000-7f6cd1ae2000 r--p 00003000 08:02 397315 /usr/lib/python2.6/lib-dynload/termios.so
 7f6cd1ae2000-7f6cd1ae4000 rw-p 00004000 08:02 397315 /usr/lib/python2.6/lib-dynload/termios.so
 7f6cd1ae4000-7f6cd1ba5000 rw-p 00000000 00:00 0
 7f6cd1ba5000-7f6cd1d05000 r-xp 00000000 08:02 440 /lib/libcrypto.so.0.9.8
 7f6cd1d05000-7f6cd1f05000 ---p 00160000 08:02 440 /lib/libcrypto.so.0.9.8
 7f6cd1f05000-7f6cd1f12000 r--p 00160000 08:02 440 /lib/libcrypto.so.0.9.8
 7f6cd1f12000-7f6cd1f28000 rw-p 0016d000 08:02 440 /lib/libcrypto.so.0.9.8
 7f6cd1f28000-7f6cd1f2c000 rw-p 00000000 00:00 0
 7f6cd1f2c000-7f6cd1f74000 r-xp 00000000 08:02 524 /lib/libssl.so.0.9.8
 7f6cd1f74000-7f6cd2174000 ---p 00048000 08:02 524 /lib/libssl.so.0.9.8
 7f6cd2174000-7f6cd2175000 r--p 00048000 08:02 524 /lib/libssl.so.0.9.8
 7f6cd2175000-7f6cd217a000 rw-p 00049000 08:02 524 /lib/libssl.so.0.9.8
 7f6cd217a000-7f6cd2181000 r-xp 00000000 08:02 397310 /usr/lib/python2.6/lib-dynload/_ssl.so
 7f6cd2181000-7f6cd2380000 ---p 00007000 08:02 397310 /usr/lib/python2.6/lib-dynload/_ssl.so
 7f6cd2380000-7f6cd2381000 r--p 00006000 08:02 397310 /usr/lib/python2.6/lib-dynload/_ssl.so
 7f6cd2381000-7f6cd2382000 rw-p 00007000 08:02 397310 /usr/lib/python2.6/lib-dynload/_ssl.so
 7f6cd2382000-7f6cd2387000 r-xp 00000000 08:02 3943 /usr/lib/libgdbm.so.3.0.0
 7f6cd2387000-7f6cd2586000 ---p 00005000 08:02 3943 /usr/lib/libgdbm.so.3.0.0
 7f6cd2586000-7f6cd2587000 r--p 00004000 08:02 3943 /usr/lib/libgdbm.so.3.0.0
 7f6cd2587000-7f6cd2588000 rw-p 00005000 08:02 3943 /usr/lib/libgdbm.so.3.0.0
 7f6cd2588000-7f6cd258b000 r-xp 00000000 08:02 396992 /usr/lib/python2.6/lib-dynload/gdbm.so
 7f6cd258b000-7f6cd278a000 ---p 00003000 08:02 396992 /usr/lib/python2.6/lib-dynload/gdbm.so
 7f6cd278a000-7f6cd278b000 r--p 00002000 08:02 396992 /usr/lib/python2.6/lib-dynload/gdbm.so
 7f6cd278b000-7f6cd278d000 rw-p 00003000 08:02 396992 /usr/lib/python2.6/lib-dynload/gdbm.so
 7f6cd278d000-7f6cd2799000 r-xp 00000000 08:02 5694 /lib/libnss_files-2.10.1.so
 7f6cd2799000-7f6cd2998000 ---p 0000c000 08:02 5694 /lib/libnss_files-2.10.1.so
 7f6cd2998000-7f6cd2999000 r--p 0000b000 08:02 5694 /lib/libnss_files-2.10.1.so
 7f6cd2999000-7f6cd299a000 rw-p 0000c000 08:02 5694 /lib/libnss_files-2.10.1.so
 7f6cd299a000-7f6cd29a4000 r-xp 00000000 08:02 5696 /lib/libnss_nis-2.10.1.so
 7f6cd29a4000-7f6cd2ba3000 ---p 0000a000 08:02 5696 /lib/libnss_nis-2.10.1.so
 7f6cd2ba3000-7f6cd2ba4000 r--p 00009000 08:02 5696 /lib/libnss_nis-2.10.1.so
 7f6cd2ba4000-7f6cd2ba5000 rw-p 0000a000 08:02 5696 /lib/libnss_nis-2.10.1.so
 7f6cd2ba5000-7f6cd2bbb000 r-xp 00000000 08:02 5691 /lib/libnsl-2.10.1.so
 7f6cd2bbb000-7f6cd2dbb000 ---p 00016000 08:02 5691 /lib/libnsl-2.10.1.so
 7f6cd2dbb000-7f6cd2dbc000 r--p 00016000 08:02 5691 /lib/libnsl-2.10.1.so
 7f6cd2dbc000-7f6cd2dbd000 rw-p 00017000 08:02 5691 /lib/libnsl-2.10.1.so
 7f6cd2dbd000-7f6cd2dbf000 rw-p 00000000 00:00 0
 7f6cd2dbf000-7f6cd2dc6000 r-xp 00000000 08:02 5692 /lib/libnss_compat-2.10.1.so
 7f6cd2dc6000-7f6cd2fc6000 ---p 00007000 08:02 5692 /lib/libnss_compat-2.10.1.so
 7f6cd2fc6000-7f6cd2fc7000 r--p 00007000 08:02 5692 /lib/libnss_compat-2.10.1.so
 7f6cd2fc7000-7f6cd2fc8000 rw-p 00008000 08:02 5692 /lib/libnss_compat-2.10.1.so
 7f6cd2fc8000-7f6cd312e000 r-xp 00000000 08:02 5684 /lib/libc-2.10.1.so
 7f6cd312e000-7f6cd332d000 ---p 00166000 08:02 5684 /lib/libc-2.10.1.so
 7f6cd332d000-7f6cd3331000 r--p 00165000 08:02 5684 /lib/libc-2.10.1.so
 7f6cd3331000-7f6cd3332000 rw-p 00169000 08:02 5684 /lib/libc-2.10.1.so
 7f6cd3332000-7f6cd3337000 rw-p 00000000 00:00 0
 7f6cd3337000-7f6cd33b9000 r-xp 00000000 08:02 5689 /lib/libm-2.10.1.so
 7f6cd33b9000-7f6cd35b9000 ---p 00082000 08:02 5689 /lib/libm-2.10.1.so
 7f6cd35b9000-7f6cd35ba000 r--p 00082000 08:02 5689 /lib/libm-2.10.1.so
 7f6cd35ba000-7f6cd35bb000 rw-p 00083000 08:02 5689 /lib/libm-2.10.1.so
 7f6cd35bb000-7f6cd35d1000 r-xp 00000000 08:02 550 /lib/libz.so.1.2.3.3
 7f6cd35d1000-7f6cd37d1000 ---p 00016000 08:02 550 /lib/libz.so.1.2.3.3
 7f6cd37d1000-7f6cd37d2000 r--p 00016000 08:02 550 /lib/libz.so.1.2.3.3
 7f6cd37d2000-7f6cd37d3000 rw-p 00017000 08:02 550 /lib/libz.so.1.2.3.3
 7f6cd37d3000-7f6cd37d5000 r-xp 00000000 08:02 5730 /lib/libutil-2.10.1.so
 7f6cd37d5000-7f6cd39d4000 ---p 00002000 08:02 5730 /lib/libutil-2.10.1.so
 7f6cd39d4000-7f6cd39d5000 r--p 00001000 08:02 5730 /lib/libutil-2.10.1.so
 7f6cd39d5000-7f6cd39d6000 rw-p 00002000 08:02 5730 /lib/libutil-2.10.1.so
 7f6cd39d6000-7f6cd39d8000 r-xp 00000000 08:02 5688 /lib/libdl-2.10.1.so
 7f6cd39d8000-7f6cd3bd8000 ---p 00002000 08:02 5688 /lib/libdl-2.10.1.so
 7f6cd3bd8000-7f6cd3bd9000 r--p 00002000 08:02 5688 /lib/libdl-2.10.1.so
 7f6cd3bd9000-7f6cd3bda000 rw-p 00003000 08:02 5688 /lib/libdl-2.10.1.so
 7f6cd3bda000-7f6cd3bf1000 r-xp 00000000 08:02 5699 /lib/libpthread-2.10.1.so
 7f6cd3bf1000-7f6cd3df0000 ---p 00017000 08:02 5699 /lib/libpthread-2.10.1.so
 7f6cd3df0000-7f6cd3df1000 r--p 00016000 08:02 5699 /lib/libpthread-2.10.1.so
 7f6cd3df1000-7f6cd3df2000 rw-p 00017000 08:02 5699 /lib/libpthread-2.10.1.so
 7f6cd3df2000-7f6cd3df6000 rw-p 00000000 00:00 0
 7f6cd3df6000-7f6cd3e15000 r-xp 00000000 08:02 5666 /lib/ld-2.10.1.so
 7f6cd3e33000-7f6cd3e74000 rw-p 00000000 00:00 0
 7f6cd3ef6000-7f6cd3f37000 rw-p 00000000 00:00 0
 7f6cd3f69000-7f6cd3fef000 rw-p 00000000 00:00 0
 7f6cd4010000-7f6cd4014000 rw-p 00000000 00:00 0
 7f6cd4014000-7f6cd4015000 r--p 0001e000 08:02 5666 /lib/ld-2.10.1.so
 7f6cd4015000-7f6cd4016000 rw-p 0001f000 08:02 5666 /lib/ld-2.10.1.so
 7fffbe5df000-7fffbe609000 rw-p 00000000 00:00 0 [stack]
 7fffbe622000-7fffbe623000 r-xp 00000000 00:00 0 [vdso]
 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
ProcStatus:
 Name: python
 State: R (running)
 Tgid: 7077
 Pid: 7077
 PPid: 6031
 TracerPid: 0
 Uid: 0 0 0 0
 Gid: 0 0 0 0
 FDSize: 64
 Groups: 0
 VmPeak: 77000 kB
 VmSize: 77000 kB
 VmLck: 0 kB
 VmHWM: 17276 kB
 VmRSS: 17272 kB
 VmData: 12184 kB
 VmStk: 168 kB
 VmExe: 2108 kB
 VmLib: 8464 kB
 VmPTE: 172 kB
 Threads: 1
 SigQ: 1/55296
 SigPnd: 0000000000000000
 ShdPnd: 0000000000000000
 SigBlk: 0000000000000000
 SigIgn: 0000000001001000
 SigCgt: 0000000180000002
 CapInh: 0000000000000000
 CapPrm: ffffffffffffffff
 CapEff: ffffffffffffffff
 CapBnd: ffffffffffffffff
 Cpus_allowed: f
 Cpus_allowed_list: 0-3
 Mems_allowed: 00000000,00000001
 Mems_allowed_list: 0
 voluntary_ctxt_switches: 0
 nonvoluntary_ctxt_switches: 107
PythonArgs: ['/usr/share/PackageKit/helpers/apt/aptBackend.py', 'refresh-cache']
Traceback:
 Traceback (most recent call last):
   File "/usr/share/PackageKit/helpers/apt/aptBackend.py", line 153, in <module>
     locale.setlocale(locale.LC_ALL, "")
   File "/usr/lib/python2.6/locale.py", line 513, in setlocale
     return _setlocale(category, locale)
 Error: unsupported locale setting
UserGroups:
Architecture: amd64
Dependencies:
 app-install-data 0.9.10.6
 apt 0.7.21ubuntu1
 apt-utils 0.7.21ubuntu1
 ca-certificates 20090701
 coreutils 7.4-2
 debconf 1.5.27ubuntu1
 debconf-i18n 1.5.27ubuntu1
 dpkg 1.15.3.1ubuntu1
 findutils 4.4.2-1
 gcc-4.4-base 4.4.1-3ubuntu1
 gnupg 1.4.9-4ubuntu5
 gpgv 1.4.9-4ubuntu5
 iso-codes 3.10.2-1
 libacl1 2.2.47-2
 libattr1 1:2.4.43-3
 libbz2-1.0 1.0.5-3
 libc6 2.10.1-0ubuntu7
 libcomerr2 1.41.9-1ubuntu1
 libcurl3-gnutls 7.19.5-1ubuntu2
 libdb4.7 4.7.25-7ubuntu2
 libdbus-1-3 1.2.16-0ubuntu2
 libdbus-glib-1-2 0.80-4
 libffi5 3.0.7-1ubuntu1
 libgcc1 1:4.4.1-3ubuntu1
 libgcrypt11 1.4.4-2ubuntu2
 libgdbm3 1.8.3-4
 libglib2.0-0 2.21.5-0ubuntu1
 libgnutls26 2.8.3-2
 libgpg-error0 1.6-1ubuntu1
 libgssapi-krb5-2 1.7dfsg~beta3-1
 libidn11 1.15-1
 libk5crypto3 1.7dfsg~beta3-1
 libkeyutils1 1.2-10
 libkrb5-3 1.7dfsg~beta3-1
 libkrb5support0 1.7dfsg~beta3-1
 libldap-2.4-2 2.4.17-1ubuntu3
 liblocale-gettext-perl 1.05-4build1
 libncurses5 5.7+20090607-1ubuntu1
 libncursesw5 5.7+20090607-1ubuntu1
 libpcre3 7.8-2ubuntu1
 libreadline5 5.2-6
 libsasl2-2 2.1.23.dfsg1-1ubuntu3
 libsasl2-modules 2.1.23.dfsg1-1ubuntu3
 libselinux1 2.0.85-2
 libsqlite3-0 3.6.16-1
 libssl0.9.8 0.9.8g-16ubuntu2
 libstdc++6 4.4.1-3ubuntu1
 libtasn1-3 2.2-1
 libtext-charwidth-perl 0.04-5build1
 libtext-iconv-perl 1.7-1build1
 libtext-wrapi18n-perl 0.06-7
 libusb-0.1-4 2:0.1.12-13
 lsb-release 4.0-0ubuntu3
 lzma 4.43-14ubuntu1
 mime-support 3.46-1
 openssl 0.9.8g-16ubuntu2
 perl-base 5.10.0-24ubuntu2
 python 2.6.2-0ubuntu1
 python-apt 0.7.13.2ubuntu1
 python-central 0.6.11ubuntu7
 python-dbus 0.83.0-1ubuntu2
 python-gdbm 2.6.2-0ubuntu1
 python-gnupginterface 0.3.2-9ubuntu2
 python-gobject 2.18.0-0ubuntu1
 python-minimal 2.6.2-0ubuntu1
 python-packagekit 0.4.9+20090825-0ubuntu1
 python-software-properties 0.75.2
 python-support 1.0.3ubuntu1
 python2.6 2.6.2-0ubuntu3
 python2.6-minimal 2.6.2-0ubuntu3
 readline-common 6.0-2ubuntu2
 ucf 3.0018ubuntu1
 unattended-upgrades 0.52ubuntu1
 update-manager-core 1:0.124.8
 zlib1g 1:1.2.3.3.dfsg-13ubuntu1
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: packagekit-backend-apt 0.4.9+20090825-0ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 2.6.31-8.28-generic
SourcePackage: packagekit
Title: aptBackend.py crashed with Error in setlocale()
Uname: Linux 2.6.31-8-generic x86_64

Related branches

Revision history for this message
Gareth Hart (tghe-retford) wrote :

I am having exactly the same problem, and this is a complete showstopper. Just to add to the bug description, KPackageKit cannot be used to install or update packages as a result of this bug.

Revision history for this message
Bruno (bruno666-666) wrote :

tghe-retford : kpackagekit works if you launch it directly from menu or command line.

description: updated
Revision history for this message
Gareth Hart (tghe-retford) wrote :

Bruno Patri: I tried via systemsettings, via the menu and on the command line and this bug occurs every single time.

Revision history for this message
Gareth Hart (tghe-retford) wrote :

Just to add further since I last responded, this bug also affects checking for updates on start-up. When I started up the computer and got to the desktop, I noticed that Apport had already picked up a bug regarding aptBackend.py, even though I hadn't run KPackageKit myself.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

It seems that your language settings are broken. I added a workaround to packagekit to not fail in this situtaion.

Could you please paste the output of the locale command?

Have you made any changes to the locale settings?

Revision history for this message
Gareth Hart (tghe-retford) wrote :

Sure.

Output of locale:
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

I haven't made any relevant changes since installing Kubuntu Karmic Alpha 3.

Revision history for this message
Bruno (bruno666-666) wrote : Re: [Bug 420348] Re: [karmic] aptBackend.py crash

Le lundi 31 août 2009 13:14:44, Sebastian Heinlein a écrit :
> It seems that your language settings are broken. I added a workaround to
> packagekit to not fail in this situtaion.
>
> Could you please paste the output of the locale command?

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

> Have you made any changes to the locale settings?

I've just run dpkg-reconfigure console-setup to reconfigure ttys with my
keyboard layout.

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

This bug was fixed in the package packagekit - 0.4.9+20090825-0ubuntu2

---------------
packagekit (0.4.9+20090825-0ubuntu2) karmic; urgency=low

  * debian/patches:
    - Add disable_werror: Unset the Werror compile flag to fix FTBS on armel
    - Add fix_get_depends: Cherry pick fa693068675742e17177534a23feb627b9ab7455
      to report the broken packages correctly in get_(depends|requires)
      (LP: #418834)
    - Add fix_unset_locale: Cherry pick 42c8fda9e0b3d4109b70035027562fa90b3471be
      to not fail on unsetting LC_ALL (LP: #420348)

 -- Sebastian Heinlein <email address hidden> Sat, 29 Aug 2009 09:23:42 +0200

Changed in packagekit (Ubuntu):
status: New → Fix Released
Revision history for this message
Bruno (bruno666-666) wrote :

Thanks a lot Sebastian for this quick fix. There's no more crash but package descriptions are not translated.
I've tried this piece of code in aptBackend.py :

locale.resetlocale()

This works for me but non ASCII characters (like é in French) are replaced by '?' (unicode issue ?) Another strange problem is that package descriptions are only translated in systemsettings, there are in English if I run Kpackagekit standalone.

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.