Questions tagged [windows-subsystem-for-linux]
The Windows Subsystem for Linux (WSL) lets users run a GNU/Linux environment on top of the Windows operating system. It includes support for Linux-based command-line tools ELF-64 binaries, and more.
4,535
questions
0
votes
0
answers
9
views
Problem with Docker on Windows [version `GLIBC_2.32' not found] [version `GLIBC_2.34' not found]
I am following a beginners tutorial for installing Docker on Windows using WSL2.
It's one of the first tutorials/lectures here in this course.
https://www.udemy.com/course/docker-and-kubernetes-the-...
1
vote
0
answers
15
views
Next.js 14 app dir, Fetch API cause error when optional arguments set
I can run and get responses from these lines correctly. (in app/item/page.tsx):
export default async function Page() {
const res = await fetch('http://www.testdomain.test:8000/testapi/items/');
...
0
votes
0
answers
7
views
Cannot enable WSL service on windwos 10, error code 0x8007010B The directory name is invalid
I was trying to enable the Windows subsystem service for Linux (WSL) service on my Windows 10, I first tried to start it from GUI but got this error when it appears to be downloading something from ...
0
votes
0
answers
16
views
OpenCV with VsCode : opencv2/opencv.hpp: No such file or directory. BUT can run the CMakeLists.txt
I followed this tutorial( https://www.geeksforgeeks.org/how-to-install-opencv-in-c-on-linux/) to install OpenCV(version = 4.x) in wsl-1. As I tried to test whether I have installed OpenCV correctly, ...
0
votes
0
answers
26
views
How would you troubleshoot the "Connection refused" error when trying to set up a TCP chat server using Ruby on Ubuntu (WSL)?
I want to create a TCP chat server using Ruby. When I attempt to do this in the Ubuntu terminal (WSL), I encounter the following problem: when I execute the command telnet localhost 2000, I get the ...
0
votes
0
answers
17
views
Unable to open the remote html file in JetBrains client
I'm using JetBrains Client 2023.3 RC. I have Django HTML templates in my project. When I try to open them, the JetBrains client displays the message:
"Unable to open the remote file". Other ...
-1
votes
0
answers
24
views
Make Windows Debian WSL run .bash_logout on exit from terminal
So, in Windows 11 Debian WSL, when I type logout or exit in the terminal(not wsl.exe but when I select Debian in the Windows terminal app), it doesn't run my .bash_logout code. How do I make it run ...
-2
votes
0
answers
11
views
Encountering "10006 TXN_AUTH_REQUIRED" error in GridDB during client request execution
I am currently facing an issue while executing a client request in GridDB, and I'm receiving the error code "10006 TXN_AUTH_REQUIRED." This error occurs.
I'm currently utilizing a WSL ...
-4
votes
0
answers
23
views
Installing homebrew using Ubuntu WSL [closed]
I'm trying to install homebrew from the script I got from the official website but it just keeps loading without asking for my sudo password. After some minutes the error I got was ~curl: (28) SSL ...
1
vote
1
answer
40
views
segmentation fault when calling ret after a jump in assembly x86_64
I'm new to assembly x86_64 and trying to learn the jump conditions.
In my code i get a segmentation fault when i use the jump if equal call,
but no fault if I call the function and then return, why is ...
0
votes
1
answer
34
views
Subsystem python cannot point to the file
I build the backend using fastapi like this :
process.py
import shutil
from fastapi import FastAPI, File, HTTPException, UploadFile
import os
import subprocess
from pydantic import ValidationError
...
0
votes
1
answer
25
views
How do I run WSL 'docker compose' command in Intellij Idea?
I have WSL with Ubuntu and docker-compose plugin installed on Windows 10. Now, I can run docker compose command (v2) from my PowerShell or Idea's terminal like this: wsl docker compose up. And ...
1
vote
0
answers
7
views
Encountering "10005 TXN_AUTH_FAILED" error in GridDB during client request execution
I am currently facing an issue while executing a client request in GridDB, and I'm receiving the error code "10005 TXN_AUTH_FAILED." This error occurs.
I'm currently utilizing a WSL machine, ...
0
votes
0
answers
8
views
RecursionError: maximum recursion depth exceeded in Python using moviepy
I always get the error bellow while I run my script on Windows 10, but when I use my WSL it works perfectly.
File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
File &...
-1
votes
0
answers
25
views
Error while updating ubuntu and installing zsh in windows [closed]
I installed Ubuntu using wsl. Once the Ubuntu get installed, I tried to update it using sudo apt-get update. It gave me this error.
myusername@SYSTEM-NAME:~$ sudo apt-get update
[sudo] password for ...
0
votes
0
answers
15
views
faced error when i try to run GPU on Tensorflow within jupyter-notebook
This code working fine and show gpu
import torch
Get the number of available GPUs
num_gpus = torch.cuda.device_count()
if num_gpus > 0:
print(f"Number of available GPUs: {num_gpus}")
# ...
0
votes
0
answers
18
views
Compiler creates linkern, edgegen, fmatch but does not create concorde
I am trying to compile Concorde with little to no prior knowledge about C. I have made some progress but the README file states the following:
configure determines many features about your operating ...
3
votes
0
answers
39
views
Issue installing Perl::LanguageServer via cpanm and cpan in WSL 2
Hi I am trying to install the perl::LanguageServer for eventual use in VS CODE. However, I getting errors when running:
sudo cpan install Perl::LanguageServer
I am very lost, it also says in here ...
0
votes
1
answer
84
views
Issue with using dotnet run as Entrypoint in docker image for c# webapi application
I was experimenting with docker and c# app, I noticed that ideally people are using both dotnet sdk image which is base image and dotnet runtime image.
My idea was why not just use dotnet sdk image to ...
0
votes
0
answers
54
views
"Could not resolve host" in docker container
I have a project of our company that I decided to transfer from a virtual machine to Windows10/WSL2:
When installing docker images, the root certificate is copied:
ADD secure/PKI_SVZ.crt /usr/local/...
0
votes
0
answers
25
views
pnpm installs via WSL not usable by Windows
I had to reinstall Windows after many, many years and after setting everything up again, I've noticed a big difference. Before the reinstallation, I used to run Visual Studio Code from Windows and ...
-3
votes
0
answers
19
views
How to download, or otherwise copy all the files of a program from wsl onto a usb drive [closed]
In this particular instance, I need a copy of ncurses on a pen drive because of university stuff. In short, I need to compile code with ncurses on a computer that most likely doesn't have it installed ...
0
votes
0
answers
38
views
Rust Installation - Failed To Make Network Request and Timed Out
I am running Windows 10 PC and installed the Ubuntu 20.04.6 from the Microsoft store.
I am trying to install Rust through it. For this I have already downloaded curl and enabled the Hyper-V and ...
0
votes
0
answers
14
views
Uninstalling WSL lead to infinite Blue screen of the death loop on reboot
Yesterday I have got my new machine and after a lot of trouble I was able to install and activate Windows 10 Pro. After installing all needed drivers I have began downloading software that I used on ...
0
votes
0
answers
16
views
How can I uninstall Memgraph from Ubuntu so that I can switch to Docker? [closed]
I use Ubuntu via WSL. I've installed Memgraph as Ubuntu package. Now when I try to run Memgrpah as docker I get:
july@dell-wks-12:~$ docker run --name memgraph2 -p 7687:7687 -p 7444:7444 -p 3000:3000 ...
0
votes
0
answers
39
views
Docker Desktop stuck at Starting
Whenever I try to open Docker Desktop on my Windows 11 machine, it's just stuck at starting forever. I've tried restarting Docker and restarting my machine and none fixed it.
I have multiple ...
0
votes
0
answers
36
views
Windows subsystem for Linux upgrade error from WSL to WSL2 in Windows 11 [closed]
I am using Windows 11, and I want to use WSL2. Now I have WSL and I could not upgrade it to the WSL2. I followed the Microsoft WSL2 upgrade documentation page for https://learn.microsoft.com/en-us/...
1
vote
1
answer
33
views
How to run an executable from a Windows Service Written in C#?
I attempted to execute wsl.exe with a specific Linux command within my Windows Service written in C#. However, each time I encounter the error message (in my log file):The file cannot be accessed by ...
0
votes
0
answers
42
views
Wsl Heap (and stack locations) [closed]
can i simple way find where is first address in stack and mainly heap located in memory ?
If i try to write come c/c++ programs i find somewhat hard to check what address to free. And if i try some ...
-1
votes
0
answers
20
views
Problem with memory in WSL Ubuntu 20.04.6 LTS
Due to an infinite loop, I created a txt file of 152Go. My problem is that even after deleting that file, my Ubuntu still uses 162Go of memory (looks like the memory needed for the deleted file is ...
0
votes
1
answer
25
views
The Windows admin user cannot see the WSL installed on a normal user
ENVIRONMENT:
OS: Windows 11 (but the problem persists since Windows 10)
WSL: version: 2
Distribution: OpenSUSE (I think it´s not related to the problem)
THE PROBLEM:
I installed WSL2 and OpenSUSE with ...
0
votes
1
answer
58
views
ZAP baseline scan doesn't generate report [closed]
I'm running the example scan from the docs page:
docker run --rm -v /home/zap:/zap/wrk/:rw -t ghcr.io/zaproxy/zaproxy:stable zap-full-scan.py -t https://www.example.com -r testreport.html
The scan ...
0
votes
1
answer
38
views
Execute escaped Windows command from Node.js on WSL2 Ubuntu
The following command is executed successfully in the CMD shell on Windows:
CMD /S /C " "..\..\Program Files\Google\Chrome\Application\chrome.exe" "
If I try to execute the ...
0
votes
0
answers
19
views
Why my default terminal path on WSL is set to the document where VScode is installed?
I am connecting to my WSL by VSCode, but if I create a new terminal, it is opened under the Windows document where VSCode is installed. The screen capture of the terminal path:
I have tried to modify ...
0
votes
0
answers
36
views
Permissions issue with a Docker container running Mongo - Operation not permitted
I am trying to get a Docker Mongo container to run on my local machine through WSL. I am mapping folders in my Windows file system to the container's file system, which is causing permissions issues. ...
0
votes
0
answers
27
views
A solution for using docker and wsl in windows 10
When I want to use Docker He doesn't work and give me this error
An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking ...
0
votes
1
answer
64
views
Calling .so library in .Net
I wrote a small C++ library with an exported method. I compile it into a Dll and the method is called without problems, but I need the program to work on Linux, so I compile the library into a Shared ...
1
vote
1
answer
41
views
'cygpath: not found' & 'exec: cmd: not found' for Pyenv on Windows WSL 2
I have been trying to get Tensorflow to recognize my GPU within WSL 2. However, I believe that is largely irrelevant for the problem I am having right now.
Whenever I try to run the pyenv command ...
0
votes
0
answers
23
views
Can't download lsd(lsdeluxe) using apt or snap commands in wsl [closed]
I'm newby and trying to understand wsl. I downloaded zsh and oh-my-zsh for my bash shell. When i call ls command i got highlighted folders with no access. I tried a lot of ways to solve this problem, ...
2
votes
3
answers
143
views
Docker on windows wsl not running daemon
I few days ago I installed docker in my WSL version 2 on windows. On Ubuntu
I used the following script provided by this page:
https://nickjanetakis.com/blog/install-docker-in-wsl-2-without-docker-...
1
vote
1
answer
155
views
can run wsl command anymore `Failed to attach disk 'C:\Users\aib\AppData\Local\Docker\wsl\distro\ext4.vhdx' to WSL2`
Empting space of my computer, I can anymore run wsl, how can I deal with this problem?
in command line I tried to run wsl to use linux command line but I got this error:
Failed to attach disk 'C:\...
0
votes
0
answers
18
views
Problem in WSL `openSUSE-Tumbleweed`, Unable to redirect to any site after installing wslutilities?
I've been using WSL openSUSE-Tumbleweed as my goto terminal for software development. I use GitHub CLI a lot while working on the project. So I installed wslutilities for directly redirecting to the ...
1
vote
1
answer
94
views
grep's output is split by colon when being saved into array
I have a file with array looking like
{
[commandA]: cmdA,
[commandB]: cmdB,
...
}
I'd like to fetch the lines with commands by grep and store them in the bash array. But when I do
cmdFunMap=(`...
0
votes
3
answers
111
views
WSL2/Mongodb: Error: connect ECONNREFUSED 127.0.0.1:27017 on Windows
I am coding along a tutorial and I am stuck at connecting MongoDB to Express. I successfully installed MongoDB (Mongo Compass and Mongo shell) and I was able to play around with it a little bit to ...
-1
votes
0
answers
57
views
Running a PowerShell command via SSH doesn't work
I'm trying to run a PowerShell command via SSH. The SSH server is installed in WSL (Debian).
This runs fine:
user@PC:/$ powershell.exe -executionpolicy bypass -File "C:\\Users\\User Name\\Desktop\...
0
votes
1
answer
104
views
Can't run bash script in Azure pipeline on Windows agent with wsl [duplicate]
I'm trying to run this inline script:
Pat="myPat"
B64Pat=$(echo -n "$Pat" | base64)
git -c http.https:<url>.extraheader="AUTHORIZATION: basic $B64Pat" submodule ...
0
votes
0
answers
118
views
Running Tensorflow on GPU in WSL
So, I'm trying to get tensorflow to run on my Nvidia GeForce RTX 2060 GPU in wsl2 (Ubuntu 20.04.6) since the most recent versions of tf do not support running in native windows.
I've successfully ...
0
votes
1
answer
57
views
npm watch suddenly stopped working on WSL
My project is built using Symfony and Vue. I run this project locally inside WSL 2. Whenever I run npm run watch it runs encore dev --watch and it compiles everything successfully, however, if I make ...
0
votes
0
answers
35
views
How to solve cwd error in VScode, using SSH connection to WSL with Ubuntu 22.04.2 LTS
I've made some decent progress in configuring WSL for vscode, fixing random error after random error, but I've ran into one with the following output when attempting to launch the debugger:
launch: ...
0
votes
0
answers
49
views
Pygame is lagging in WSL, but not in windows [duplicate]
import sys
import pygame
from settings import Settings
from ship import Ship
class AlienInvasion:
"""Overall class to manage game assets and behaviour."""
...