Questions tagged [wsl2]

WSL2 is the second release of the Windows Subsystem for Linux, a feature of Windows which enables multiple Linux distributions and tools to run natively in Windows.

WSL2 is the second release of the Windows Subsystem for Linux, a feature of Windows which enables multiple Linux distributions and tools to run natively in Windows.

Super User is often the most appropriate Stack Exchange site for WSL2 questions, especially if you think your question is mostly related to Windows functionality. However, also consider whether some other Stack Exchange sites may be a better fit for your question:

  • If your question involves development on WSL2, or the use of development tools with WSL2, the programming expertise on Stack Overflow may be warranted.

  • If you think your question may be more related to Linux functionality, you may find the Unix & Linux Stack a better fit.

  • If you are using an Ubuntu distribution on WSL, and you think your question may be unique to Ubuntu functionality, then Ask Ubuntu provides access to Ubuntu expertise that may be able to help.

If you just aren't sure, then feel free to go ahead and ask here on Super User.

In all cases, it's recommended that you mention WSL2 in your question. Since the WSL2 and windows-subsystem-for-linux tags are sometimes used incorrectly, it is helpful to confirm that you are actually asking a WSL-related question.

We would also recommend confirming that you are using WSL2 by executing wsl -l -v from PowerShell or CMD. Often an older WSL1 distribution has not been updated to WSL2.

We also recommend that you include the version/build of Windows you are using in your question.

615 questions
6
votes
1 answer

How to refresh System information on wsl2

This is part of the screen info when I open terminal of wsl2. As the time indicates it is 23 days before. How to refresh this info? System information as of Sat Jul 30 22:52:35 CST 2022 System load: 0.107421875 Usage of…
Jiu hong
  • 187
5
votes
2 answers

Remove WSL2 files after distro uninstall on Windows 11

I've installed Ububtu-20.04 on my Windows 11 machine using WSL2. I've recently uninstalled it and installed Ubuntu-22.04 to replace it. When I go on My PC to Linux I still see a share of Ubuntu-20.04 with all the files inside of it. How can I get…
4
votes
1 answer

Why are .exe very slow when run from WSL2 filesystem?

I'm using Ubuntu 18.04 on WSL2 and when I run an .exe from the Windows file system, it executes normally. But when I copy the .exe to the Linux file system it is excruciatingly slow. See example below: (18.04)geert@SEA-WIN10-02:~$ time…
NZD
  • 2,630
4
votes
1 answer

Does WSL2 docker need windows docker desktop?

I tried to search some web page and found they teach you have to install windows docker desktop. I confuse about it , because MS said WSL2 is based on Linux Core so it should not need windows desktop theoretically. Docker Desktop WSL 2 backend |…
kdm.J
  • 107
3
votes
3 answers

Windows shortcut to map disk with sshfs

I don't want to permanently map remote disks from production systems, I want to click on shortcut to map the disk and than click another shortcut to unmap it. The sshfs works fine when used from Bash. However when I run the command from shortcut…
jan_bar
  • 33
2
votes
1 answer

Cannot open graphical applications in WSL2 on Arch, but works on Ubuntu

I am trying to run a program with a GUI on Arch, but it complains that it cannot initialize GTK. The same program works perfectly fine on Ubuntu. Both distributions have DISPLAY set to :0. Graphical programs were working as expected a few days ago,…
2
votes
1 answer

WSL2 internet and ping not working

What can I do when internet is not working in ubuntu WSL (Windows 10)? I can't ping any IPs or domains from WSL, with 100% packet loss. curl google.com also doesn't work. Domain name resolution with nslookup works with the default nameserver in…
1
vote
2 answers

Can't update WSL to version 2

I have two Windows 10 machines. The first machine had WSL version 1 installed and I was able to successfully update it version 2 with the following commands in PowerShell: wsl --update wsl --shutdown wsl --set-version Ubuntu-22.04 2 But when I…
Dmitriano
  • 427
  • 1
  • 5
  • 18
1
vote
1 answer

Why does aws-okta add fail?

I am trying to run aws-okta add on WSL2, but it fails because org.freedesktop.DBus.Properties isn't define: $ aws-okta --debug add Okta organization: company Okta region ([us], emea, preview): Okta domain [company.okta.com]: Okta username:…
0x90
  • 322
0
votes
2 answers

In WSL2 how can I, from the Windows side, access my \\wsl.localhost\Ubuntu as case-insensitive?

So I'm running an app on the Windows side and I want that app to access a Linux file. I see all the Linux files there at: \\wsl.localhost\Ubuntu But the Windows app is going to use either case for any file because it's programmed for case…
Joe C
  • 662
0
votes
0 answers

wsl2: access denied when trying to login into distro (fixed with wsl shutdown)

I have an ubuntu distro in WSL 2. Actually the problem seems to begin after I moved disto data to another drive (using lxrunoffline). So after system start, I try to log in to default distro (using bash command): > bash Access is denied. Get the…
0
votes
1 answer

Using the "wsl --shutdown" command crashes windows

I found a few commands like configuring networking or optimizing the virtual disk that require shutting down WSL, but every time I do that via "wsl --shutdown", it causes Windows 10 to lock up. There isn't a blue screen, it just freezes until…
theSparky
  • 111
0
votes
0 answers

How to change default disk WSL2 uses to store images?

Here is many answers how to move existent image to another drive, but I couldn't find how to set another drive as default for new image installations (install != import). Is it possible?
rzlvmp
  • 216
0
votes
1 answer

Curious Error when mounting M.2 nvme ssd ext4 partition on WSL 2. Wsl/Service/AttachDisk/0x80070032

I am trying to mount ext4 partitions from M2 slot ssd on wsl 2. I am getting error Wsl/Service/AttachDisk/0x80070032. The disk is listed below under model name CT500P2SSD8. I am currently booted on on CT1000P3SSD8. Has anyone else faced this…