-
Notifications
You must be signed in to change notification settings - Fork 832
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
after wsl --update: wsl and wslconfig /list return "%1 is not a valid Win32-Application." both give errorcode 0x800700c1 #9678
Comments
ok, uninstalled everything. then i looked into apps&features and the control panel and there wasnt a trace of subsystem, any update, ubuntu, linux or docker. then the wsl command worked. then i did wsl --install -d ubuntu. that worked. then i updated wsl with the update from https://aka.ms/wsl2kernel. now ubuntu is running. i think as soon as i do a wsl --update i will destroy my wsl again. so i am not going to do that. |
same.
|
Were /logs being collected while attempting the update command? I don't see much in the 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! |
Did you fix it? I also encountered the same problem. |
Not fixed, avoided. Uninstall everything related to wsl and reinstall it. |
Sorry, my PC degraded to win10 and everything has been cleared. |
i collected the logs a few days after attempting the update. it could be that i collected them even after trying other unsuccessful repair attempts. |
The path you followed actually worked fine for me. I was dealing with the 0x800700c1 error for 2 days while tending to install WSL. |
I want to use |
I understand now. I uninstalled all of WSL and re-enabled the Windows Subsystem for Linux feature. If I don't upgrade or install the upgrade package directly, I can use it normally. This indicates that the upgraded version of WSL is not compatible with the current system. |
uninstall the Mircrosoft store app wsl(Windows Subsystem for Linux) and app ubuntu 20.04, then reinstall, it works |
@benhillis |
How did you find out that Windows disables Hyper-v? Any error or something..? |
I discovered that Hyper-V was disabled because when I encountered the same error, I followed the previous solution by attempting to disable WSL and remove Ubuntu and Kali from the "optional features." However, I noticed that Hyper-V was disabled as a result. Therefore, I speculated that this might be the reason behind it, as the error message contained "CreateVm," which could be related to Hyper-V. After enabling it again, everything returned to normal. |
Fixed with 1.3.10 |
@Sublime1: Yes. wsl --update --pre-release will download the latest build |
Thank you so much! I can confirm this finally fixed my issue (which was installing WSL for non-admin users). |
now it's more broken than ever.
it reported to be upgrading to 2.0.4, now there is not a single option that doesn't give me: Maybe no wonder: Each .exe in <..>/AppData\Local\Microsoft\WindowsApps has 0 KB...: could this be reopened? |
I had the same issue. I have tried to disable all features, uninstall/install WSL from Store and from command line, etc - nothing helped. Then 1 thing which actually helped: Also, if you're using Docker Desktop - reset it to the factory defaults and on init be careful about autoupdate of WSL. Probably it's better to not use recommended settings and set it to "update WSL2 manually". |
hi guys,try this if it says "not a valid Win32-Application": Delete the file which name is "Program" in the C drive |
This Works. Hopefully It doesnt Destroy anything else. Do you have an idea what is contained in the file? |
I'm sure this is a junk file
获取 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
发件人: StanF98 ***@***.***>
发送时间: Monday, April 29, 2024 9:36:56 PM
收件人: microsoft/WSL ***@***.***>
抄送: 卡车修理师傅 ***@***.***>; Comment ***@***.***>
主题: Re: [microsoft/WSL] after wsl --update: wsl and wslconfig /list return "%1 is not a valid Win32-Application." both give errorcode 0x800700c1 (Issue #9678)
hi guys,try this if it says "not a valid Win32-Application":
Delete the file which name is "Program" in the C drive
This Works. Hopefully It doesnt Destroy anything else. Do you have an idea what is contained in the file?
―
Reply to this email directly, view it on GitHub<#9678 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALWGPH54BP6QBVXD6AJ6BHLY7ZEHRAVCNFSM6AAAAAAVFSZU42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSG43TKNJUGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Version
10.0.19044.2604
WSL Version
Kernel Version
not certain. commands are not working. after (see my comment) it says 5.10.16
Distro Version
Ubuntu
Other Software
No response
Repro Steps
i think the last i did before the error occured was to try to wsl --update -d ubuntu but i am not shure.
Expected Behavior
the commands wsl or wslconfig should do something except throwing the error
Actual Behavior
wsl throws the error
"%1 ist keine zulässige Win32-Anwendung.
Error code: Wsl/0x800700c1"
wslconfig /list throws
"%1 ist keine zulässige Win32-Anwendung.
Error code: WslConfig/0x800700c1"
that translates to "%1 is not a valid Win32-Application."
if i only input "wslconfig" i get the list of parameters.
i already tried to uninstall/install the subsystem (by control panel and also by powershell commands). i tried sfc scannow and dism /online /cleanup-image /restorehealth.
i tried uninstalling ubuntu and docker and reinstalling ubuntu and ubuntu 22.04.2 lts.
i tried setting lxss to automatic and starting it manually.
i tried reinstalling some windows wsl patch that was showing in my control panel/software
i tried looking into procmon output.
currently im trying to install windows 11 to see if that works.
of course i restarted multiple times between that.
last thing i did was to reset and repaired the newly installed wsl and ubuntu under apps&features. but i yet have to restart to try if that helped.
Diagnostic Logs
WslLogs-2023-02-23_13-16-21.zip
The text was updated successfully, but these errors were encountered: