如何修复连接到 KeX 服务器时出错的错误?

Ism*_*oil 5 linux vnc

当我运行 kex 时,它给出了这个错误

Error connecting to the KeX server.
Please try "kex start" to start the service.
If the server fails to start, please try "kex kill" or restart your WSL2 session and try again.
    
Run Code Online (Sandbox Code Playgroud)

mec*_*per 13

以下说明对我有用,/tmp/.X11-unix使用rw选项重新安装:

sudo mount -o remount,rw /tmp/.X11-unix
Run Code Online (Sandbox Code Playgroud)

https://github.com/microsoft/WSL/issues/9303#issuecomment-1345615675


小智 1

我解决了同样的问题

sudo apt remove -y kali-win-kex && sudo apt install -y kali-win-kex
Run Code Online (Sandbox Code Playgroud)