Questions tagged [windows-subsystem-for-linux]
Windows Subsystem for Linux (WSL) is a Windows feature that allows multiple Linux distributions and tools to run natively on Windows 10 and later.
1,521
questions
0
votes
1
answer
36
views
Using grep to search for files with a specific extension [duplicate]
I'm trying to recursively look for C Sharp files containing specific text using a bash prompt on Windows Subsystem for Linux.
If I type grep -l -i -r "public virtual List<" /mnt/c/mycode/*...
0
votes
0
answers
15
views
Connecting to X server with xming and putty: 'xterm: Xt error: Can't open display' error troubleshooting
I keep getting:
xterm: Xt error: cannot connect to X server:[:0]
error trying to run PGPLOT function. I am running xmings and putty with X11 forwarding enabled.
I have tried echo $DISPLAY and xterm, ...
0
votes
0
answers
11
views
Connecting to X server with xming and putty: 'xterm: Xt error: Can't open display' error troubleshooting
I keep getting the
xterm: Xt error: cannot connect to X server:[:0]
error trying to run PGPLOT function. I am running xmings and putty with X11 forwarding enabled.
I have tried echo $DISPLAY and ...
1
vote
1
answer
24
views
Systemd in WSL on Windows 11 is not working
I'm running a fully upgraded Windows 11 Enterprise host (version 22H2, build 22621.1702) and I have installed enabled WSL in the normal fashion (https://www.windows11.dev/ce7in/how-to-install-wsl2-and-...
0
votes
1
answer
17
views
Path edits are not persisted after shell is restarted in Ubuntu WSL
I just installed miniconda3 on Ubuntu (through wsl on Windows 10).
If I try to execute conda --version, I get an error saying that conda is not a recognized command. To solve this, I ran export PATH=/...
1
vote
1
answer
43
views
WSL not enabled in "Turn Windows features on or off"
I am on Windows 11 (22H2) Professional Edition. I enabled WSL2 by doing wsl --install. I did a test run by downloading Ubuntu 20.02 from Microsoft Store and it works perfectly.
However, the option &...
0
votes
1
answer
54
views
wsl --import and --import-in-place appear to operate, but the result is a fresh OS
I'm migrating to a new work machine. Old machine is wsl2 but apparently a slightly older version. It doesn't have -vhd flag on import or export. Both machines, before and after, show appropriate ...
0
votes
0
answers
44
views
Multiple error messages in my CLI when opening a page in Google Chrome in WSL2 (Windows Subsystem for Linux)
I am trying to run Google Chrome on the Windows Subsystem for Linux (WSL2). My Linux distribution is Ubuntu 22.04.1. I downloaded Google Chrome by following Microsoft's tutorial on how to run Linux ...
0
votes
0
answers
69
views
WSL2 unable to access internet when connecting to citrix secure access vpn
I have this issue with WSL2.0. Everytime I connect to my Citrix Secure Access VPN, my Ubuntu WSL2.0 loses internet connectivity. I cannot ping www.afr.com.au and I cannot ping 8.8.8.8.
When I run ping ...
0
votes
1
answer
118
views
How to fix WSL network was not found
ITNOA
Windows Version
Microsoft Windows [Version 10.0.22621.1702]
WSL Version
WSL version: 1.2.5.0
Are you using WSL 1 or WSL 2?
[X] WSL 2
[ ] WSL 1
Kernel Version
No response
Distro Version
Ubuntu ...
0
votes
1
answer
73
views
How to utilize all processors in WSL?
I am using HP Z6 G4 workstation. It has two processors each with 20 physical cores in it, but lscpu command on WSL only detects one processor. Due to that, I am not able to fully utilize all the ...
0
votes
1
answer
58
views
neovim sluggish on WSL
I'm using Linux at home and have to use Windows at work.
In order to simplify my life, I've installed Ubuntu on Windows using Windows Subsystem for Linux (WSL) 2. It's great, with the terminal and all ...
2
votes
0
answers
81
views
WSL distribution not registering in airgapped computer
I have been following the instructions here to try and get Windows Subsystem for Linux to work on an airgapped computer. Files are being transferred via a USB drive.
I installed Windows 11 Pro on a ...
1
vote
1
answer
42
views
How to recover accidentally deleted softlink folder(/bin, /lib,...) from ubuntu wsl2
The real directory(/bin,/lib are deleted while the real direcotries:/usr/bin,/usr/lib still exist.) but I can't go into the system anymore.I try to run command like
wsl -u root -d Ubuntu-22.04 ln -s /...
1
vote
1
answer
48
views
nvim error on :so in Ubuntu WSL2
I have Ubuntu over WSL2 and I was following this video tutorial on how to configure vim. My nvim installation didn't have the .config folder, so I created it and followed the video.
I placed an init....
0
votes
0
answers
63
views
running as administrator, but still needing elevation?
I am trying to install Ubuntu via WSL on Windows 10. I spin up a command prompt as administrator (i.e. I right click on the command prompt icon, and select Run as Administrator), and run wsl --update ...
0
votes
2
answers
165
views
Why WSL mounts at /mnt/c and not /c?
Does anyone know why Microsoft chose to mount the WSL directory on /mnt/c instead of /c?
I have seen a tutorial online on how to change it to /c, but I am afraid this change could brake something.
1
vote
0
answers
47
views
Creating directory shortcuts with WSL
I'm trying to create a shortcut to a directory using ln in WSL, so that double-clicking it opens the directory: while it works if the shortcut is created in the same disk, it creates a 0 B file if the ...
1
vote
0
answers
16
views
How to set the default application to a windows app for pdf and html files in Ubuntu running on WSL?
I wanted to know how to make Adobe Acrobat installed on my Windows 11 as the default application to open PDF files for Ubuntu running via WSL.
I installed Calibre on Ubuntu (WSL) for managing my e-...
-1
votes
1
answer
34
views
Can't access WSL via IP but via localhost
Issue: WSL is accessible via http://localhost but not via IP (eg. 127.0.0.1 or the IP supplied by wsl hostname -i)
0
votes
1
answer
43
views
w3m on WSL - Can't select text using mouse
I am using the w3m text browser through WSL, on my Windows 11 machine.
I cannot select any text (for copy/paste using the Windows clipboard) shown by w3m. Neither works on Windows Terminal nor the ...
3
votes
1
answer
152
views
Ubuntu WSL becomes completely unresponsive
I am trying to use Ubuntu WSL to build the GNU GCC 9.3.0 toolchain, and thought I managed to do do this, but then I couldn't actually use it as a kit in VSCode. I then assumed I did something wrong, ...
1
vote
1
answer
18
views
How to inject powershell computed values into bash command (ran from powershell)?
I'm trying to convert wepb images into png, using dwebp, but the parameters are from powershell:
foreach($ff in $f)
{
bash -c "dwebp $ff.name {$ff.name -replace '(.*).webp','$1.png'}"
}
...
3
votes
1
answer
250
views
Changing default ip address for WSL2 vEthernet adapter
WSL2 is used to create the 'vEthernet (WSL)' adapter with IP address 172.23.0.1 after each reboot. Worked fine so far, until our company decided to add another network on 172.23.0.0/20 and updated the ...
1
vote
0
answers
82
views
Error 0x80070005: Access Denied when running "Hyper-V Host Compute Service"
I am using Windows 11 Pro version 22H2 with OS Build 22621.1555
I have a working WSL2 but suddenly after booting up the WSL would not start. So I dig up and checked the Hyper-V services.
Apparently ...
0
votes
0
answers
26
views
Ubuntu slows down Windows Explorer
Today I've installed Ubuntu for Desktop for the first time. And right away I noticed that when I installed it, Windows Explorer has been slowed down big time.
When switching to a different Windows ...
0
votes
0
answers
17
views
Release WSL 1 imported distro space after unregistering it
Scenario
I installed some extra WSL 1 instances using wsl --import <my instance name> <destination folder> <image.tar.gz> --version 1. I want to free up space, so I decided to ...
1
vote
1
answer
277
views
How can I find my WSL "release" number (not version, not build, not kernel, not linux version)?
Windows 10 Enterprise
10.0.19044 Build 19044.2728
I'm trying to find the "version number" that corresponds with those listed here:
https://github.com/microsoft/WSL/releases
I am running WSL ...
7
votes
1
answer
480
views
wsl2 frozen (unable to run any distro). Can I recover data? Windows 11
Long story sort - WSL2 hangs forever until the system reboots while trying to perform any operation on any distribution. I've tried to play with starting/stopping LxssManager, but nothing seems to ...
0
votes
2
answers
250
views
can't launch kali-linux GUI (based on WSL 2) with a shortcut on Windows Terminal
I can't find any way to launch the kali-linux GUI with a shortcut and I've tried a lot of methods!
I don't want everytime to search for "Kali Linux" on Start, then open it, run the two ...
0
votes
0
answers
60
views
Valid Shell Script dosen't run in WSL
I have a simple shell script which runs completly fine on VM but gives me syntex error in WSL.
insert(){
read -p "Enter Name: " name
read -p "Enter Phone Number: " ...
1
vote
1
answer
49
views
WSL-Debian won't start? Lingering WSL-Debian?
Via Apps (add/remove programs), I've removed WSL. I just found Windows Subsystem Linux in the list and clicked "uninstall".
When I go to cmd and type "bash", it puts me in Debian.
...
0
votes
0
answers
96
views
Can't resolve error :The package installation failed because a version of the service exists outside of APPX packaging
I tried installing WSL after it crashed and I keep running into Error: 0x80073D27.
I use a Windows 11 (x64 Windows 11 Home Build: 22621.1485) system and had a windows subsystem for linux (WSL2) ...
0
votes
1
answer
78
views
Windows OpenSSH Server can SSH into powershell but can't ssh into bash (WSL2 Ubuntu) Question Marks Error
I'm trying to ssh from my LAN devices (phone, laptop and even the same computer) into bash.exe following Microsoft's guide on changing the default shell for OpenSSH to bash.exe. Bash in this context ...
0
votes
0
answers
14
views
Error: 0x80040326 when opening ubuntu wsl on windows 10 [duplicate]
i got this error when i'm trying to open ubuntu wsl.
Error: 0x80040326
Error code: Wsl/Service/0x80040326
I have attempted to resolve this issue by updating WSL using the following command:
> wsl -...
0
votes
0
answers
43
views
How do I write into a read-only folder on windows using ubuntu in WSL?
I've been trying to install stuff on the arcgis version of python, but because ArcGIS installs its python executable and environments inside program files, conda in ubuntu WSL throws back:
...
0
votes
0
answers
64
views
Can't convert Ubuntu distro from WSL1 to WSL2
I have installed Ubunu (Version: 22.04) on my Windows 10 (Version: 21H2, Build: 19044) but it's not converting to WSL2 after meeting all the requirements. I have already installed the latest linux ...
0
votes
3
answers
237
views
How can I fix WSL.exe sudden corruption in unknown DLL giving error 0x80040154 on Win11
I am running Windows 11 (version 22H2 build 22621.1485) and have been using a couple of Ubuntu distributions under WSL1 and WSL2 almost since they became available (Win 10 in the case of the WSL1 one)....
0
votes
0
answers
48
views
How do I show the Date Changed column in Windows 10 Explorer?
I want to preface this to say I am not asking how to show the Date Modified column. Date Changed is different, as described in that link.
Here's an example of the difference: if you move a file to ...
0
votes
0
answers
408
views
How do I mount an f2fs partitioned SD card on Windows?
Similar to this question, I tried mounting my SD card using wsl. First I installed wsl:
wsl --install
This installed ubuntu, and after a restart I ran wsl and executed the following:
sudo apt update
...
0
votes
1
answer
197
views
kex: command not found on WSL2
I have installed kali linux WSL distribution. I had also installed kali-win-kex, as mentioned in the official documentation. However when I try to run kex on the Kali terminal, it exits with the ...
140
votes
10
answers
20k
views
Ubuntu crashes on windows: 0x80040326 Wsl error
I have Ubuntu 22.04 app installed on top of Windows. It worked fine until one day it crashed and now all I get is this error code when I try to start Ubuntu on windows.
Error: 0x80040326
Error code: ...
0
votes
0
answers
51
views
home folder is read-only in ubuntu wsl
I was trying to build one of my projects, and I recently upgraded to windows 11. Does anyone have a solution? Also the rest of the file system isn't read only, just the home folder.
I tried ...
0
votes
0
answers
225
views
Why is VS Code putting "C:\Windows\System32\wsl.exe -d Ubuntu -e" in front of my tasks and how do I stop it?
I have this build task:
{
"label": "build",
"type": "shell",
"command": "C:\\Users\\m\\Desktop\\qmk\\QMK_MSYS\\usr\\...
0
votes
0
answers
115
views
Don't use tmpfs for /tmp in WSL2
I am running Ubuntu 20.04 in WSL2.
I have the problem that there is not enough space in /tmp.
It is located in tmpfs. I'd like to move it into / so that it can use the space of this much bigger ...
0
votes
0
answers
25
views
WSL: Mounted drives are all the sudden not mounted anymore
In WSL I have the problem that rarely, unexpectedly, all mounted drives are not mounted anymore. What could be the reason for this? And is there a solution for this not to happen again (I don't want ...
1
vote
0
answers
213
views
WSL2 not recognizing my BIOS' enabled virtualization option
Thus it will not start my Ubuntu distro, assuming this is why. I have been working with this distro for the past week, I have not used it for about a day. This is the error I was originally given when ...
0
votes
1
answer
147
views
Windows 10 became slower (+ weird display) after WSL2-Ubuntu install
Edit :
Okay I retried to install WSL and I finally got it. Enabling wsl/hyper-v has changed the display settings, I don't know why. It changed the resolution, and it added non-physical screens (there ...
1
vote
1
answer
239
views
How do I remove old files after set up new ubuntu distro on wsl?
I uninstalled the old Ubuntu distro and then installed the new version. But I am not if the old files were deleted or not. How do I find these files if they are still on my computer?
0
votes
1
answer
58
views
WSL2 ext4 size difference
I am using WSL2 on my Windows 10 Home. I noticed Windows is reporting that vhdx ext4 partition is 105GB on my disk. But I also have wsl2 added as network drive - and there it is reported just as 89 GB....