WSL: when installing with wsl --install, linux icon in windows explorer is missing

Windows Version

Microsoft Windows (Version 10.0.22631.2715)

WSL Version

2.0.12.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

Install Windows Subsystem for Linux using wsl --install (fresh install). Linux icon does not show up in Windows Explorer. Not even after reboot. Wsl itself working well.

To work around this, go to add windows feature from Settings and check the Windows Subsystem for Linux checkbox, reboot and then it showed up.

Expected Behavior

Linux icon should show up in Windows Explorer side bar after running wsl --install.

Actual Behavior

No linux icon.

Diagnostic Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 6
  • Comments: 28

Most upvoted comments

This problem is happening again in WSL2 + Windows 11, wsl -v output:

WSL version: 2.3.26.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.2605

Image

Guide to get the icon in windows 11, but the process should be somewhat similar to windows 10 as well.

  1. Click on the following icon and choose “Add a network location” image
  2. Choose a custom network location and add “\wsl.localhost<distroname>” e.g., “\wsl.localhost\Debian”. image And the network location will appear in the file explorer image

Hi I’m an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Same issue after Windows Update. I have solved it with:

  • Go to Start Menu and then WSL Settings.
  • Change something on the settings (for example, Swap size).
  • Close window.
  • Restart Windows.

Fixed in 2.2.1

I also got the same problem when update WSL through Microsoft Store recently too.

image

I installed WSL2 via the Windows Store and I just coincidentally noticed that the “Linux” item was missing from the Explorer sidebar. I could’ve sworn it was there before, for the last year or so I only ever installed WSL2 via the Windows Store.

However, I can confirm that the item is displayed after installing the Windows Subsystem for Linux Windows Feature.

Also, it doesn’t seem to affect the ability to do stuff like open an Explorer window in a WSL filesystem (i.e. \\wsl.localhost\Alpine_Linux\root paths), it truly appears to only be about the clickable entry in the sidebar.

This might be the same issue as https://github.com/microsoft/WSL/issues/11026

See my comment on this issue: https://github.com/microsoft/WSL/issues/11026#issuecomment-1956749485

I can confirm this issue (missing Linux shortcuts in explorer) exists for me in some WSL2 versions. I tested the few latest ones:

The issue persists in versions: 2.0.15, 2.1.0, 2.1.3, 2.1.4 However, the issue does not exist in versions 2.0.14 and 2.1.1.

Downgrading from WSL 2.1.3 to 2.1.1 immediately makes the shortcuts appear in the explorer (without restarting Windows or the explorer).

System info: Windows 11 build: 22631.3155 WSL kernel for both WSL 2.1.1 and 2.1.3: 5.15.146.1-2

@uishon @fitrarhm @WinkelCode @trolledbypro As a workaround, you can try installing version 2.1.1 from here: https://github.com/microsoft/WSL/releases/tag/2.1.1 (simply download wsl.2.1.1.0.x64.msi and install it) If it works for you, a short feedback comment may help solving this issue in future releases 😃

Happening to me also on this machine:

WSL version: 2.3.26.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.2894

Not happening to me on this machine:

WSL version: 2.3.26.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26120.2992

Same, my Linux icon was disappeared

WSL version: 2.3.26.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.2894