microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.34k stars 814 forks source link

wsl2 更新失败(退出代码: 1603)。 Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE #11695

Closed wangjiangmin closed 3 months ago

wangjiangmin commented 3 months ago

Windows Version

22631.3737

WSL Version

2.2.4

Are you using WSL 1 or WSL 2?

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

  1. install Microsoft.WSL_2.2.4.0_x64_ARM64.msixbundle
  2. start wsl

Expected Behavior

enter ubuntu

Actual Behavior

WSL 正在完成升级... Warning 1946.Property 'System.AppUserModel.ID' for shortcut 'WSL.lnk' could not be set. Warning 1946.Property 'System.AppUserModel.ToastActivatorCLSID' for shortcut 'WSL.lnk' could not be set. Could not write value to key \SOFTWARE\Classes\Directory\shell\WSL. Verify that you have sufficient access to that key, or contact your support personnel. 更新失败(退出代码: 1603)。 Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE

Diagnostic Logs

No response

github-actions[bot] commented 3 months ago

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](https://github.com/Microsoft/WSL/blob/master/diagnostics/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 scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. [Click here for more info on logging](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) 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.

NaroZeol commented 3 months ago

https://github.com/microsoft/WSL/issues/11697#issuecomment-2168104220

rurumuri commented 3 months ago

Same problem. Maybe Windows update KB5039212 damaged it.

Everytime I execute wsl commands in PS, it shows

WSL 正在完成升级...
Warning 1946.Property 'System.AppUserModel.ID' for shortcut 'WSL.lnk' could not be set.
Warning 1946.Property 'System.AppUserModel.ToastActivatorCLSID' for shortcut 'WSL.lnk' could not be set.
Could not write value  to key \SOFTWARE\Classes\Directory\shell\WSL.   Verify that you have sufficient access to that key, or contact your support personnel.
更新失败(退出代码: 1603)。
Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE

and when I enter a wsl distribution, it shows

WSL 正在完成升级...
Could not write value  to key \SOFTWARE\Classes\Directory\shell\WSL.   Verify that you have sufficient access to that key, or contact your support personnel.
更新失败(退出代码: 1603)。
Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE
rurumuri commented 3 months ago

#11697 (comment)

It works, thanks a lot!

jark006 commented 3 months ago

#11697 (comment)

有效,谢谢

wangjiangmin commented 3 months ago

#11697 (comment)

It works, thanks !