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.
460 questions
4
votes
1
answer
182
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 ...
2
votes
4
answers
839
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:...
0
votes
0
answers
66
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 ...
1
vote
1
answer
111
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 ...
1
vote
1
answer
100
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 ...
2
votes
0
answers
97
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 ...
2
votes
0
answers
156
views
tmux disconnects when disconnecting from ssh in WSL
I have a windows server running WSL, such that when I connect via SSH (openssh) i'm automatically logged into wsl (which I've set up from ssh configs in windows).
In WSL I tried using tmux but after ...
0
votes
0
answers
46
views
digikam stopped working in the last week. F40 on WSLg on Win10
I recently installed digikam on a WSL Fedora instance on my Win10 home desktop. It ran beautifully for a few days - long enough to get my entire collection of 100,000 images scanned and indexed. But ...
0
votes
0
answers
113
views
Sub-process /usr/bin/dpkg returned an error code (1) in WSL
sudo apt update && sudo apt upgrade -y
Hit:1 http://http.kali.org/kali kali-last-snapshot InRelease
All packages are up to date.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not ...
0
votes
2
answers
958
views
Windows PATH sometimes not loaded into wsl PATH
I'm using Arch linux in WSL (yuk7/archWSL). Info pasted at the bottom of this question.
Most of the time, I can run Windows programs from a WSL shell with no problems. Take, for example, explorer.exe ....
2
votes
0
answers
114
views
Why do I have 2 bash processes when I openede only one terminal session?
I am using windows WSL2, and opened just one terminal session. I used the command ps and ps a. From what I know, the bash with PID 559 is the shell I am interacting with. The question is, why do I ...
0
votes
1
answer
210
views
SSH Match EXEC seemingly has no effect
At the moment, I have two remotes on my git repos, one pointing to git when I am at home, and one pointing to git-ext when I am away. It want to simplify this. The below ssh config works with both git ...
0
votes
0
answers
296
views
How to configure bspwm in WSL2 Ubuntu?
I'm trying to install bspwm in WSL2 Ubuntu-24.04 LTS, and each time I run bspwm, it says "Another window manager is already running", and I don't have any other window manager installed. ...
0
votes
0
answers
81
views
Different filesystem for the same mount point /tmp , when accessed via ssh , on wsl
I have a Debian system running on wsl
> wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore ...
0
votes
1
answer
2k
views
How do I resolve a temporary failure in name resolution error?
I am on Ubuntu 22.04 LTS, on a 64-bit operating system, x64-based processor running on a Windows subsystem (WSL2). When I try to run the command sudo apt install bzip2, I get the error:
Reading ...
-1
votes
1
answer
210
views
What happens if sudo rm -rf /* is done in WSL?
NOTE: DO NOT USE THIS COMMAND UNLESS YOU KNOW WHAT YOU'RE DOING
From what I've find on the internet, the sudo rm -rf /* command wipes out everything in the linux system. If this command is run on WSL, ...
-4
votes
1
answer
1k
views
Kali Linux WSL 2 Windows Terminal wlan0
I downloaded Kali Linux WSL 2 Terminal to my Windows 10.
However, it is not showing wlan0 even though I'm connected to the internet.
Is there a way to solve this, or is my Wi-Fi adapter not compatible?...
0
votes
1
answer
2k
views
WSL: Processing fstab with mount -a failed
When entering in my archlinux WSL with the command wsl -d Arch after a fresh install, (I completed a base install of arch linux in virtualbox. By exporting it as a compressed tar file, transferred it ...
0
votes
2
answers
193
views
How do I find the init for an ubuntu installation that I just did
I ran the following command ps 1 to find out the init process running on the newly installed ubuntu on my system.ps 1 returned
PID TTY STAT TIME COMMAND 1 ? Sl 0:00 /init
For some reason it does not ...
1
vote
1
answer
348
views
Why ss show a port is in use but lsof doesn't?
When I use ss (socket statistics) to show the usages of port 5432 I get:
$ sudo ss -ln | grep -E 'State|5432'
Netid State Recv-Q Send-Q Local Address:Port Peer Address:...
1
vote
0
answers
396
views
Why pts/1 shows a login using root
I am running Ubuntu in WSL. Listing current process shows pts/1 is logged in by root. But I have only a single logged-in user "mshah" which is on pts/0
If I login to a another session it ...
2
votes
1
answer
873
views
Ubuntu Jammy (in WSL): adding armhf arch, can't find packages or repositories
I'm trying to use WSL to cross-compile a c++ program for armhf on a Windows PC.
I've saved how i was able to do it on a Debian image some years ago, and now i need to do it again on a new PC. Since ...
0
votes
0
answers
143
views
Starting httpd fails in Fedora 39 on WSL2
I installed via WSL2 Fedora version 39, I also installed httpd, but when I run one of this two commands:
systemctl status httpd
service httpd status
I get this error:
System has not been booted with ...
2
votes
2
answers
1k
views
Machine MAC address with Ubuntu on top of WSL2
Running Ubuntu 22.04.3 LTS on top of WSL2
Output of ifconfig:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1492
inet 172.28.193.11 netmask 255.255.240.0 broadcast 172.28.207.255
...
0
votes
1
answer
227
views
SSH option SecurityKeyProvider works from command line but not config file linux WSL--other options fine
I'm trying to ssh into my work server but this bug has been bugging me for a few months now. Every other option in my config file (housed at ~/.ssh/config) works fine, but for some reason ...