UnicodeDecodeError in localeconv(): 'locale' codec can't decode byte in position 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
update-manager crashes reproducibly when it is about to show the list of packages to be updated, apparently when it tries to calculate the amount of data to be downloaded. It fires up, loads updates and then crashes or shows an empty window.
The crash should be reproducible by others by setting e.g. LC_MONETARY=
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
humanize_
File "/usr/lib/
return locale.
File "/usr/lib/
*val[
File "/usr/lib/
decimal_point = localeconv(
File "/usr/lib/
d = _localeconv()
UnicodeDecodeError: 'locale' codec can't decode byte 0xa4 in position 0: Invalid or incomplete multibyte or wide character
As also the traceback suggests this might even be a security issue if it keeps people from updating their systems.
Of course, a simple fix/workaround is to avoid the troublesome locale by setting it to e.g. de_AT.UTF-8 or C. Still, I think that update-manager should not crash.
Note the similarities of an older bug report: https:/
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: update-manager 1:0.196.12
ProcVersionSign
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: LXDE
Date: Sat Aug 2 11:03:55 2014
DpkgHistoryLog.txt:
DpkgTerminalLog
GsettingsChanges:
b'com.
b'com.
b'com.
b'com.
b'com.
InstallationDate: Installed on 2014-05-12 (81 days ago)
InstallationMedia: Lubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
PackageArchitec
SourcePackage: update-manager
UpgradeStatus: No upgrade log present (probably fresh install)