无法在 Ubuntu 软件中心启用推荐功能

无法在 Ubuntu 软件中心启用推荐功能

当我从终端启动软件中心时,我得到以下输出:

2013-10-13 12:43:41,231 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2013-10-13 12:43:41,414 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Master was not provided by any .service files'
2013-10-13 12:43:41,618 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2013-10-13 12:43:41,621 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2013-10-13 12:43:41,627 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/gi/importer.py', 51, 'find_module')'
2013-10-13 12:43:41,627 - root - ERROR - Could not find any typelib for LaunchpadIntegration
2013-10-13 12:43:41,696 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2013-10-13 12:43:43,495 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/utils.py', 271, 'get_title_from_html')'
2013-10-13 12:43:43,495 - root - WARNING - failed to parse: '<div style="background-color: #161513; width:1680px; height:200px;"><div style="background: url('/site_media/exhibits/2013/09/AAMFP_Leaderboard_700x200_1.jpg') top left no-repeat; width:700px; height:200px;"></div></div>' ('ascii' codec can't encode character u'\xa0' in position 70: ordinal not in range(128))
2013-10-13 12:43:46,266 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Master was not provided by any .service files'
2013-10-13 12:43:47,452 - softwarecenter.db.utils - INFO - software-center-agent finished with status 0

当我按下“打开推荐”按钮时,我得到以下信息:

2013-10-13 12:48:26,466 - softwarecenter.backend.login_impl.login_sso - ERROR - _on_credentials_error for Ubuntu One: dbus.Dictionary({dbus.String(u'errtype'): dbus.String(u'GUINotAvailableError'), dbus.String(u'message'): dbus.String(u'Can not find a GUI to present to the user (tried with "(\'ubuntu-sso-login-qt\', \'ubuntu-sso-login-qt\')"). Aborting.')}, signature=dbus.Signature('ss')) ()
2013-10-13 12:48:26,467 - softwarecenter.backend.login_impl.login_sso - ERROR - _on_credentials_error for Ubuntu One: dbus.Dictionary({dbus.String(u'errtype'): dbus.String(u'GUINotAvailableError'), dbus.String(u'message'): dbus.String(u'Can not find a GUI to present to the user (tried with "(\'ubuntu-sso-login-qt\', \'ubuntu-sso-login-qt\')"). Aborting.')}, signature=dbus.Signature('ss')) ()

我正在运行 Xubuntu 13.10。我想我不小心删除了一个错误的软件包。

答案1

您需要安装 Ubuntu Single Sign-on:

sudo apt-get install ubuntu-sso-client
sudo apt-get install ubuntu-sso-client-qt

答案2

这对我来说确实有效,我希望对其他答案无效的人也有效。我以管理员权限从终端运行了软件中心:

sudo software-center

然后按“打开建议”,Ubuntu One 登录页面不会在没有任何警告的情况下取消该过程,而是弹出,然后我就可以登录了。

现在,我的问题是,软件中心没有执行命令的管理权限,这有什么原因吗?我记得在发出 Heartbleed 警告时我更改了密码;这可能导致这种情况发生,但软件中心没有更改凭据的选项。我只是在这里假设。

[更新] - 这只对我有用一次...当我尝试做同样的事情时,我得到了以下结果:

    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 74, 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.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

仅供参考...有人能帮忙吗?还是我应该再次发布同样的问题,解释一下这里发布的答案并不能解决所有登录问题?就我而言,登录失败导致无法接收远程应用程序的回复。所以显然不是我的问题。

答案3

我想确认 raphie 的症状是否也出现在 15.04 amd64 中。我还看到了“正在工作”动画,但软件推荐无法打开或显示任何选择。Single-signon-client 和 single-signon-client-qt 也已安装,我可以登录 Ubuntu 论坛。我重新安装了软件中心,但这也无济于事。已经对几个连续版本进行了系统升级;下次我可能应该重新安装。

相关内容