Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在WSL中打开应用程序时出现错误消息_Linux_Bash_Windows Subsystem For Linux_Qstandardpaths - Fatal编程技术网

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

Linux 在WSL中打开应用程序时出现错误消息,linux,bash,windows-subsystem-for-linux,qstandardpaths,Linux,Bash,Windows Subsystem For Linux,Qstandardpaths,从终端打开Windows Subsystem for Linux中的应用程序时,我收到以下错误消息: 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. 有什么想法吗?Wireshark需要GUI才能在

从终端打开Windows Subsystem for Linux中的应用程序时,我收到以下错误消息:

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.

有什么想法吗?

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

在Windows级别以管理员身份运行bash,然后执行以下命令进行安装:

sudo apt-get install tshark

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

在Windows级别以管理员身份运行bash,然后执行以下命令进行安装:

sudo apt-get install tshark

您正在尝试运行什么应用程序?将不会有带有WSL的桌面,因为环境的运行非常像一个容器。我正在尝试运行Wireshark您正在尝试运行哪个应用程序?由于环境的运行非常像一个容器,因此不会有带有WSL的桌面。我正在尝试运行Wireshark