Quebrou meu cache do centro de software

0

O centro de software não é iniciado, a menos que eu o execute como root. Executando-o como root, havia uma mensagem sobre o cache não ser gravável. Minha pasta .cache está em uma unidade separada e ligada por links simbólicos ao meu diretório pessoal. Curiosamente, o centro de software parecia estar funcionando depois disso. Acho que quebrou depois que eu instalei o Pidgin.

Aqui está a saída do terminal quando tento executar o software como eu mesmo

winobes@epoch:~$ software-center
2013-05-11 19:53:54,872 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-05-11 19:53:54,881 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/db/database.py', 204, '_get_new_xapiandb')'
2013-05-11 19:53:54,881 - root - WARNING - failed to add sca db Couldn't detect type of database
2013-05-11 19:53:54,958 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/dbus/proxies.py', 410, '_introspect_error_handler')'
2013-05-11 19:53:54,957 - dbus.proxies - ERROR - Introspect error on com.ubuntu.sso:/com/ubuntu/sso/credentials: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntu-sso-client/ubuntu-sso-login exited with status 1
Traceback (most recent call last):
  File "/usr/bin/software-center", line 130, in <module>
    app = SoftwareCenterAppGtk3(options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 338, in __init__
    self.icons)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/appmanager.py", line 66, in __init__
    self.oauth_token = helper.find_oauth_token_sync()
  File "/usr/share/software-center/softwarecenter/backend/ubuntusso.py", line 141, in find_oauth_token_sync
    sso.find_credentials()
  File "/usr/share/software-center/softwarecenter/backend/login_impl/login_sso.py", line 75, in find_credentials
    self.proxy.find_credentials(self.appname, self._get_params())
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  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: Process /usr/lib/ubuntu-sso-client/ubuntu-sso-login exited with status 1

E quando eu corro como root:

winobes@epoch:~$ sudo software-center
[sudo] password for winobes: 
2013-05-11 19:55:20,352 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-05-11 19:55:21,000 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2013-05-11 19:55:21,002 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2013-05-11 19:55:21,005 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/gi/importer.py', 51, 'find_module')'
2013-05-11 19:55:21,005 - root - ERROR - Could not find any typelib for LaunchpadIntegration
(software-center:28600): IBUS-WARNING **: The owner of /home/winobes/.config/ibus/bus is not root!
2013-05-11 19:55:21,044 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2013-05-11 19:55:23,322 - softwarecenter.ui.gtk3.widgets.exhibits - WARNING - download failed: '<class 'gi._glib.GError'>', 'Operation not supported'
2013-05-11 19:55:29,214 - softwarecenter.db.utils - INFO - software-center-agent finished with status 0

Centro de software parece funcionar quando eu executo com o sudo, pelo menos ele é iniciado. Mas isso me deixa nervoso, e gostaria de poder usar o lançador ...

Coisas que tentei:

sudo chown winobes ~/.cache

sudo chown winobes ~/.cache/software-center

sudo apt-get install --reinstall software-center

Obrigado pela sua ajuda e insight:)

    
por Bill 12.05.2013 / 02:03

1 resposta

1

Do'oh!

sudo chown winobes ~/.cache

obviamente apenas muda o dono do symlink ....

sudo chown winobes /mnt/data/.cache

consertou meu problema.

    
por Bill 12.05.2013 / 02:37