最近安装了一些python库,安装之后发现系统的network界面一直启动不了。
network是可以用的,只是改不了配置。那来看看启动界面时报了什么错
进入目录, 这里存放的文件是,系统菜单启动软件的配置
cd /usr/share/applications/
ls | grep network
输出结果,network的启动配置
cinnamon-network-panel.desktop
cat一下,看看配置
$ cat cinnamon-network-panel.desktop
[Desktop Entry]
Exec=cinnamon-settings network
Icon=cs-network
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Settings;HardwareSettings;X-Cinnamon-Settings-Panel;
OnlyShowIn=X-Cinnamon;
X-Cinnamon-Settings-Panel=network
# Translators: those are keywords for the network control-center panel
Keywords=Network;Wireless;IP;LAN;Proxy;Internet;WiFi;
Name=Network
Comment=Network settings
X-Ubuntu-Gettext-Domain=cinnamon-control-center
上述的输出结果中,Exec是network界面启动命令。手动执行一下
$ cinnamon-settings network
/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: _ZThn16_N9Inspector21InspectorRuntimeAgent10saveResultERN3WTF6StringERKNS1_8JSONImpl6ObjectEPKiRNS1_8OptionalIiEE
Failed to load module: /usr/lib/x86_64-linux-gnu/cinnamon-control-center-1/panels/libonline-accounts.so
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'
嗯嗯,似乎找到问题了。
python库pillow的问题,重新安装一下就正常了
$ sudo pip install pillow
network.png
我之前安装了pillow包,可能是安装出错了,就出了这样的问题。
网友评论