Git Product home page Git Product logo

Comments (15)

NaroZeol avatar NaroZeol commented on July 2, 2024 21

我也遇到了这个问题,似乎是因为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

从这里得到的帮助https://answers.microsoft.com/zh-hans/windows/forum/all/wsl-install/cd18be19-e2fb-4173-82ad-c5a7600fc18e

from wsl.

STRUDYGRASS avatar STRUDYGRASS commented on July 2, 2024 1

非常感谢!另外做了测试,相关注册表文件不能删除😂

我也遇到了这个问题,似乎是因为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

从这里得到的帮助https://answers.microsoft.com/zh-hans/windows/forum/all/wsl-install/cd18be19-e2fb-4173-82ad-c5a7600fc18e

from wsl.

github-actions avatar github-actions commented on July 2, 2024

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:

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.

JasonXJL avatar JasonXJL commented on July 2, 2024

十分感谢,可以正常使用了

from wsl.

dangjinghao avatar dangjinghao commented on July 2, 2024

非常感谢!另外做了测试,相关注册表文件不能删除😂

我也遇到了这个问题,似乎是因为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

从这里得到的帮助https://answers.microsoft.com/zh-hans/windows/forum/all/wsl-install/cd18be19-e2fb-4173-82ad-c5a7600fc18e

你好,请问你所说的“相关注册表文件不能删除”具体是什么情况?

我在重命名这三项WSL为WSL_bak后,成功更新wsl并刷新注册表,发现安装过程中重新创建了这三项名为WSL的注册表项,并且删除WSL_bak后并不会导致wsl再次启动时报错。

我的猜测是由于WSL的某次版本更新后注册表项的值的类型或者相关元数据发生变化(我没有仔细观看WSL和WSL_bak项的差别)且没有兼容性访问或者迁移措施,所以在安装时直接读取已存在的WSL项会由于数据元数据不匹配导致出错。

这意味着重命名为WSL_bak行为更像是删除WSL项并让WSL重新创建注册表的行为,但是这个行为似乎和你说的“相关注册表文件不能删除”不同。我现在已经删除了所有WSL_bak且没有备份,无法再次复现,所以想问问你所说的详情是什么。

from wsl.

NaroZeol avatar NaroZeol commented on July 2, 2024

说起来这个bug是**区特供的吗,似乎遇到问题的都是中文用户

from wsl.

shenzhigang avatar shenzhigang commented on July 2, 2024

我也遇到了这个问题,似乎是因为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

从这里得到的帮助https://answers.microsoft.com/zh-hans/windows/forum/all/wsl-install/cd18be19-e2fb-4173-82ad-c5a7600fc18e

重命名失败:计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
但是不影响,重命名后面2个即可。
image

from wsl.

0n2ynu avatar 0n2ynu commented on July 2, 2024

前两天修改了一下右键快捷方式, 不知道是不是这导致的

from wsl.

ke4nec avatar ke4nec commented on July 2, 2024

It works!

from wsl.

wh1tor avatar wh1tor commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.