Skip to content
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

Cannot access \\wsl$\Ubuntu from explorer #7061

Closed
1 of 2 tasks
darrensimons opened this issue Jun 14, 2021 · 8 comments
Closed
1 of 2 tasks

Cannot access \\wsl$\Ubuntu from explorer #7061

darrensimons opened this issue Jun 14, 2021 · 8 comments

Comments

@darrensimons
Copy link

darrensimons commented Jun 14, 2021

Windows Build Number

10.0.19403.1052

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.4.72-microsoft-standard-WSL2

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

Load Ubuntu VM via WSL
Type wsl -l from command line to confirm Ubuntu (Default) is the correct name of my VM

Either:
(1) From From Explorer chose \wsl$ and double click Ubuntu
=> Error msg: You might not have permission to use this network resource.... Attempt to access invalid address

or (2) From From Explorer chose \wsl$\Ubuntu
=> Error msg: You might not have permission to use this network resource.... Attempt to access invalid address

or (3) from cmd.exe type "dir \wsl$\Ubuntu"
=> Error: The system cannot find the path specified.
Note: I'm not 100% sure #3 should work anyway, but the first two should.

I can map the drive though so setting U: drive to be Ubuntu from wsl$ works fine and I see the full directory when I type dir u:

I have read lots of articles about this and tried all suggestions but am stumped. I've tried reinstalling Ubuntu, I've also tried reinstalling WSL (uninstall/reboot/install(. The only thing I wondered was that I was running WSL 1 which I then updated to WSL 2. Could that be the issue?

It's really frustrating - I have it working fine on a different PC when I installed WSL2.

Expected Behavior

Should show \wsl$\Ubuntu directory

(need this to link in vscode from Linux)

Actual Behavior

error message - You might not have permission to use this network resource.... Attempt to access invalid address

Diagnostic Logs

No response

@therealkenc
Copy link
Collaborator

Continuation #4260.

It's really frustrating - I have it working fine on a different PC when I installed WSL2.

You've labeled this WSL1 in the OP but given the kernel version cited trust this is WSL2. [If you are on WSL1 on this PC, try a differently-named instance of WSL2 and see if the problem persists on the failing PC. You can install a fresh WSL2 instance by doing a wsl.exe --set-default-version 2 and then installing a new distro from the Store.]

Please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking or AV software that has been installed on Windows if applicable.

@darrensimons
Copy link
Author

Sorry, my mistake when creating the ticket. I do indeed mean WSL2. I have amended the ticket accordingly.

There's no third-party networking installed but I am running Avast Free Edition (Program Ver. 21.4.2464 - build 21.4.6266.670; virus builds 210614-4). I tried disabling AV then restarted WSL but it made no difference.

Feedback link here: https://aka.ms/AAcw8yk <-- I hope this is the format you wanted. Thanks

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 25, 2021

Thanks for reporting this @darrensimons.
I don't see any logs in the feedback hub link.

Can you try to to follow the 'record wsl logs manually section' and share the logs ?

@darrensimons
Copy link
Author

@OneBlue I'm having issues following the instructions described - specifically when I type wpr -start wsl.wprp -filemode at an admin command prompt I get the error message "Error code: 0xc00cee4f"

I did try to re-submit the screenshot feedback via Feedback Hub though with the recorded screenshare. Did that work? Can you see that?

@ghost ghost removed the needs-author-feedback label Aug 30, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Sep 1, 2021

This error code looks like the .wprp file is corrupted, can you make sure you downloaded [the raw version of the file][https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/wsl.wprp) ?

@darrensimons
Copy link
Author

Apologies for that. I've done as requested and attached that here as a ZIP.
wsl.zip

@ghost ghost removed the needs-author-feedback label Sep 1, 2021
@darrensimons
Copy link
Author

I don't know if this helps but I upgraded from Windows 10 Home to Windows 11 home this weekend and the issue is resolved.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 11, 2022

Glad to hear this. We did solve multiple issues around \wsl$ for Windows 11 so that was probably it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants