Wsl 2'de kali linux için GUI'yi başlatamıyor musunuz?

Aug 19 2020

Bu hata mesajı görüntüleniyor:

TigerVNC Viewer 32-bit v1.10.80
Built on: 2020-06-15 22:33
Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.

Wed Aug 19 23:22:57 2020
 DecodeManager: Detected 8 CPU core(s)
 DecodeManager: Creating 4 decoder thread(s)

Wed Aug 19 23:22:59 2020
 CConn:       unable to connect to socket: No connection could be made because
              the target machine actively refused it. (10061)

Ayrıca kurulumu tekrar çalıştırmayı denedim ve aşağıdaki hata mesajı şöyle:

The following packages have unmet dependencies:
 gstreamer1.0-plugins-good : Depends: libcaca0 (>= 0.99.beta17-1) but it is not going to be installed
 pulseaudio : Depends: libwebrtc-audio-processing1 but it is not going to be installed

Çalıştırmayı denedim: "sudo apt install gstreamer1.0-plugins-good pulseaudio" ama işe yaramadı Lütfen yardım edin!

Yanıtlar

2 ChrisG661 Aug 21 2020 at 05:20

kex --killBaşarı olmadan denedim . Yaptım kex --stopve işe yarıyor! Yeni Win-Kex sürümüyle eşleşecek şekilde düzenlenmiş sözdizimi

2 DanielVavrik Aug 23 2020 at 12:04

Aynı hatayı alıyorum: "CConn: sokete bağlanılamıyor: Hedef makine aktif olarak reddettiği için bağlantı kurulamadı. (10061)" Kali'yi kurduğumdan beri ilk yeniden başlatmanın ardından belirdi. kex stop; kexYeni bir ekran açan denedim : 2. @Vam tarafından önerildiği gibi kex dosyasını değiştirmek istedim ama / usr / bin / kex içinde bulamıyorum ... Ayrıca kex için herhangi bir kullanım kılavuzu bulamıyorum. Ben çalıştığımda man kexBen sadece "KEX için manuel giriş" olsun. Herhangi bir fikir?

OK I just found solution here: Before you start kex switch to your user home directory. Windows starts kali by default in /mnt/c/Users/yourusername . Just switch to home with cd ~ and then type kex.

2 SaifAli Aug 23 2020 at 13:31

The following solution worked for me.

Step1: Start Powershell or Command Prompt in Administrator Mode.

Step2: type wsl (if kali-linux is you default distro) or just type bash, press enter.

Step3: type cd or cd ~, press enter.

Step4: type kex, press enter.

InshAllah it will work fine.

2 vam Aug 21 2020 at 19:08

So I noticed on mine I got the same. " CConn: unable to connect to socket: No connection could be made because the target machine actively refused it. (10061)"

I had to actually edit the kex file /usr/bin/kex and change the 127.0.0.1:1 to 127.0.0.1:2 as my session was spawned on 2 you can tell that on launch in the CLI

X DISPLAY #     RFB PORT #      PROCESS ID
:2              5902            8802
1 AswinHanagal Aug 27 2020 at 19:59

For those who did not have any success with the above answers

After experimenting a bit I think I understood the issue. There is some updated package that is causing issues with kex. Reinstall Kali, do NOT dist-upgrade, and directly do an apt update and apt install kali-win-kex and it will work just fine. Again, do not update the kali wsl2 system.

dabdoue Aug 20 2020 at 02:15

Have you tried installing the dependencies it tells you aren't installed?

Try sudo apt install libcaca0 And sudo apt install libwebrtc-audio-processing1

SolarisKnight Aug 20 2020 at 09:55

In WSL terminal (kali) type

kex kill

this will stop kex server and kill all related processes.

Then try to launch kex, this would resolve the socket issue