WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Error after update to 2.0.9.0, even reinstall fails: Error code: Wsl/CallMsi/E_ABORT

Open sh-at-bergnet-de opened this issue 3 years ago • 47 comments

Windows Version

Microsoft Windows [Version 10.0.19044.3693]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

WSL didn't start today, The Microsoft Store told me that an update was installed.

I tried repair, reset and deinstal + Windows Restart + new Install

Expected Behavior

WSL starts and works as it did for month.

Actual Behavior

WSL does not start,

If I start the Powershell as Admin and use wsl --status it tells me that WSL is finishing an upgrade. After a short time (~half second) it fails with (Exitcode: 1603). Error code: Wsl/CallMsi/E_ABORT

Diagnostic Logs

No response

sh-at-bergnet-de avatar Nov 16 '23 08:11 sh-at-bergnet-de

Hi I'm an AI powered bot that finds similar issues based off the issue title.

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. Thank you!

Closed similar issues:

You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Nov 16 '23 08:11 github-actions[bot]

Same issue. Even more frustrating that I didn't request any update from microsoft. Everything was working fine until I rebooted my PC.

MikolajGolowski avatar Nov 16 '23 11:11 MikolajGolowski

Also having the same issue. Completed a windows update overnight and this morning had some other issues so decided to do a complete uninstall and reinstall of WSL and Ubuntu and now my WSL is stuck in this state. Any command such as wsl --status, wsl --install, and wsl --version but I get this same message regardless.

jack-volantautonomy avatar Nov 16 '23 11:11 jack-volantautonomy

For me it went from the message above to Class not registered Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG_ after couple of restarts.

MikolajGolowski avatar Nov 16 '23 12:11 MikolajGolowski

Same issue here. My PC automatically updated today, after that I'm having this issue. In a command prompt with elevated privilegies if I run:

C:\Users\lam>wsl WSL is finishing an upgrade... Update failed (exit code: 1603). Error code: Wsl/CallMsi/E_ABORT

Even after unistalling and reinstalling it completely, I got stuck at the same state.

leonardoaraujodf avatar Nov 16 '23 15:11 leonardoaraujodf

Same issue here. None of the wsl commands are working. Even after downgrading to 2.0.6.0

CHADT10 avatar Nov 16 '23 16:11 CHADT10

Have the same problem, nothing I've tried so far has been able to fix this. Restarted my computer a couple hours ago and have since not been able to open wsl and continue working. Says I have version 2.0.9.0. Every time I try to use any wsl command, I get the same message for the past couple hours: "WSL is finishing an upgrade... Update failed (exit code: 1603). Error code: Wsl/CallMsi/E_ABORT". I literally cannot get any work done and I have an urgent deadline. :((((((

kloizzo avatar Nov 16 '23 21:11 kloizzo

I thought I will attach my logs to the issue as there is no logs available for this one: WslLogs-2023-11-16_23-23-55.zip

Also I've spotted that WslInstaller service can be manually started in task manager but the WslService doesn't react to start command image

I hope this gets resolved asap and will be given the highest priority as it blocks all of my job duties.

MikolajGolowski avatar Nov 16 '23 22:11 MikolajGolowski

I got it working on my side. The problem was resolved when I deleted the WslService from registry.

What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

MikolajGolowski avatar Nov 16 '23 23:11 MikolajGolowski

I got it working on my side. The problem was resolved when I deleted the WslService from registry.

What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

Thank you . I fixed it

thangpd1004 avatar Nov 17 '23 04:11 thangpd1004

I got it working on my side. The problem was resolved when I deleted the WslService from registry.

What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

For me, "WslService" didn't even exist. I've disabled WSL from "Turn Windows Features on or off", rebooted, enabled it, rebooted, installed WSL 2.0.8 > wsl worked. After this I've run "wsl --update", updated to 2.0.9, and still works. Feel like witchcraft, not sure which step did the trick in the end. Maybe this helps other too.

bence42 avatar Nov 17 '23 09:11 bence42

Thanks. The way @MikolajGolowski fixed it works for me too.

CHADT10 avatar Nov 17 '23 09:11 CHADT10

I got it working on my side. The problem was resolved when I deleted the WslService from registry.

What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

I have done this procedure and that fixed the problem to me. However, I lost all my data, but that's probably because I have been going through lots of different procedures, like reinstalling and messing with Windows registries to try to solve it. That on my own, I know. But I have decided to go back and use Linux VMs instead of WSL.

leonardoaraujodf avatar Nov 17 '23 14:11 leonardoaraujodf

I got it working on my side. The problem was resolved when I deleted the WslService from registry. What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

For me, "WslService" didn't even exist. I've disabled WSL from "Turn Windows Features on or off", rebooted, enabled it, rebooted, installed WSL 2.0.8 > wsl worked. After this I've run "wsl --update", updated to 2.0.9, and still works. Feel like witchcraft, not sure which step did the trick in the end. Maybe this helps other too.

