WSL: Error code: Wsl/Service/0x8007273d
Version
Microsoft Windows [Version 10.0.19044.2364]
WSL Version
- WSL 2
- WSL 1
Kernel Version
No response
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Start Ubuntu 22.04 or 20.04 installed from the Microsoft Store and notice the following error being reported upon startup:
The attempted operation is not supported for the type of object referenced. Error code: Wsl/Service/0x8007273d Press any key to continue...
Expected Behavior
Ubuntu should start fine.
Actual Behavior
The attempted operation is not supported for the type of object referenced. Error code: Wsl/Service/0x8007273d Press any key to continue...
Diagnostic Logs
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 34 (1 by maintainers)
then restarting my PC works for me
WSL version: 1.0.3.0 Kernel version: 5.15.79.1 WSLg version: 1.0.47 MSRDC version: 1.2.3575 Direct3D version: 1.606.4 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.19045.2364
I was able to “fix” this issue by doing the following:
Which seems like what @qzmlgfj did as well.
@nurhasyim354:
That fixed the problem for me too! 😁
I ran the winsock reset on my ASUS machine (the one experiencing the problem before I restored the old version of WSL), then ran
wsl --updateagain, andwslworks for both my distros.Thanks, this is fantastic!
netsh winsock resetmakes WSL2 works , but also make Proxifier(use winsock) broken. In fact, it is likely that the changes made to Winsock by Proxifier or similar software caused the 0x8007273d error in wsl2.I found another solution (noLSP): https://wangyj.medium.com/the-solution-to-wsl-error-the-attempted-operation-is-not-supported-for-the-type-of-object-aa559854d1e3 This solution disable proxifier in wsl2, so they can live together.
you can fix
Error code: Wsl/Service/0x8007273dby the following steps:Steps for early version (fresh system installation or install wsl from Windows Feature):
NoLSP.exe "C:\Windows\System32\wsl.exe", it will add a proper registry.wsl --shutdown && net stop WslService && net start WslService, close all wsl terminal and reopen wsl Now, wsl2 can work well.(Alternatively) If you dont want to use Nolsp.exe binary file, you can Manually add the following items to the registry using regedit.exe.
Steps for windows store users or you once run
wsl --update(both install wsl from Windows Store):You are using wsl2 from windows store, so please specify the file path of wsl2 store app(
"C:\Program Files\WindowsApps\WSL_DIRNAME\wsl.exe") instead of defaultC:\Windows\System32\wsl.exe.Firstly, you can obtain the WSL_DIRNAME by the following instruction in cmd(admin):
you will see WSL_DIRNAME, it seems like
MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe. (different WSL_DIRNAME for different wsl2 versions.)Next steps:
NoLSP.exe "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe\wsl.exe", it will add a proper registry.NoLSP.exe "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe\wslservice.exe", it will add a proper registry. (Note: use your WSL_DIRNAME to modify the1.2.5.0_x64__8wekyb3d8bbweif you are using a different version.)wsl --shutdown && net stop WslService && net start WslService, close all wsl terminal and reopen wsl Now, wsl2 can work well. And be aware that path to WindowsApps change every time wsl update(so you will need to reconfig nolsp in the future)(Alternatively) If you dont want to use Nolsp.exe binary file, you can Manually add the following items to the registry using regedit.exe.
(Note: modify the
1.2.5.0_x64__8wekyb3d8bbweif you are using a different version. And modify the0A89E33B&3A1A96F3(yet I dont know how to get valid one if not use NoLSP.exe. so I recommand you use NoLSP.exe)wsl --updatework for meI had the same issue,
netsh winsock resetandwsl --updateworked for me.It’s really works. Thanks a lot!
I think it is sufficient just to uninstall “Windows Subsystem for Linux” (either from the Apps Settings, or perhaps instead from the Programs and Features control panel). That takes you back to the old version of WSL (Windows optional feature, not Windows Store), and everything works again.
I was really looking forward to using the new WSL2 features (especially WSLg and systemd) in Windows 10, so I’d really like to be able to update. But whenever I do update, I always have the same error when I start a distribution:
I get the same error whether I use an old distribution, or a new one created as part of the update. I’ve tried Ubuntu, Debian, and CentOS7. I’ve tried uninstalling everything (unregister all distributions, uninstall WSL App, WSL Kernal update, WSL and Virtual Machine Platform from Windows Features) and then installing from scratch with
That runs fine, until it starts the newly-installed distribution, at which point I get the same error code when it tries to set the default username.
Sorry for the long report, but I hope this makes it clear that we don’t have a fix, just a way to back out the new version.
For the record, here are the version numbers I get with the broken WSL after the update:
dunno why this solution is so damn hard to find. It is single solution that worked for me.
Thank you. This work for me too, I also have Proxifier installed on my Windows, so I think this is the proper solution/workaround. In addtion, I run
NoLSP.exe C:\Program Files\WSL\wsl.exeandNoLSP.exe C:\Program Files\WSL\wslservice.exeinstead ofNoLSP.exe "path of the WSL.exe from Microsoft Store".@ffainelli I started using WSL in 2020, and it seems the latest update of Windows 10 didn’t affect my WSL.
The notification occurs when login WSL tells me to run
wsl --update, and everything goes wrong after that.Thanks for help guys here! I run into problem Error code: Wsl/Service/0x8007273d Tried (downloading, uninstalling ) does not help much
netsh winsock reset - helped me . wsl -l - quite useful command if nothing still works you can also downgrade machine to version 1
wsl --set-version Ubuntu-18.04 1 ( for instance downgrade ubuntu version 1 wsl) wsl --set-version Ubuntu-18.04 2 ( upgrade ubuntu to version 2 wsl) Before i did winsock reset, i downgrade to version it was working 😃
This is interesting. The problems I reported before were on an ASUS laptop. I tried on another machine (Dell), and this time it worked! 😄
wsl --updateran smoothly and after that, all my distros ran fine, but now with the new features. So there must be something with my first machine that causes this error with the WSL update.Here are some differences between the two machines:
I don’t know if it relevant, but the ASUS’s CPU is not on Microsoft’s list of Intel processors supported for Windows 11, while the Dell’s CPU is. Of course both are running Windows 10, so that shouldn’t make a difference. Both CPU have the same feature set, and both work with the previous version of WSL2, so they should work the same.
Apart from the Windows version number reported above, the
wsl --versionis the same on both machines after update.Does anyone else who sees this error, have anything that matches my ASUS machine better than my Dell machine? Maybe that’ll give us a clue as to what’s going on here.