Comments (15)
我也遇到了这个问题,似乎是因为WSL在修改注册表的时候遇到了一些困难
重命名报错的注册表字段,打开wsl就正常了
old:
-
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
-
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL
-
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL
new:
-
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL_bak
-
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL_bak
-
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL_bak
from wsl.
非常感谢!另外做了测试,相关注册表文件不能删除😂
我也遇到了这个问题,似乎是因为WSL在修改注册表的时候遇到了一些困难
重命名报错的注册表字段,打开wsl就正常了
old:
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL
new:
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL_bak
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL_bak
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL_bak
from wsl.
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 issues
Please 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:
- Wsl/0x80070020 (#9802), similarity score: 0.78
- after wsl --update: wsl and wslconfig /list return "%1 is not a valid Win32-Application." both give errorcode 0x800700c1 my problem (#9924), similarity score: 0.77
- 2.0.1.0 Unable to start wsl, unable to upgrade wsl, unable to downgrade wsl (#10582), similarity score: 0.77
- wsl --install -d ubuntu Error Code: 0x80070520 (#10352), similarity score: 0.75
- Can't update WSL2 (#10527), similarity score: 0.74
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Diagnostic information
.wslconfig found
Detected appx version: 2.2.4.0
Found no WSL traces in the logs
from wsl.
十分感谢,可以正常使用了
from wsl.
非常感谢!另外做了测试,相关注册表文件不能删除😂
我也遇到了这个问题,似乎是因为WSL在修改注册表的时候遇到了一些困难
重命名报错的注册表字段,打开wsl就正常了
old:
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL
new:
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL_bak
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL_bak
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL_bak
你好,请问你所说的“相关注册表文件不能删除”具体是什么情况?
我在重命名这三项WSL为WSL_bak后,成功更新wsl并刷新注册表,发现安装过程中重新创建了这三项名为WSL的注册表项,并且删除WSL_bak后并不会导致wsl再次启动时报错。
我的猜测是由于WSL的某次版本更新后注册表项的值的类型或者相关元数据发生变化(我没有仔细观看WSL和WSL_bak项的差别)且没有兼容性访问或者迁移措施,所以在安装时直接读取已存在的WSL项会由于数据元数据不匹配导致出错。
这意味着重命名为WSL_bak行为更像是删除WSL项并让WSL重新创建注册表的行为,但是这个行为似乎和你说的“相关注册表文件不能删除”不同。我现在已经删除了所有WSL_bak且没有备份,无法再次复现,所以想问问你所说的详情是什么。
from wsl.
说起来这个bug是**区特供的吗,似乎遇到问题的都是中文用户
from wsl.
我也遇到了这个问题,似乎是因为WSL在修改注册表的时候遇到了一些困难
重命名报错的注册表字段,打开wsl就正常了
old:
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL
new:
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL_bak
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL_bak
- 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL_bak
重命名失败:计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
但是不影响,重命名后面2个即可。
from wsl.
前两天修改了一下右键快捷方式, 不知道是不是这导致的
from wsl.
It works!
from wsl.
If you get a 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.
from wsl.
Related Issues (20)
- systemd Not Booting Up in WSL 2 Despite Configuration in wsl.conf HOT 8
- Error 0x8007019e and Wsl/CallMsi/0x80070424 and Wsl/REGDB_E_CLASSNOTREG HOT 2
- WSL failed to reopen after run wsl --shutdown HOT 5
- WSL2 can't receive jumbo frames when using a VPN with a 9000 MTU and mirrored network. HOT 4
- Failed conversion of Ubuntu from version 1 to version 2 HOT 5
- Ability to configure domain name from wsl.conf HOT 3
- systemd can't see the files if the disk is mounted to WSL before WSL starts. HOT 2
- systemd Not Booting Up in WSL 2 Despite Configuration in wsl.conf HOT 11
- bluetooth HOT 1
- Windows 11 - WSL2 takes 10+ minutes to launch HOT 3
- WSL no internet connection / DNS issues HOT 10
- Failed to update from 23.10 to 24.04 on WSL2, by 2024.6.13 HOT 2
- wsl2 更新失败(退出代码: 1603)。 Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE HOT 5
- GUI apps via VcXsrv not starting from 14 Jun 2024 HOT 9
- Cannot uninstall WSL any more HOT 6
- wsl high latency HOT 2
- Cannot start WSL after 2 weeks every time HOT 1
- cannot ssh into wsl2, system feezes HOT 3
- Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.