When I try to downgrade, I get this error: Service 'WSL Service' (WSLService) could not be installed. Verify that you have sufficient privileges to install system services."

I have tried doing so as administrator using the command prompt terminal, but I still get the same error. There are no other users on my computer other than myself.

kloizzo avatar Nov 17 '23 15:11 kloizzo

I got it working on my side. The problem was resolved when I deleted the WslService from registry.

What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

This worked for me, I was not able to downgrade install 2.0.8.0, but 2.0.5.0 worked perfectly. This method even kept my locally saved changes I hadn't yet pushed. YOU SAVED MY WORK, THANK YOU!!!!!

kloizzo avatar Nov 17 '23 16:11 kloizzo

I got it working on my side. The problem was resolved when I deleted the WslService from registry. What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

For me, "WslService" didn't even exist. I've disabled WSL from "Turn Windows Features on or off", rebooted, enabled it, rebooted, installed WSL 2.0.8 > wsl worked. After this I've run "wsl --update", updated to 2.0.9, and still works. Feel like witchcraft, not sure which step did the trick in the end. Maybe this helps other too.

When I try to downgrade, I get this error: Service 'WSL Service' (WSLService) could not be installed. Verify that you have sufficient privileges to install system services."

I have tried doing so as administrator using the command prompt terminal, but I still get the same error. There are no other users on my computer other than myself.

I also deleted Docker, Ubuntu, etc... Before you do the same save your virtualdisk, for ubuntu it's somewhere under AppData/Local/packages/cano... {company of ubuntu} .... and so on. ext4.vhdx. I tried to open it with the 'Bereitstellen' (provide, make available, something like this in english. this feature can also be used to create a virtual diskdrive from an *.img Diskimage-File), but that doesn't work. The Recovery function of Diskinternals Linux Reader helped, but its about half speed on copying large files onto the same disk - but works. I'm currently working on my Tuxedo laptop - and it works surprisingly well despite all the applications. Only MS Office has been a problem worth mentioning today. The online apps for it have a few operating problems, for example when you want to select a table from another sheet during the data check. MS Teams works even better online with multiple accounts than the desktop app. Well, I'm currently running outside all company group policies and AD is sometimes bypassed. So it's not yet an alternative, at least in our company. But it gets better with every attempt. It's definitely worth trying whether a Linux OS as the main operating system is a better solution - even if only temporarily to bridge the gap until WSL is up and running again.

sh-at-bergnet-de avatar Nov 17 '23 16:11 sh-at-bergnet-de

I'm having a similar problem; I've noticed that no matter what command I enter, it always returns wsl update failed. So I deleted the key file ext4.vhdx and then I found that the commands worked, but of course wsl is now faulty. So I logged off all the VMs wsl --list Ubuntu docker-desktop docker-desktop-data Perform a logout: wsl --unregister Ubuntu wsl --unregister docker-desktop wsl --unregister docker-desktop-data Redownload wsl wsl --install

samluise avatar Nov 17 '23 16:11 samluise

I got it working on my side. The problem was resolved when I deleted the WslService from registry. What I did to fix WSL:

  1. Press Win+R and type "regedit" image
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Look for "WslService" -> Right click on folder icon -> Delete
  4. Restart PC
  5. Install https://github.com/microsoft/WSL/releases/tag/2.0.5

I didn't try with 2.0.9 nor any other version of WSL for now. I'm happy it works in the end. Hope it will fix the issue for you as well.

Thank you . I fixed it

Then I ran the following command: wsl --unregister Ubuntu and did all the steps from square one. Working now! :)

xxPennyxx avatar Nov 18 '23 07:11 xxPennyxx

I run WSL on a Windows 10 system and had the same issue! It worked for me to remove the app 'Windows Subsystem for Linux' from 'Settings > Apps' and install these updates from the Microsoft homepage.

grafik

Molenfeuer avatar Nov 20 '23 00:11 Molenfeuer

I run WSL on a Windows 10 system and had the same issue! It worked for me to remove the app 'Windows Subsystem for Linux' from 'Settings > Apps' and install these updates from the Microsoft homepage.

grafik

@Molenfeuer's solution worked for me also (Windows 10 Pro 22H2). 1st attempt: Uninstalled WSL and installed the Linux kernel update package. Then wsl --update, failed with the same error code as before. Uninstalled WSL and rebooted. 2nd attempt: Uninstalled WSL and installed the Linux kernel update package. Everything working, no data lost. However, I'm not confident that this will last past the next auto-update.

wsl --status: Default Distribution: Ubuntu Default Version: 2 Windows Subsystem for Linux was last updated on 20.11.2023 WSL automatic updates are on.

wsl --list: Windows Subsystem for Linux Distributions: Ubuntu (Default) docker-desktop-data docker-desktop

signalprocessor avatar Nov 20 '23 08:11 signalprocessor