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

Opening Terminal shows the following issue: The network name cannot be found. [process exited with code 4294967295 (0xffffffff)] #8293

Closed
1 of 2 tasks
AtrikGit6174 opened this issue Apr 14, 2022 · 3 comments

Comments

@AtrikGit6174
Copy link

Version

Microsoft Windows [Version 10.0.19044.1645]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

kali-linux Kernel version: 5.10.102.1

Distro Version

Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2022.1 Codename: kali-rolling

Other Software

No response

Repro Steps

  1. Opening Terminal
  2. response:
    The network name cannot be found.

[process exited with code 4294967295 (0xffffffff)]

Uploading image.png…

  1. Using "wsl.exe" in the cmd works perfectly.

Expected Behavior

The Terminal shows the path location.

Actual Behavior

image

Diagnostic Logs

No response

@elsaco
Copy link

elsaco commented Apr 14, 2022

@AtrikGit6174 is your Kali a fresh install? After pulling Kali from the MS store, winget install --id=9PKR34TNCV07, it stared okay. There is a Kali package served by the winget repository also.

Sample run:

wsl_kali_store_fresh_install

OS info Microsoft Windows [Version 10.0.19044.1645]

@AtrikGit6174
Copy link
Author

AtrikGit6174 commented Apr 15, 2022

@elasco
I think I installed it in July 2021, and I get the same response as you for "cat /etc/*-release"
I had opened my Kex using cmd after I had created the issue.
-> wsl.exe"
-> kex --esm --ip
-> kex --esm -stop

After yesterday's work, I hibernate-d my laptop.
I opened the terminal again and now it is working fine.

Again, I tried using kali-undercover after I had RDP'ed to the Kex, and I wasn't able to exit the undercover mode (Shell & GUI Application responded that Undercover mode could only be use with Xfce4 panel. Of course I had that, or else I would not be able to switch on undercover). It didn't even show the "Windows-like" taskbar.
I switched back to the Windows cmd, "kex --esm --stop" and then again "kex --esm --ip". It opened kex in undercover mode with the taskbar, and this time the Kali shell inside Kex responded positively to "kali-undercover".

Some things surely do seem like magic.
If you have a guide or solution to permanently getting rid of these problems w/o ridding of Kali Linux, please show me the path!

Thanks a lot! 😄

For people visiting this issue: Restarting often does wonders.

@dakhar
Copy link

dakhar commented Jun 2, 2023

I had got same problem, when starting "wsl -d <DistroName>" from Windows Terminal.
Problem was solved, when I change "Starting directory" option in Settings for this distros from "~" to ".\".
image

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

3 participants