Cerca de 3 semanas atrás eu baixei o Ubuntu 12.04 e eu tenho executado desde então. Inicialmente tudo funcionou muito bem, mas cerca de 10 dias atrás o Ubuntu Software Center parou de funcionar (eu usei anteriormente sem problemas) .Agora, eu posso abri-lo e encontrar programas, mas quando eu clico no botão Instalar para um deles, nada acontece. Este problema parece ser específico para o Centro de Software - eu ainda posso usar o apt-get a partir da linha de comando sem problemas.
Eu tentei remover e reinstalar o Centro de Software e tentei executá-lo a partir do terminal usando o sudo software-center (no caso de haver algum problema com as permissões). Quando eu uso o terminal, ao iniciar o software-center, uma longa mensagem de erro é impressa no terminal (sim, um traceback aparentemente idêntico é impresso duas vezes):
2013-08-25 12:38:50,829 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-08-25 12:38:50,833 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
2013-08-25 12:38:51,079 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2013-08-25 12:38:51,178 - softwarecenter.ui.gtk3.app - INFO - show_available_packages: search_text is '', app is None.
2013-08-25 12:38:51,181 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
*message.get_args_list()))
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 69, in error_cb
callback('')
File "/usr/share/software-center/softwarecenter/backend/installbackend_impl/aptd.py", line 153, in _register_active_transactions_watch
apt_daemon = client.get_aptdaemon(bus=bus)
File "/usr/lib/python2.7/dist-packages/aptdaemon/client.py", line 1696, in get_aptdaemon
False),
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
*message.get_args_list()))
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 69, in error_cb
callback('')
File "/usr/share/software-center/softwarecenter/backend/installbackend_impl/aptd.py", line 153, in _register_active_transactions_watch
apt_daemon = client.get_aptdaemon(bus=bus)
File "/usr/lib/python2.7/dist-packages/aptdaemon/client.py", line 1696, in get_aptdaemon
False),
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
2013-08-25 12:38:53,215 - softwarecenter.ui.gtk3.widgets.exhibits - WARNING - download failed: '<class 'gi._glib.GError'>', 'Operation not supported'
Alguma sugestão?
EDIT: Depois de pesquisar mais, encontrei este relatório de bug: link
Descreve sintomas semelhantes aos meus e descobri que quando corri
/usr/lib/ubuntu-sso-client/ubuntu-sso-login
como descrito lá, recebi uma série de mensagens de erro, terminando com:
ImportError: No module named pkg_resources
Eu encontrei este thread stackoverflow:
link
onde pude usar o comentário principal para reinstalar setuptools, o que resolveu meu problema.