我想indicator-sysmonitor
在 lightdm 登录屏幕上启动时立即显示一个指示器,表明网络连接已启动。
我按照以下步骤安装 indicator-sysmonitor,
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor
当我尝试启动它时,我收到一条很长的错误信息,
$ indicator-sysmonitor
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 2135, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/indicator-sysmonitor", line 29, in <module>
from gi.repository import AppIndicator3 as appindicator
File "/usr/lib/python3/dist-packages/gi/importer.py", line 53, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name AppIndicator3, introspection typelib not found
出了什么问题?我该如何通过命令行配置网络状态指示器并在启动时启动它?
答案1
跑步sudo apt-get install gir1.2-appindicator3-0.1