我删除了一些不必要的图标主题,现在我的应用程序图标已经更改。我也无法打开 Ubuntu 软件中心.... 显示以下消息....
success@user-pc:~$ software-center
2012-09-12 22:24:52,048 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2012-09-12 22:24:52,055 - softwarecenter.db.database - INFO - open() database: path=None
use_axi=True use_agent=True
Traceback (most recent call last):
File "/usr/bin/software-center", line 142, in <module>
app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 387, in __init__
self.datadir)
File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/historypane.py", line
78, in __init__
self._get_emblems(self.icons)
File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/historypane.py", line 192, in _get_emblems
pb = icons.load_icon(emblem, self.ICON_SIZE, 0)
File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
return info.invoke(*args, **kwargs)
gi._glib.GError: Icon 'package-install' not present in theme
我也尝试了以下代码来更改图标,但没有效果......
gksu gedit /usr/share/applications/ubuntu-software-center.desktop
答案1
您删除的某些图标是软件中心所需的,其中一个是位于 /usr/share/icons/Humanity/actions/16/package-install.svg 的 package-install。尝试从朋友那里获取此文件,然后检查它是否有效。只是猜测,不确定这是否会有效。