Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suddenly software center and update have stopped working (update is not working either). In a terminal, I tried:

demian@dimbo-TP:~$ software-center
Traceback (most recent call last):
  File "/usr/bin/software-center", line 149, in <module>
    from import SoftwareCenterAppGtk3
  File "/usr/share/software-center/softwarecenter/ui/gtk3/", line 26, in <module>
    import dbus
  File "/usr/lib/python2.7/dist-packages/dbus/", line 100, in <module>

ImportError: cannot import name Bus
demian@dimbo-TP:~$ sudo apt-get install --reinstall software-center
[sudo] password for demian: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 163 not upgraded.
Need to get 0 B/697 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 279773 files and directories currently installed.)
Preparing to replace software-center 5.0.6 (using .../software-center_5.0.6_all.deb) ...
Unpacking replacement software-center ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up software-center (5.0.6) ...
WARNING:root:failure to import: 'cannot import name Bus'
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 62, in <module>
    class UpdateSoftwarecenterDbus(dbus.service.Object):
NameError: name 'dbus' is not defined

Any ideas?

share|improve this question
Does the issue persist if you log out and back in again? If you reboot the computer? – arand Jul 9 '12 at 11:43
yes, I've been living with the problem for about a month. – dimbo Jul 9 '12 at 12:44
up vote 0 down vote accepted

Since nobody seemed to know the answer......I reinstalled the partition from a disk image that I took a few months ago....good insurance policy - it was much easier than trying to fix the problem!!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.