Ubuntu 软件中心无法打开,我尝试按照这些说明进行修复,但没有效果https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure 当我software-center
从 bash 终端运行命令时,它仍然给我下一个错误。
2013-07-16 13:28:18,591 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-07-16 13:28:18,654 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/dbus/proxies.py', 410, '_introspect_error_handler')'
2013-07-16 13:28:18,653 - 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:
我发现google-api-python-client
使用此命令安装后产生了这个错误:
sudo easy_install --upgrade google-api-python-client
似乎它搞乱了一些 httplib。我仍然不知道如何纠正此错误(或正确安装此包)。我不得不重新安装 Ubuntu 并且不安装 api 以避免出现此问题。
如果有人能帮助我,我将非常感激。
答案1
您的 python 包中的权限可能不起作用。
sudo chown -R $USER:$USER /usr/local/lib/python2.7/dist-packages/
您可以$USER
用您的登录名(小写)替换它。
或者最好只对它抱怨的包使用相同的方法