WSL: Error: 0x800703fa Illegal operation attempted on a registry key that has been marked for deletion

  • Your Windows build number: Microsoft Windows [Version 10.0.17134.48]

  • What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots)

turn on laptop and open ubuntu and see error!!!

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800703fa
Error: 0x800703fa Illegal operation attempted on a registry key that has been marked for deletion.

Press any key to continue...

this problem fix by reboot and restart Lxss service! but why? why April update has some big bugs on windows and wsl!!!

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 27 (6 by maintainers)

Most upvoted comments

As mentioned in #2576 was solved by restarting LxssManager service in Windows Services. It’s a dup.

Confirmed restarting LxssManager resolved this issue for me. If finding the service is a pain, run the following in an command prompt as an administrator: net stop "LxssManager" & sc start "LxssManager"

@xtoolkit make a batch file with these commands:

@echo off
net stop LxssManager
sc start LxssManager
pause

and run it as administrator when you open PC.

Or make the Lxss Manager Service ‘Automatic startup’. Run this command as administrator:

reg add "HKLM\SYSTEM\CurrentControlSet\Services\LxssManager" /T REG_DWORD /V "Start" /D 2 /F

My corrupted shell was on a non-admin account. After reading these posts, I signed on as Administrator and started an Ubuntu shell. First message referenced a file re-format, after which the shell instance funtioned normally.
However, I still terminated Ubuntu from the Apps/Services, then signed back on to my non-Admin account and opened Ubuntu again. All good.

@Biswa96 this code is work, but when restart windows wsl error back!!

Disable fast boot.

This thread is very long so I’ll repeat myself:

Two ways to resolve this:

  1. Disable fast boot
  2. Manually stop / start the lxssmanager service

sc stop lxssmanager sc start lxssmanager

I just stopped the service, and changed the startup type to manual, the problem never came back after that.

Run with administrator will work.