Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 26, in <module>
    import dbus
  File "/usr/lib/python2.7/dist-packages/dbus/__init__.py", 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

1 Answer 1

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

 
discard

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.