update-manager cannot initialize with NameError 'logging'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: update-manager
Using 9.10, upgraded from 9.04. May have to do with an incorrectly configured locale.
Traceback:
File "/usr/bin/
app = UpdateManager(
File "/usr/lib/
logging.
NameError: global name 'logging' is not defined
ProblemType: Crash
Architecture: i386
Date: Sat Oct 31 21:41:08 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/
InterpreterPath: /usr/bin/python2.6
Package: update-manager 1:0.126.6
PackageArchitec
ProcCmdline: /usr/bin/python2.6 /usr/bin/
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
PythonArgs: ['/usr/
SourcePackage: update-manager
Title: update-manager crashed with NameError in __init__()
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin audio cdrom dialout lpadmin plugdev pulse pulse-access sambashare vboxusers
Solved. I sent this bug report, and found out how to fix it on my system:
The file /etc/default/locale originally contained only one line:
LANG="en_US.UTF-8"
I added a second line:
LANGUAGE="en_US:en"
Then ran:
$ sudo dpkg-reconfigure locales
with output:
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
Now update-manager works just fine.