6,020 questions
Advice
1
vote
3
replies
33
views
WSL2: How to get the "distribution-ids" for the installed Linux distributions?
When I look into the settings in Windows Terminal for the cmd-line how the default Linux distribution (Ubuntu) that has been installed is "accessed", I find:
C:\WINDOWS\system32\wsl.exe --...
-6
votes
1
answer
175
views
X11 window being buggy [closed]
The following script and the setup around it is EXACTLY copied from my old pc's Windows Subsystem for Linux (WSL) to my new one's WSL, but on the new machine it only creates the window in the taskbar ...
1
vote
0
answers
92
views
Collecting dotnet-dump on WSL when process is stuck at GC.WaitForPendingFinalizers();
I am working on a .NET 8 server side application which is deployed on Ubuntu 22.04.5 as a service (using systemctl). As part of application shutdown, it calls GC.WaitForPendingFinalizers(); (legacy ...
1
vote
1
answer
91
views
How to build and install a BLAS-enabled llama-cpp-python (GGML_BLAS=ON) on WSL (Ubuntu)?
I’m trying to install a BLAS-enabled version of llama-cpp-python on WSL so that the GGML library uses OpenBLAS. I attempted two different pip install invocations with CMAKE_ARGS, but the module ...
Best practices
0
votes
2
replies
86
views
What's the best setup to use Ruby on Windows?
I'm new to Ruby and I'd like to know the best way to program in Ruby on a Windows computer.
I already have a setup, but it's not working very well: I have VS Code with the Ruby LSP extension, and in ...
0
votes
0
answers
74
views
VS Code Server fails to download in WSL: “Temporary failure in name resolution” [closed]
I am trying to open Visual Studio Code from my Ubuntu WSL environment using:
code .
But VS Code keeps failing to install/update the VS Code Server. This is the full error:
Updating VS Code Server to ...
0
votes
0
answers
78
views
Cannot link R function on Win10 to .bin executable on WSL/Debian
I attempted to execute code entitled "Multilayer community detection" using the muxViz library (https://github.com/manlius/muxViz) published on https://manlius.github.io/muxViz/articles/...
0
votes
1
answer
114
views
Open project inside WSL, GIT not working: IJent Error
I've opened a project inside my WSL.
But there is an error on Git.
When I go on Settings → Git → Path to Git executable: \\wsl.localhost\Ubuntu\usr\bin\git
Then i click test and he shows me this error:...
1
vote
1
answer
66
views
Prevent VS Code Server in WSL from attempting to update (due to corporate firewall)
I am running VS Code on Windows 11 and WSL1 with Ubuntu 22.04.5 LTS behind a corporate firewall.
The firewall prevents updates of the VS Code Server instance inside WSL to download, but somehow it ...
1
vote
0
answers
125
views
Why does curl in WSL2 (Fedora and updated Arch) return "Recv failure: Connection reset by peer" on https://sh.rustup.rs?
Problem Description
I am trying to install Rust through rustup in WSL2, but in some
distributions any curl request to https://sh.rustup.rs fails with a
TLS error.
Command:
curl --proto '=https' --...
2
votes
1
answer
88
views
pyinstaller is just outputting a generic file, not an exe
I am trying to turn my Python script to an exe, but for some reason pyinstaller is just outputting a file of type file. It doesn't run if I add .exe to the end either. I am using WSL in VSCode and ...
0
votes
0
answers
95
views
wsl: Permission denied on using pyenv
Problem
I recently installed pyenv on wsl(24.04) and tried to set python version on local directory, but I got this error:
$ pyenv local 3.14.0
~/.pyenv/libexec/pyenv-version-file-write: line 37: ....
0
votes
0
answers
169
views
My VS Code is just stuck on loading the remote WSL
I use WSL in Windows for developments but for a few days it is not working, it is just in the mood of loading and loading unloading. I checked my WSL via command terminal it's working there, but it's ...
0
votes
0
answers
59
views
Camoufox browser window remains visible in WSL even when `headless` is set to `virtual`
Camoufox browser window remains visible in WSL even when headless is set to virtual
Description
When headless is set to "virtual", the Camoufox browser window still appears on the screen in ...
-2
votes
1
answer
50
views
VSCode custom extension throws an error about keybindings
I wanted to update my VSCode extension. But when running npm run test I get an error:
Error: Cannot find module './build/Debug/keymapping'
I tried to compare it with fresh extension, generated with ...
0
votes
1
answer
62
views
Laravel Sail + Xdebug
I have Laravel Sail installed in WSL, and I'm trying to debug the application using Xdebug. This only works if I enter the WSL IP address directly into the browser (http://172.17.170.44:8000). If I ...
0
votes
0
answers
71
views
configuring vagrant vm with ansible through WSL - Failed to connect to the host via ssh
i am having hard time with configuring vargrant vm with ansible, my host machine is windows 11 so i use WSL. (something its working and something i get "Failed to connect to the host via ssh"...
0
votes
0
answers
55
views
dfx command not working when running Motoko project
Error output when running dfx commands
I’m trying to run a simple Motoko project locally using the DFINITY SDK (dfx), but none of the dfx commands seem to work properly.
I’ve tried running commands ...
5
votes
2
answers
117
views
Actix Web server fails to restart on the same port when on WSL
I'm developing a simple Actix Web backend in Rust and running it on WSL (Windows Subsystem for Linux).
The server runs fine the first time, but when I use cargo watch -x run to auto-restart it on code ...
-1
votes
1
answer
88
views
WebStorm can not locate WSL files [closed]
I have been working on a project from WSL distribution which used yarn and docker so when I tested the project locally, it took up a lot of space. I already have little space on my disk, so when I ran ...
0
votes
0
answers
70
views
Why is the printk Function Not Visible in /proc/kallsyms on WSL2, But _printk Is Present?
I'm working with WSL2 on Windows, running Ubuntu (and I've tried Arch as well), and I'm encountering some odd behavior with the Linux kernel symbols, specifically around the printk function. It feels ...
0
votes
0
answers
38
views
Building React Native / Expo Android app using WSL, getting Unsupported Platform
I work on a Windows machine and have installed WSL with Ubuntu running, followed three different tutorials on how to set up Java and Android SDKs in that environment, and I'm still getting "...
2
votes
1
answer
101
views
Accessing WSL symlinks using R on Windows
Is it possible to access a symlink created in WSL from an R session running on the Windows host?
I've made a symlink in WSL. The link is not broken. I can view the contents in WSL using nano /...
0
votes
1
answer
113
views
How to handle path on Windows WSL2 in rust? [closed]
Background
I tried to develop a Rust lib to assist with swapping filenames for any two files, but I had problems when I tried to dealing with paths on WSL.
Examples
Normal Situation
File1
File2
Before
...
0
votes
0
answers
47
views
Is it possible for minikube on WSL2 to expose service on specific port?
I have a minikube installed on Ubuntu in WSL2.
Calling following deployment:
kubectl create deployment hello-minikube1 --image=kicbase/echo-server:1.0
Then creating service:
kubectl apply -f hello-...
2
votes
0
answers
108
views
How to debug C++ code in a Python extension (VLLM) and speed up compilation?
I’m working with VLLM (open-source) which includes C++ extension code compiled for Python.
I installed it using
CXXFLAGS="-Og -g" pip install -e .
I want to debug the C++ code from Python by ...
0
votes
0
answers
73
views
Is there a way to access a network share in wsl2 visual studio debugger the same way it works in regular wsl terminal?
I can mount a company network drive in the WSL terminal. Presumably it can use the privileges of my windows user instead of my wsl ubuntu user when I do it. However when I am running Visual Studio ...
1
vote
1
answer
160
views
Docker build in WSL fails on curl download (curl: 56, unexpected eof)
I am trying to build a static FrankenPHP binary using their official Docker setup on Windows 10 with WSL 2 (Ubuntu). The build process, which uses docker buildx bake, fails at a step that downloads ...
3
votes
2
answers
1k
views
VSCode stuck in "Opening remote" / "No WSL distros found" error
It was working fine a couple of days ago, now it's stuck in "Opening remote".
An error is shown on a toast saying: "No WSL distros found. New distros can be installed from the Microsoft ...
0
votes
0
answers
47
views
Redeploy docker application when server restarts
I have a docker application that we have deployed on a clients Windows 2022 server. As part of the clients security protocol the server does occasional restarts. I'd like the app to be redeployed ...
1
vote
1
answer
192
views
Debugging vLLM with debugpy on WSL fails: AttributeError: module 'ray' has no attribute 'is_initialized'
I’m trying to debug my Python code with debugpy in VS Code on WSL (Ubuntu).
Environment:
Python: 3.12.3 (venv)
vLLM: 0.10.1.1+cpu
debugpy: ms-python.debugpy-2025.10.0 (from VS Code extension)
...
0
votes
0
answers
31
views
dat-power extension is failing and stall sin a devcontainer
I am running a devcontainer on my windows machine using ubuntu as the WSL bistro. When I click the dot Power User extension - it's just loading constantly (the little blue line in the image moves from ...
-2
votes
1
answer
76
views
Bash script on Ubuntu WSL with odd concatenation behavior using fzf and a word list [duplicate]
This script behaves perfectly fine on a real Ubuntu system.
#!/bin/bash
set -Eeu -o pipefail
word1=$(awk '{print $2}' eff_short_wordlist_2_0.txt | fzf)
echo "${word1}"
word2=$(awk '{print $...
0
votes
0
answers
105
views
Querying Tailscale from inside WSL2
I've got Tailscale running on Windows 11 but I have some Bash scripts I run in WSL2 that query devices connected via Tailscale. That works fine, but parts of the scripts query the Tailscale CLI ...
1
vote
1
answer
100
views
How to send signal to a running python script in wsl terminal
I have a python script that process a list of time consuming tasks via calling subprocess, with ThreadPoolExecutor + max_worker to execute a small number of tasks in parallel.
I want to be able to ...
1
vote
1
answer
112
views
VSCode WSL Laravel: configure Ignition or Ray to open files directly in VSC debugger
I am using VSCode on windows with WSL Linux where the project files are and PHP and the XDebug debugger are running. When Ray or Ignition display debug information with a filename, I would like the ...
0
votes
1
answer
102
views
Volume mappings from Windows to WSL are causing problems when using /mnt/C/
We are developing an ASP.NET app on windows, which runs in docker. When using docker desktop, it "all just works". But a few of us are used to develop in Linux and prefer to work with WSL ...
0
votes
2
answers
45
views
Activating conda venv in wsl via Windows .bat file
I am trying to use a .bat file that would automatically open the console, and change into a certain conda venv in WSL / Ubuntu.
The following .bat file does open Ubuntu / wsl, but it stays in (base) ...
0
votes
0
answers
142
views
NodeJS and NPM disappears after WSL2 restarts
I tried a few times to install node and npm in WSL/Ubuntu22.04 via NVM, both node and npm would work just fine right after installation. But once I exit WSL2, wait for a while when it is confirmed ...
0
votes
0
answers
76
views
Docker Mounts from WSL Does Not Show Files But Mounts from Windows Do
My setup Windows 11 and WSL with Ubuntu 24 instance. I would like to have a typical Linux experience inside WSL. However when I have a directory structure like this
% tree ...
2
votes
1
answer
173
views
Weird gettimeofday behaviour (weird time jumps)
I've been working with the timeval struct and gettimeofday() for a couple of days now. Although I'm starting to understand how it works, there are still some cases where I'm completely lost.
I'm ...
0
votes
1
answer
83
views
p2.core.ProvisionException while installing new software in eclipse
I have just installed eclipse with wsl2 by following the guide below:
https://gist.github.com/rsenden/7bc96a3e678b60e61c750517ca8de883
While the setup is successful and eclipse is running, I am trying ...
0
votes
0
answers
59
views
HOOMD-blue GPU error: "invalid device ordinal" in WSL2 despite CUDA and GPU detection
I am trying to run HOOMD-blue 5.2.0 with GPU support inside WSL2 (Windows Subsystem for Linux), but I keep getting the following error:
RuntimeError: CUDA Error: invalid device ordinal before /hoomd/...
0
votes
1
answer
157
views
How to run WSL bash functions from CMD
In Windows cmd you can run wsl commands just by typing:
> wsl pwd
/mnt/c/Users/user/
But when I try to run functions that are stored in ~/.bashrc file, nothing is happening:
> wsl test
>
...
0
votes
0
answers
136
views
Docker Desktop can't pull behind a proxy
The latest docker desktop can't pull. I use docker desktop and pull in Docker Hub, it shows
(HTTP code 500) server error - failed to resolve reference "docker.io/n8nio/n8n:latest": failed to ...
0
votes
3
answers
5k
views
Unable to start MCP servers in VS Code in WSL
I'm attempting to connect to several MCP Servers in VS Code after general availability was recently released. VS Code is running in WSL: Ubuntu. I made a number of changes to my VS Code terminal ...
1
vote
1
answer
299
views
WSL / VSCode Remote server doesn't load shell-init files or setup env-vars or path for MCP Servers
This is a specific question about how to inject or modify environment variables into the VS Code remote server.
I am using Windows 11 Visual Studio Code release 1.102.1
I am trying to use the MCP ...
1
vote
1
answer
206
views
Intelephense is showing Undefined Type errors that are not true
Windows 11: 24h2
VS Code: 1.102.1 (WSL: Ubuntu 24.04.2 LTS)
Intelephense: 1.14.4
Symfony: v6.4.23
PHP: 8.2.28
<?php
namespace App\Command;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\...
0
votes
0
answers
422
views
How to run an application through WSL in Rider?
I need help figuring out the following: I have a requirement to run an application through WSL (both in debug and non-debug modes) in Rider 2025.1. I don’t understand how to set this up—I’ve already ...
1
vote
1
answer
150
views
React application doesn't run on localhost:8080 inside WSL
I am using WSL2 (Ubuntu) to develop a React application built using Vite. When running the npm run dev command, the terminal reports that the server is running on localhost:8080, but:
When trying to ...