Linux Mint 设置无法访问

Linux Mint 设置无法访问

当我尝试访问系统设置时,单击图标没有任何反应。

我尝试从 CLI 进行操作,但也没有结果。

我从 CLI 收到此错误:

GLib-GIO-Message: 21:57:12.783: Using the 'memory' GSettings backend.  
Your settings will not be saved or shared with other applications.
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 619, in <module>
window = MainWindow()
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 247, in __init__
    for module in modules:
  File "/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py", line 5, in <module>
    import imtools
  File "/usr/share/cinnamon/cinnamon-settings/bin/imtools.py", line 623, in <module>
    if Image.VERSION == '1.1.7':
AttributeError: module 'PIL.Image' has no attribute 'VERSION'

您遇到过这种情况吗?您如何解决它?

最好的,

答案1

PIL 存在问题,应该很快就会修复,但与此同时,您可以按照此方法修复问题

sudo vim /usr/share/cinnamon/cinnamon-settings/bin/imtools.py

转到第 623 行,然后更改

if Image.VERSION == '1.1.7':

if getattr(Image, 'VERSION', None) == '1.1.7':

然后 cinnamon-settings 应该就可以正常启动了。

相关内容