-
Notifications
You must be signed in to change notification settings - Fork 858
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
wsl Windows Subsystem for Linux Preview shutdown on opening #9018
Comments
the picture is nt good because the windows shutdown quick, i had to film and to pause -- lecture -- pause --lecture -- pause to see the message |
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
hello thanks for your answer. |
Make sure your distro is set as default. I had some issues where my default distro was assigned to my docker desktop. wsl --setdefault DISTRO-NAME Not sure if this will fix your problem but its worth a try, |
Looks like WSL is configured to launch a user that doesn't exist. I'd suggest running |
i running wsl.exe --user root and here the answer : C:\WINDOWS\system32> wsl.exe --user root <3>WSL (8) ERROR: CreateProcessEntryCommon:327: getpwnam(root) failed 2 |
utilisateur introuvable = user unknown
here the answer l'operation a reussi = it worked but still the same problem |
Thanks for sharing this @osteopathievilleraymontreal. I wonder if the issue is that the |
C:\WINDOWS\system32> wsl --system -d kali-linux-u root cat /mnt/wslg/distro/etc/passwd Il n’existe aucune distribution avec le nom fourni. = no dristo related to the name given |
@osteopathievilleraymontreal Sorry I made a typo. Can you please share the output of |
PS C:\Users\Olys> wsl --system -d kali-linux -u root cat /mnt/wslg/distro/etc/passwd |
thank you for taking your time to answer. also if there is a way to uninstall properly maybe could be a solution ? thanks again |
Ok that makes sense. It looks like your distribution is corrupted and if The easiest way to fix this would be to uninstall and reinstall the distribution. To do this you can use If you need to recover files from your distribution before deleting it, you can try |
Hi please someone help. I tried installing wsl using the command wsl --install on cmd and i keep getting |
Windows é um lixo! |
The problem is that the only WSL installed is the one provided by Docker. |
Im facing this error, after following an online solution to run composer in bash with Windows PHP and composer settings (Changing Distribution WSL version and etc). But after I change the registry Flags to decimal 15 for : Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss(DistributionUID)\Flags Problem solved, my Ubuntu running again via WSL I dont know if you are facing the same problem, but hope it can lead to something with your problem. |
This helped solve my problem thank you so much 🙏🙏 |
uninstall and reinstall the distribution This helped solve my problem thank you so much |
Thanks for the info. It did work for me but I already had a hypervisor installed (Oracle VM). |
i had a same quesiton, finally ,I solved the problem with this command "wsl --setDefault ubuntu" |
You are the single greatest human in the world! Thank you so much for this!!! |
For me, restarting the subsystem did the job
|
Isso funcionou para mim. |
我遇到了同样的问题,解决办法:关闭linux子系统,卸载Docker-Desktop,并且删除wsl的更新包,安装重新打开linux子系统,先安装ubuntu,然后再安装Docker-Desktop。具体原因应该是Docker-Desktop导致的,他替换或覆盖了windows的bash和wsl,只要开启子系统之后先安装一个linux子系统,然后在安装docker-Desktop就不会出问题了。 |
我的现象:windows11下运行bash或者wsl命令报错,控制台打印如下:
但是bash或者wsl添加参数使用的时候是正常的。 |
Genial, já estava sem opções para resolver o problema. |
Version
Microsoft Windows [version 10.0.22621.674]
WSL Version
Kernel Version
5.15.68.1
Distro Version
kali-linux (today Ver)
Other Software
<3>WSL (104) ERROR: CreateProcessEntryCommon: 348: getpwuid(1000) failed 2
<3>WSL (104) ERROR: CreateProcessEntryCommon: 352: getpwuid(0) failed 2
<3>WSL (104) ERROR: CreateProcessEntryCommon: 559: execvpe /bin/sh failed 2
<3>WSL (104) ERROR: CreateProcessEntryCommon: 568: Create process not expected to return
Repro Steps
hello
so i wanted to install kali-linux, so in the microsoft store i install
Windows Subsystem for Linux Preview
and i install right after from the microsoft store
kali linux
when i tried tu run Kali one windows open and desapear as soon
so i tried to ope the Windows Subsystem for Linux Preview from the store and very quick a window open and close with a message i could not read, so i had to film it and make a pause and write it
<3>WSL (104) ERROR: CreateProcessEntryCommon: 348: getpwuid(1000) failed 2
<3>WSL (104) ERROR: CreateProcessEntryCommon: 352: getpwuid(0) failed 2
<3>WSL (104) ERROR: CreateProcessEntryCommon: 559: execvpe /bin/sh failed 2
<3>WSL (104) ERROR: CreateProcessEntryCommon: 568: Create process not expected to return
finally i can't run anything because the windows alway shut down.
What i have done before ?
i was on windows 10, i install Windows Subsystem for Linux Preview and kali and run kali whiout problem. i uninstall them, i update windows 10 to 11 and i install Windows Subsystem for Linux Preview and kali, as the documentation said i change wsl1 to wsl2 and i tried to open kali and problem happen
Thanks for reading all of this
and english is not my language so sorry for the mystakes.
Expected Behavior
Actual Behavior
done up
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: