When trying to set the default version to 2 (I'm using windows 11) I got the error 0xffffffff
as follows:
PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2 Conversion in progress, this may take a few minutes.
Error: 0xffffffff
I've tried many solutions given On GitHub and some other places so far, but it didn't make any difference and got the error: 0xffffffff
again.
I've used This Tutorial on Youtube to install WSL2
and again got the same error!
And also when turning on my pc, after seconds, I will run into an error saying:
An unexpected error occurred
Failed to deploy distro docker-desktop to C:\Users\HP\AppData\Local\Docker\wsl\distro: : Error: 0xffffffff
Some WSL system related access rights are not set correctly. This sometimes happens after waking the computer or not being connected to your domain/active directory. Please try to reboot the computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop.
The error above is because of the Docker
app, and all these issues I'm struggling with are due to that I wanted to use and run Docker
on my windows!
Can anyone help?