갑자기 WSL2 오류 발생 문제 해결 방법

2023. 6. 19. 15:36서버 프로그래밍

멀쩡히 잘 동작하던 Windows용 Docker Desktop 실행이 안되서 보니 WSL에 문제가 생긴 것이었다.

WSL은 물론 Docker까지 uninstall하고 다시 설치 했음에도 불구하고 같은 문제가 계속 발생한다. WSL이나 Virtual Machine Platform까지 uninstall/install을 해도 차이가 없었다.

https://gist.github.com/4wk-/889b26043f519259ab60386ca13ba91b

 

Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Clean uninstall then reinstall of WSL on Windows 10, with systemD support - README.md

gist.github.com

https://www.tenforums.com/tutorials/46769-enable-disable-windows-subsystem-linux-wsl-windows-10-a.html

https://www.tenforums.com/tutorials/164301-how-update-wsl-wsl-2-windows-10-a.html

 

How to Update from WSL to WSL 2 in Windows 10

 

www.tenforums.com

찾아보니 나와 동일한 문제가 발생하는 사람들이 있어서 해결 방법을 찾아보는데 생각보다 도움이 되는 레퍼런스가 없다.

https://github.com/microsoft/WSL/issues/4959

 

Installing any distro fails with "WslRegisterDistribution failed with error: 0x80070002 Error: 0x80070002 The system cannot find

Hi, After installing Windows 10 on my desktop, I installed the Debian distribution. Right after installation, it loaded and worked fine, however after closing the shell and re-opening it, it got st...

github.com

https://learn.microsoft.com/en-us/answers/questions/1183853/how-do-i-handle-error-reporting-for-wsl-installati

 

How do I handle error reporting for wsl installation - Microsoft Q&A

An error code occurred when installing the Linux subsystem:WslRegisterDistribution failed with error: 0x80070002 I have installed the Ubuntu subsystem before, and there is no problem with it. However, when I tried to access wsl using Windows terminal…

learn.microsoft.com

https://softwarekeep.com/help-center/fix-the-wslregisterdistribution-failed-error-with-0x80070032-code

 

Fix “WslRegisterDistribution Failed With Error 0x80070032” on Windows

If you are receiving WslRegisterDistribution failed with error: 0x800701bc, then it's a Kernel issue that can be fixed rather quickly.

softwarekeep.com

https://github.com/microsoft/WSL/issues/6062

 

WSL2: WslRegisterDistribution failed with error: 0x80070002 · Issue #6062 · microsoft/WSL

Environment Windows build number: Win32NT 10.0.19041.0 Microsoft Windows NT 10.0.19041.0 Your Distribution version: Release: 9.5 Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.4.0-1904...

github.com

https://github.com/microsoft/WSL/issues/8561

 

Failed to install Ubuntu - WslRegisterDistribution failed with error: 0x80040307 Error: 0x80040307 (null) · Issue #8561 · micr

Version PS C:\Users\swamp> cmd.exe /c ver Microsoft Windows [Version 10.0.22000.778] PS C:\Users\swamp> wsl.exe --version Версия WSL: 0.61.4.0 Версия ядра: 5.10.102.1 Версия WSLg: 1.0.39 Версия MSR...

github.com

 

온갖 방법을 다동원해도 변화 없이 에러가 발생해서, 혹시나 해서 WSL 설정 파일을 삭제하니 멀쩡하게 잘 동작한다. ㅎㅎㅎ