我正在运行 Ubuntu 14.04.5。我无法再从启动器或终端打开 Ubuntu 软件中心 GUI。当我software-center
在命令行输入时,返回的消息是:/usr/bin/python: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgdk-3.so.0: undefined symbol: cairo_surface_set_device_scale
。我已经运行了apt-get update
和apt-get upgrade
,但没有明显的效果。任何建议都将不胜感激!
编辑1:注意sudo software-center
遇到同样的问题。
编辑2:更新到 Ubuntu 16.04 似乎至少可以部分解决问题:我现在可以从启动器运行软件中心。奇怪的是,我仍然无法从命令行启动它。这样做会产生错误跟踪:
box:~> software-center
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 6, in <module>
from .debfile import DebFileApplication, DebFileOpenError
File "/usr/share/software-center/softwarecenter/db/debfile.py", line 25, in <module>
from softwarecenter.db.application import Application, AppDetails
File "/usr/share/software-center/softwarecenter/db/application.py", line 26, in <module>
import xapian
File "/home/ianc/anaconda2/lib/python2.7/site-packages/xapian/__init__.py", line 43, in <module>
_xapian = swig_import_helper()
File "/home/ianc/anaconda2/lib/python2.7/site-packages/xapian/__init__.py", line 39, in swig_import_helper
_mod = imp.load_module('_xapian', fp, pathname, description)
ImportError: /home/ianc/anaconda2/lib/python2.7/site-packages/xapian/_xapian.so: undefined symbol: _ZN6Xapian5ErrorC2ERKSsS2_PKcS4_
Traceback (most recent call last):
File "/usr/bin/software-center", line 128, in <module>
from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 38, in <module>
import xapian
File "/home/ianc/anaconda2/lib/python2.7/site-packages/xapian/__init__.py", line 43, in <module>
_xapian = swig_import_helper()
File "/home/ianc/anaconda2/lib/python2.7/site-packages/xapian/__init__.py", line 39, in swig_import_helper
_mod = imp.load_module('_xapian', fp, pathname, description)
ImportError: /home/ianc/anaconda2/lib/python2.7/site-packages/xapian/_xapian.so: undefined symbol: _ZN6Xapian5ErrorC2ERKSsS2_PKcS4_