Questions tagged [windows-subsystem-for-linux]
Use this tag for questions about the Windows Subsystem for Linux, including Bash on Ubuntu on Windows and other distributions running under WSL.
463 questions
7 votes
3 answers
1k views
Launching windows commandline commands within a WSL, what's the story?
In this Superuser question, I'm looking for a way to make the following work: find DLL.dll -exec /mnt/c/.../Windows_command {} \; Yes, I'm indeed trying to launch a Windows command inside a WSL. To ...
0 votes
0 answers
188 views
When opening my wsl terminal it give an error stating "wsl: Failed to start the systemd user session for 'linux'. See journalctl for more details."
I am running Ubuntu 24.04.3 LTS in Windows Subsystem For Linux. When I start my laptop and then open my wsl Terminal it give an error which state: wsl: Failed to start the systemd user session for '...
0 votes
1 answer
102 views
WSL2 not connecting to internet
First: This is not a duplicate --> I have read and tried about a thousand different answers to similar problems today, but none of them seem to work in my particular case. Also: I originally posed ...
4 votes
1 answer
221 views
sshfs to a host requiring OTP pw
In my environment I have: a Jenkins build server that I can ssh into using private/public keys. I can use sshfs to mount its file system on my local pc (running WSL on Windows 11, ugh but I can't ...
0 votes
1 answer
115 views
Locked out of WSL: forgot user password and can’t switch to root
TL;DR: Forgot my password on WSL and can’t switch to root. So, I did it, I locked myself out. I’m using WSL on Windows 11. I just installed this, set up a user, and didn’t think much of it. I was just ...
2 votes
5 answers
893 views
How to use a "grep" result as an input of another grep, resulting in multiple lines?
I have built a Visual Studio solution, containing 92 projects. While building them, I get the following line for every one of them: 10>------ Rebuild All started: Project: HostLinkSw, Configuration:...
3 votes
5 answers
1k views
Determine which are P-cores/E-cores (Intel CPU)
I have a Intel Core Ultra 5 135U processor with heterogenous cores (performance, power-efficient and low power efficient). How do I check which processor is which? I tried to see /proc/cpuinfo, but ...
0 votes
0 answers
76 views
Can't install python via pyenv
I already have Python installed on my WSL2, and its version is [Python 3.12.9 | packaged by conda-forge | (main, Mar 4 2025, 22:48:41) [GCC 13.3.0] on linux]. I tried to install different versions of ...
0 votes
0 answers
90 views
Rocky Linux 9 under WSL 2 cannot see Nvidia GPU
I am using a Dell Precision 3561, which has an Nvidia T1200 GPU. I would like to be able to use my GPU for hardware-accelerated graphics under WSL 2, with Rocky 9 as the OS. From what I understand ...
1 vote
1 answer
145 views
Unable to resolve host error when using sudo in Debian WSL
I was trying to update my packages sudo apt update; sudo apt upgrade on a newly created WSL Debian instance but all of the requests to get new repositories failed with this error. sudo: unable to ...
0 votes
0 answers
79 views
Error When Running an AppImage on Arch WSL
I have Arch WSL2 set up on my Windows 11 machine and try to run an application named Avogadro by using AppImage method without FUSE package, in which you extract your AppImage file with --appimage-...
1 vote
1 answer
129 views
Issue with `BASH_LINENO` in bash function which get debugging information
In Visual Code, on Windows 10, I'm trying to create a function for my .sh project (which I run with Git Bash), which will report errors to the console in case user, let's say, provides fewer or more ...
7 votes
2 answers
1k views
My Ubuntu Linux home directory is /home/ls. Why is it "ls" and not my user name?
I have installed Ubuntu Linux under WSL on my Windows 11 PC. I established a username during the installation, perdiem. When everything was up and running, I cd'ed to ~, and the directory I ended up ...
2 votes
0 answers
112 views
WSL2 Ubuntu somehow adds quotes around WSL related environment variables
When I do env or printenv I get a bunch of environment variables that has some weirdness associated with them. See below on the top part of the list and you will see a lot of quoted strings. These I ...
0 votes
1 answer
134 views
how can I run a crontab with a particular user's full environment variables?
Hello can you please help? I am running a script in WSL that requires the auto loaded host variables to be present when the crontab runs it runs when I am at the user log in however not when I am ...