Skip to content
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

错误代码: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG #12282

Open
1 of 2 tasks
Sherry520 opened this issue Nov 16, 2024 · 4 comments
Open
1 of 2 tasks

错误代码: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG #12282

Sherry520 opened this issue Nov 16, 2024 · 4 comments

Comments

@Sherry520
Copy link

Windows Version

Microsoft Windows [版本 10.0.19045.4780]

WSL Version

2.3.26

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

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 #11697 (comment),
Then I ran wsl --update again, another error occurred:

没有注册类
错误代码: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

Diagnostic Logs

wsl-install-logs.txt

Copy link

Logs are required for review from WSL team

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.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

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.

@Sherry520
Copy link
Author

.\collect-wsl-logs.ps1

wsl --update
没有注册类
错误代码: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

WslLogs-2024-11-16_14-51-44.zip

Copy link

Diagnostic information
.wslconfig found
Detected appx version: 2.3.26.0
Detected user visible error: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

@Sherry520
Copy link
Author

By reference this method: #12278 (comment), 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

Things to note:

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 "系统类型".

Sherry520 added a commit to Sherry520/WSL that referenced this issue Nov 17, 2024
microsoft#12282 (comment) 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 "系统类型".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant