Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to initialize windows kex seamless mode #9333

Open
1 of 2 tasks
Cr7pt0nic opened this issue Dec 15, 2022 · 9 comments
Open
1 of 2 tasks

Unable to initialize windows kex seamless mode #9333

Cr7pt0nic opened this issue Dec 15, 2022 · 9 comments

Comments

@Cr7pt0nic
Copy link

Version

Windows NT 10.0 build 22000 (64-bit)

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.79.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 23 01:01:46 UTC 2022

Distro Version

Kali Linux 2022.4

Other Software

For some weird reason whenever running Kali Linux Kex on seamless mode I get this error

image

Here's the log information:

`Welcome to the VcXsrv X Server
Vendor: The VcXsrv Project
Release: 1.20.14.0

OS: Windows NT 10.0 build 22000 (64-bit)
Contact: marha@users.sourceforge.net

LoadPreferences: C:\Users\57pat\AppData\Roaming.XWinrc not found
LoadPreferences: Loading \wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\system.XWinrc
(II) AIGLX: Testing pixelFormatIndex 5
(II) GLX: enabled GLX_SGI_make_current_read
(II) GLX: enabled GLX_SGI_swap_control
(II) GLX: enabled GLX_MESA_swap_control
(II) GLX: enabled GLX_SGIX_pbuffer
(II) GLX: enabled GLX_ARB_multisample
(II) GLX: enabled GLX_SGIS_multisample
(II) GLX: enabled GLX_ARB_fbconfig_float
(II) GLX: enabled GLX_EXT_fbconfig_packed_float
(II) GLX: enabled GLX_ARB_create_context
(II) GLX: enabled GLX_ARB_create_context_profile
(II) GLX: enabled GLX_ARB_create_context_robustness
(II) GLX: enabled GLX_EXT_create_context_es2_profile
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
[xkb] Starting '"\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbcomp" -w 1 "-R\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbdata" -xkm "C:\Users\57pat\AppData\Local\Temp\xkb_a06412" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "C:\Users\57pat\AppData\Local\Temp\server-3.xkm"' failed: Incorrect function.
(EE) Error compiling keymap (server-3) executing '"\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbcomp" -w 1 "-R\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbdata" -xkm "C:\Users\57pat\AppData\Local\Temp\xkb_a06412" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "C:\Users\57pat\AppData\Local\Temp\server-3.xkm"'
(EE) XKB: Couldn't compile keymap
(EE) XKB: Failed to load keymap. Loading default keymap instead.
[xkb] Starting '"\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbcomp" -w 1 "-R\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbdata" -xkm "C:\Users\57pat\AppData\Local\Temp\xkb_a06412" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "C:\Users\57pat\AppData\Local\Temp\server-3.xkm"' failed: Incorrect function.
(EE) Error compiling keymap (server-3) executing '"\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbcomp" -w 1 "-R\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbdata" -xkm "C:\Users\57pat\AppData\Local\Temp\xkb_a06412" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "C:\Users\57pat\AppData\Local\Temp\server-3.xkm"'
(EE) XKB: Couldn't compile keymap
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
(EE)
Fatal server error:
(EE) Failed to activate virtual core keyboard: 2(EE)
(EE) Server terminated with error (1). Closing log file.`

Repro Steps

I ran

kex --sl <-- which gave me the same error

sudo kex --sl <-- still same error

sudo kex --sl --wtstart -s <--- which also gave me the same error

Expected Behavior

It's expected behavior is to popup a linux GUI on the top bar

image

Actual Behavior

The actual behavior that happens is this instead:

image

Diagnostic Logs

No response

@rescenic
Copy link

Yeah it's well known problem. Just use full screen mode or Enhanced Session Mode. Klik Logout to exit full screen mode.

@Cr7pt0nic
Copy link
Author

I've actually tried everything so far and I even tried using Fullscreen mode or enhanced session and it still doesn't work. It's a problem with the application itself and it needs to be fixed. This is my main system that I use on an everyday basis and I hate having to switch between virtual machines every single time and it's absolutely frustrating.

@Cr7pt0nic
Copy link
Author

Literally all I did was update WSL and for some reason kex just completely breaks on itself

@dethknite
Copy link

dethknite commented Jan 4, 2023

Same. "kex --sl --wtstart -s" was working fine up until about 3 weeks ago (prior to updates).

@theonlyfoxy
Copy link

theonlyfoxy commented Jan 11, 2023

Same issue here, some guy suggested to not use Store's WSL version.

@dethknite
Copy link

dethknite commented Jan 11, 2023

Yeah.. there are some open issues on the store version and the mount of the windows binaries. I imagine (or hope) those are being fixed.. though uninstalling it and installing the builtin does solve it for now.

Cmd to install windows builtin wsl after removing store version
wsl --install --inbox

@hanshou101
Copy link

hanshou101 commented Feb 25, 2023

Yeah.. there are some open issues on the store version and the mount of the windows binaries. I imagine (or hope) those are being fixed.. though uninstalling it and installing the builtin does solve it for now.

Cmd to install windows builtin wsl after removing store version wsl --install --inbox

Thank you so much. I uninstalled 【WSL】 and 【Kali-Linux】 in the 【Control Panel】, and after 【wsl.exe --unregister kali-linux】, then follow your method to perform 【wsl --install --inbox】 . After 【wsl --install -d kali-linux】 reinstalling the subsystem, all problems have been resolved.

@GiggleMonster
Copy link

Yeah.. there are some open issues on the store version and the mount of the windows binaries. I imagine (or hope) those are being fixed.. though uninstalling it and installing the builtin does solve it for now.
Cmd to install windows builtin wsl after removing store version wsl --install --inbox

Thank you so much. I uninstalled 【WSL】 and 【Kali-Linux】 in the 【Control Panel】, and after 【wsl.exe --unregister kali-linux】, then follow your method to perform 【wsl --install --inbox】 . After 【wsl --install -d kali-linux】 reinstalling the subsystem, all problems have been resolved.

Please keep in mind that unregistering will delete all of your data.

@ITProggeruz
Copy link

now im pain about to: i installed that stupid kex in a hour and other things for 3 hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants