• Uncategorized

About linux : How-to-fix-the-error-Error-connecting-to-the-KeX-server

Question Detail

  1. List item

When I run the kex, it gives this error

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.

Question Answer

i solved the same problem

sudo apt remove -y kali-win-kex && sudo apt install -y kali-win-kex

I also was unable to bring up KEX, and found out it was do to an oversight with the WSL version

It turns out I had the KALI BOX still on WSL v1, fixing to WSL v2 fixed it for me

upgrade it first to version 2 using the following command:

wsl --set-version kali-linux 2

When upgrading the distro to WSL2, you may be prompted to download and install the latest Linux Kernel, which you should do.

You can then enter the wsl -l -v command again to confirm that Kali Linux is now configured as a WSL2 distribution.

Now launch Kali Linux and run the following commands to prep the distribution with the latest updates and required files.

sudo apt update

sudo apt dist-upgrade

Source: https://www.bleepingcomputer.com/news/security/kali-linux-gets-a-gui-desktop-in-windows-subsystem-for-linux/

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.