今天偶然发现,win10上装的wsl,每当连ssh上去,会有一个报错
=> There were exceptions while processing one or more plugins. See
/var/log/landscape/sysinfo.log for more information.
大概长这样
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.4.0-18362-Microsoft x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Apr 16 20:43:37 CST 2020
System load: 0.52 Memory usage: 59% Processes: 20
Usage of /home: unknown Swap usage: 1% Users logged in: 0
=> There were exceptions while processing one or more plugins. See
/var/log/landscape/sysinfo.log for more information.
0 packages can be updated.
0 updates are security updates.
Last login: Thu Apr 16 20:35:07 2020 from 127.0.0.1
进去查看日志发现
2020-04-16 20:43:37,827 ERROR Network plugin raised an exception.
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/landscape/sysinfo/sysinfo.py”, line 99, in run
result = plugin.run()
File “/usr/lib/python3/dist-packages/landscape/sysinfo/network.py”, line 32, in run
for info in self._get_device_info():
File “/usr/lib/python3/dist-packages/landscape/lib/network.py”, line 181, in get_active_device_info
speed, duplex = get_network_interface_speed(sock, interface)
File “/usr/lib/python3/dist-packages/landscape/lib/network.py”, line 261, in get_network_interface_speed
raise e
File “/usr/lib/python3/dist-packages/landscape/lib/network.py”, line 253, in get_network_interface_speed
fcntl.ioctl(sock, SIOCETHTOOL, packed) # Status ioctl() call
OSError: [Errno 22] Invalid argument
解决方法,修改(创建)配置文件(/etc/landscape/client.conf
),禁用 landscape-sysinfo
的 Network plugin:
[sysinfo]
exclude_sysinfo_plugins = Temperature, Network