在WSL中打开应用程序时出现错误消息

时间:2020-10-07 07:12:26

标签: linux bash windows-subsystem-for-linux qstandardpaths

从终端在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.

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

Wireshark将需要GUI才能在WSL中运行,因此最好使用Wireshark的终端版本tshark

https://www.wireshark.org/docs/man-pages/tshark.html

通过在Windows级别上以管理员身份运行bash并执行以下命令来安装:

sudo apt-get install tshark