-
Notifications
You must be signed in to change notification settings - Fork 859
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 2 update breaks installation - the process has no package identity #9392
Comments
You could install the WSL package from release page using |
Thanks for the suggestion, didn't know that. However, that doesn't result in a proper installation either, unfortunately. BTW, I am able to "reset" my WSL installation by going to "Apps & Features" and uninstalling "Windows Subsystem for Linux" (not the "Windows Subsystem for Linux Update"). Then I am once again able to run |
/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! |
WslLogs-2022-12-28_10-36-19.zip I hope this helps. |
I stumbled upon some additional information: I noticed that I am able to run WSL commands when I use the |
Does this still work for you? It worked for me briefly, but after reboot the wsl command still is not recognized. The directory is still listed in the path so I'm unsure why I'm getting "The process has no package identity" again. This is preventing me from starting docker. |
@dlnorgaard yeah it still works for me. Did you make sure to add the directory to the top/beginning of the PATH variable? Otherwise windows will just use the old wsl.exe. |
I did for the user path variable. But for the sys one it was at the end (I have to request admin priv everytime I need it so not so easy to change). I'm not sure what happens in this case. Between this and docker not giving me useful information on why it's not starting, I wasted so much time because of this wsl update :( I saw further up you mentioned you could remove it and have the old version work, so I did that and Docker is working again. I may try the update again down the road but I'm going to get some work done while things are still working. Thanks for posting the issue and updates. |
The same issue here after every reboot. Workaround I`m using is going to Apps & Features > Windows Subsystem for Linux > Advanced Settings and selecting the Repair button. After that action, it immediately starts to work again. Workaround is quite annoying because I need to do that after every computer reboot. |
I've found that running my shell as admin, fixes this issue. As I code in my wsl environment, I had to run my Visual Studio Code as admin too. |
I've had the same error pop up. I wonder what it means.. Looks like system32/wsl.exe in the working case starts 'C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe\wsl.exe' procman shows that from cmd.exe system32/wsl.exe looks both at Trying to start either from cmd directly only gives 'The system cannot execute the specified program.' Procmon log of trying to start wsl.exe from a Windows command prompt, which fails with 'the process has no package identity' Oh! And this is odd, but in the user folder the files are 0 bytes? For completeness, logs collected also while triggering the issue, according to the instructions: |
I ran into this docker desktop not starting issue too. From the docker log ($HOME\AppData\Local\Docker\log), it shows "the process has no package identity" when running the wsl command. It seems docker desktop always run the wsl.exe in system32 regardless of PATH. After running "wsl --install", system32/wsl.exe will shows the no package identity message. But I can't find a way to let docker desktop run the wsl.exe in WindowsApp. It took me quite a while to figure out the solution. I read this instruction to manually install wsl. Use the linux kernel update package at step 4 instead of running "wsl --install". Basically, I removed the previous installation of wsl and only install the kernel update package. Now system32/wsl.exe still works and hence docker desktop works. I'm not quite sure which step needs admin since my IT granted me the admin temporarily while I did the manually reinstallation of wsl. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
10.0.19042.2364
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Update WSL with the
wsl --update --web-download
command. Downloading from the Microsoft Store doesn't work due to limitations imposed by my company.Run any
wsl.exe
(orbash.exe
) command from cmd or PowerShell.Expected Behavior
The commands should work as expected.
Actual Behavior
I only get the following message "The process has no package identity.". However, I am able to enter my distro through Windows Terminal. It is interesting to note that this doesn't happen when I run
wsl.exe
orbash.exe
commands from inside the distro; then I am able to execute those commands successfully without issues.Running
ubuntu.exe
gives me "The parameter is incorrect.".Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: