Open Sherry520 opened 1 day ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
.\collect-wsl-logs.ps1
wsl --update
没有注册类
错误代码: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG
By reference this method: https://github.com/microsoft/WSL/issues/12278#issuecomment-2479699777, sovled error "Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG". But for Chinese language users, additional operations are required in powershell:
中文语言用户参考以下我修改后的命令: (For other non-English users, check the corresponding language number)
# 修改界面语言为英文
chcp 437
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/triage/install-latest-wsl.ps1" -OutFile install-latest-wsl.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\install-latest-wsl.ps1
# 修改界面语言为中文
chcp 936
This error happens every time the wsl version is updated. I wonder if there is a problem with the 'wsl --update' command and if some of the code is only valid for the English language interface. The install-latest-wsl.ps1
script cannot parse the operating "System Type" '$systeminfo = & systeminfo | findstr /C:"System Type"' due to language problems. In the Chinese interface environment, "System Type" is the Chinese "系统类型".
Windows Version
Microsoft Windows [版本 10.0.19045.4780]
WSL Version
2.3.26
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
wsl --update
Expected Behavior
I expected it would update to 2.3.26 successfully.
Actual Behavior
When I updated for the first time, an error occurred:
Could not write value to key \SOFTWARE\Classes\Drive\shell\WSL
,and with a log file. Then I followed the solution as shown in https://github.com/microsoft/WSL/issues/11697#issuecomment-2168104220, Then I ranwsl --update
again, another error occurred:Diagnostic Logs
wsl-install-logs.txt