从终端在Linux的Windows子系统中打开应用程序时,我收到此错误消息:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-adduser'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
有什么想法吗?
答案 0 :(得分:0)
Wireshark将需要GUI才能在WSL中运行,因此最好使用Wireshark的终端版本tshark
https://www.wireshark.org/docs/man-pages/tshark.html
通过在Windows级别上以管理员身份运行bash并执行以下命令来安装:
sudo apt-get install tshark