CompizConfig 设置管理器无法在我的 Ubuntu 16.04 中启动。我ccsm
在终端中运行它,它给出了以下错误消息:
$ ccsm
Traceback (most recent call last):
File "/usr/bin/ccsm", line 94, in <module>
import ccm
File "/usr/lib/python2.7/dist-packages/ccm/__init__.py", line 2, in <module>
from ccm.Window import *
File "/usr/lib/python2.7/dist-packages/ccm/Window.py", line 27, in <module>
from ccm.Pages import *
File "/usr/lib/python2.7/dist-packages/ccm/Pages.py", line 32, in <module>
from ccm.Settings import *
File "/usr/lib/python2.7/dist-packages/ccm/Settings.py", line 30, in <module>
from ccm.Widgets import *
File "/usr/lib/python2.7/dist-packages/ccm/Widgets.py", line 32, in <module>
mimetypes.init()
File "/usr/lib/python2.7/mimetypes.py", line 358, in init
db.read(file)
File "/usr/lib/python2.7/mimetypes.py", line 202, in read
with open(filename) as fp:
IOError: [Errno 13] Permission denied: '/usr/local/lib/netscape/mime.types'
答案1
由于某种原因,有些文件/usr/local/lib
不是全球可读的。这可能是一个错误。要使所有文件/usr/local/lib
都可读,请运行:
sudo chmod -R a+rX /usr/local/lib
答案2
您可能需要使用 gksudo 运行它,或者如果您没有它,请搜索 CompizConfig 然后选择它