-
Notifications
You must be signed in to change notification settings - Fork 847
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
Could not write value to key \SOFTWARE\Classes\Drive\shell\WSL #11697
Comments
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
Diagnostic information
|
我也遇到了这个问题,似乎是因为WSL在修改注册表的时候遇到了一些困难 重命名报错的注册表字段,打开wsl就正常了 old:
new:
|
十分感谢,可以正常使用了 |
非常感谢!另外做了测试,相关注册表文件不能删除😂
|
你好,请问你所说的“相关注册表文件不能删除”具体是什么情况? 我在重命名这三项WSL为WSL_bak后,成功更新wsl并刷新注册表,发现安装过程中重新创建了这三项名为WSL的注册表项,并且删除WSL_bak后并不会导致wsl再次启动时报错。 我的猜测是由于WSL的某次版本更新后注册表项的值的类型或者相关元数据发生变化(我没有仔细观看WSL和WSL_bak项的差别)且没有兼容性访问或者迁移措施,所以在安装时直接读取已存在的WSL项会由于数据元数据不匹配导致出错。 这意味着重命名为WSL_bak行为更像是删除WSL项并让WSL重新创建注册表的行为,但是这个行为似乎和你说的“相关注册表文件不能删除”不同。我现在已经删除了所有WSL_bak且没有备份,无法再次复现,所以想问问你所说的详情是什么。 |
说起来这个bug是中国区特供的吗,似乎遇到问题的都是中文用户 |
前两天修改了一下右键快捷方式, 不知道是不是这导致的 |
It works! |
If you get an error about access denied when edit the reg, you can try to do some LPE like this project https[:]//github.com/fafalone/RunAsTrustedInstaller to get a TrustedInstaller token then startup a regedit. BTW you should check any project to ensure they are safe. |
你好,我现在重新检查了注册表,发现的确新建了相关注册信息,但发生问题当天并非如此。 |
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
Diagnostic information
|
并不吧,我是在海外的英文系统也遇到这个问题。 |
谢谢! |
我凑 兄弟 太强了. 十分救命了 |
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL |
you are my lord, thanks much quite a lot |
天才,今天突然docker无法用了,大家记得改了之后重启一下,我刚开始没重启失败了。 |
有效,非常感谢,我遇到的问题是WslRegisterDistribution failed with error:......,同样可以用你的回答解决 |
Thank you for the helpful tips! I encountered exactly this error while deleting the keys. |
我用修改的wsl名字,得到了解决,谢谢! |
我也改名后备了份直接删除,不过我这里测试的是没问题 |
修改注册表文件夹名的方法能解决问题,谢谢 |
你的猜想是对的,修改 微软在升级后确保兼容性这方面确实做的不好 |
我遇到了同样的问题,按照操作,之后系统里也有了两份键值的注册表。你说的原因是正确的,之前一份的键值属性导致了操作不能被创建或者改动,所以就出现了错误,但是重命名或删除之后,重建的注册表 wsl 就有了权限。 |
有用,神了 |
I SOLVED IT!!! I'm not a Chinese user and I had the same issue. I installed the latest package release here, and even the installer was throwing an error about not being able to write to the key, and as I was running it I renamed all the keys and clicked on "retry". But I guess, it would have worked if I had just renamed them first. Windows 10 Enterprise Version 22H2, OS build 19045.4412, English (United Kingdom) |
according to this method, it doesn't work first time. but it works after shut down and start. |
有用!十分推荐,或者下面的修改权限也可以! |
微软的这个坑挖的够深的,害我折腾了一整天 |
想问问这个具体原因是啥? |
我也运行过可以修改右键菜单的工具,新API和旧API的右键菜单工具都运行过,但是我什么都没有改 |
可以不用重命名/删除,只需把注册表里三个 |
我遇到同样的问题,但是注册表下面这三个路径没有wsl
|
me too |
Windows Version
Microsoft Windows [Version 10.0.22631.3737]
WSL Version
0.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
wsl.exe --version
.Expected Behavior
All functions can be used, including
Docker Desktop
.Actual Behavior
All functions cannot be used, including
Docker Desktop
.Diagnostic Logs
WslLogs-2024-06-14_19-27-11.zip
The text was updated successfully, but these errors were encountered: