-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket.timeout: timed out when attempting to run any command with wsl-sudo in WSL2 #4
Comments
I think your current user is not admin. I have the same problem when elevating from non-admin user... |
@highTowerSU, when you say current user, do you mean the Linux user or the Windows user? I seem to be having a similar problem. |
I think of was the underlying Win User, but i am unsere... |
The error occurs when you run python wsl-sudo.py "/mnt/c/Program Files (x86)/Vim/vim82/gvim.exe" (I know vim 9 is out.) |
I have the same issue on WSL2 Ubuntu (22.04). I tried applying the changes from this PR that @fenjen mentioned in their comment, but it did not help. Another thing to mention is that my Windows OS has multiple users and the default one is not an Administrator, so when I try to run the |
@spector32 Is the user running the WSL instance an administrator? If not, the login window that pops up (with a pre-filled administrator account asking for a password) is what I would expect. |
I'm running WSL2 Ubuntu 20.04 on Windows 11. This is a fresh WSL2 installation with barely nothing else installed.
I did a fresh checkout of the current master, which should have #2 merged in. When I run the script, using any command as argument, I get a timeout with the following stack trace:
Any clues as what might be causing this?
The text was updated successfully, but these errors were encountered: