软件中心不在Ubuntu 14.04中工作

时间:2018-06-14 03:56:18

标签: python python-2.7 ubuntu ubuntu-14.04

我的软件中心无法打开。当我在终端中键入software-center时,会出现以下错误。

操作系统:Ubuntu 14.04 LTS

Python版本:安装了2.7和3.6

$ software-center
    2018-06-14 09:11:33,974 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
    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 166, 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/bin/software-center", line 130, in <module>
        app = SoftwareCenterAppGtk3(options, args)
      File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 373, in __init__
        self.cache, self.icons)
      File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/globalpane.py", line 46, in __init__
        icons)
      File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/viewswitcher.py", line 78, in __init__
        icon = SymbolicIcon("available")
      File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/symbolic_icons.py", line 54, in __init__
        self.drop_shadow = cairo.ImageSurface.create_from_png(drop_shadow_path)
    AttributeError: 'module' object has no attribute 'ImageSurface'

我已尝试更新和升级sudo apt-get update && sudo apt-get upgrade -y,并尝试使用sudo apt-get install --reinstall python2.7重新安装python 2.7

我的任务栏上还有一个红色图标,上面写着“检查更新时出现问题”,但是当我按下按钮show updates时它没有做任何事情< / p>

enter image description here

如果您需要更多信息,请发表评论

0 个答案:

没有答案