Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux is a compatibility layer that allows Linux binaries to run natively on Windows 10.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

Running wsl received "An error occurred in the secure channel support"

What is the reason behind this error when running wsl --install PS C:\Users\dev> wsl --install An error occurred in the secure channel support
angelokh's user avatar
  • 111
1 vote
1 answer
197 views

WSL2 stopped running windows tools seemingly all of a sudden - cannot execute binary file: Exec format error

I have been using WSL2 for almost a year now and was always able to run windows tools from it without any problems. Today I have noticed I am unable to do it anymore: mark@L-R910LPKW:~$ alias npp ...
mark's user avatar
  • 735
0 votes
0 answers
22 views

wget/FTP downloading issue

I am using the command wget -r ftp://xyz/../ to download a directory on my wsl. It is a huge directory, so it takes hours to finish. My internet got disabled for a little bit, and the process ...
Archit Gupta's user avatar
0 votes
1 answer
101 views

Running out of open files with sshd

I have a Java application running in WSL2 I also have an ssh connection (in Windows) to a app server, and tunnel ports from the app server for a web server hosted on a second app server back to my ...
The Archetypal Paul's user avatar
0 votes
0 answers
39 views

kubernetes: could not find PersistentVolume hostpath on windows

kubernetes: could not find PersistentVolume hostpath on windows 11. kubectl describe pv/pvc-4a7bc0ff-9195-4f2f-bd70-9dfd1f8cd065 Name: pvc-4a7bc0ff-9195-4f2f-bd70-9dfd1f8cd065 Labels: ...
eastwater's user avatar
  • 111
1 vote
1 answer
497 views

How to forward WSL2 8080 to Windows host's 8080?

I have: a Spring Boot application running on Windows on 8080 and a service running in the Docker container within the WSL2 Ubuntu, and I'm loking how to enable the Windows host's 8080 to this ...
imy's user avatar
  • 111
0 votes
0 answers
21 views

W.A.C. feature enabling prevented by "MultiPoint Repair Service"

Win 10 Pro(Activated) Device Owner: Myself(as Administrator Account) Version:22H2 HP EliteBook Toshiba Satellite -I run 2 copies of Win 10 Pro both are activated and legitimate. -I have not attempted ...
Aaron Michael Ross's user avatar
0 votes
2 answers
2k views

How to install Linux distro on Windows Server 2019 and WSL version 1

I am trying to use WSL on a server with Windows Server 2019 (Version 1809). I enabled the WSL feature and can execute the wsl command in powershell. PS C:\Users\user> wsl Windows Subsystem for ...
esel's user avatar
  • 129
1 vote
1 answer
145 views

Ping with jumbo frames fail but returns default ping fail message

I need to set up a local connection between my Windows 11 PC and an external device (IP 10.0.0.10), with jumbo frames enabled (MTU 9000). The end goal on my PC is to connect to the remote device from ...
C. Crt's user avatar
  • 111
0 votes
0 answers
274 views

MYSQL Server fails to start with no logs - Ubuntu on WSL

I'm running Ubuntu in WSL on Windows 10. I'm trying to get an owncloud server going but I've been unable to get mysql working. When I run sudo service mysql start it takes it's time before reporting: [...
Mark Deven's user avatar
0 votes
1 answer
34 views

Docker WSL on Windows 11 - Ubuntu user

According documentation for installing docker on Windows I have installed WSL with its Ubuntu dist. Next step should be set up user and password for Ubutnu. So according documentation I open Ubuntu ...
Čamo's user avatar
  • 101
2 votes
0 answers
442 views

Access of K8s service within WSL2 + Docker Desktop from Linux machine over HTTPS

I've setup an authentication service in a Kubernetes cluster which lives in a Docker Desktop + WSL2 environment on a Windows 11 Pro machine. It can be reached e.g. via CURL & PostMan requests from ...
ShadowGames's user avatar
0 votes
1 answer
99 views

/etc/ssh/ssh_config line 19: bad include path ~/.ssh/id_rsa.conf. /etc/ssh/ssh_config: terminating, 1 bad configuration options

I need help to solve this error, please /etc/ssh/ssh_config line 19: bad include path ~/.ssh/id_rsa.conf. /etc/ssh/ssh_config: terminating, 1 bad configuration options
Gabriel Santos's user avatar
0 votes
0 answers
920 views

X11 forwarding through WSL

I would like to connect to a remove linux machine via ssh from my windows machine, and forward the x11 server from that machine to mine to be able to view small interactive windows like those ...
ShinyDemon's user avatar
0 votes
1 answer
64 views

Access: (0000/----------) on a file in linux. Do I have a dead file?

Preface: I'm not a linux person. I'm a webdev trying to SSH into a Ec2 instance via WSL. I found the .pem file from the previous developer's (dude left the company) machine and moved a copy to my ...
hnewbie's user avatar
0 votes
0 answers
78 views

accessing docker true a vpn and get error: 'failed to add IPv4 address bridge'

Hello I'm trying to install a program (elabftw) with a docker container, on a Windows server (but running Ubuntu true WSL) that I have to access via my uni-vpn. When I try to start the program with: '...
Benji's user avatar
  • 1
0 votes
1 answer
66 views

Windows11, WSL2: Unable to uninstall ubuntu 20

My ubuntu installation over WSL2 is a mess and I wish to start over. Per online instructions I uninstalled all 'Ubuntu' apps, and installed the latest one (22): But in Terminal, previous Ubuntu ...
Ofek Shilon's user avatar
0 votes
0 answers
498 views

Cannot start Docker on WSL2

I am running Docker Desktop on W11. Docker Desktop > Settings > Resources > WSL Integration is enabled. Tried to restart the WSL from services (Lxssmanager) or to shutdown/reboot it with wsl -...
pysquirrel's user avatar
0 votes
0 answers
64 views

Rsync often stacks while I am connected to VPN through wsl

From time to time while running rsync command through wsl, it stacks, and I need to run it again. This only happens while I am connected to VPN. Not sure why this happens RSYNC_COMMAND=avAXEWSlHhz ...
csandreas1's user avatar
1 vote
1 answer
1k views

Is it possible to make a L2TP/IPsec VPN connection from within a linux-based Docker for Windows (WSL) container?

I use Windows. My main goal is to be able to open corporate websites which are only available via corporate VPN such as GitLab. Since Windows wouldn't allow me to specify which websites I would like ...
AgentFire's user avatar
0 votes
0 answers
149 views

Why are veth peer interfaces getting created in the current namespace instead of the target namespaces?

I enter the commands below try to create a pair of network namespaces and a veth device pair to connect the namespaces. $ sudo ip netns add netns_br0 $ sudo ip netns add netns_veth0 $ sudo ip link add ...
Tomek Dobrzynski's user avatar
0 votes
0 answers
116 views

unable to load files in /var/www on localhost

I don't know why, but until recently, I could load files located in /var/www/ by typing the folder name in my browser, and I could load files located in /var/www/html by using localhost/<> Now, ...
dsb27's user avatar
  • 1
0 votes
0 answers
576 views

Postgres running in WSL all of a sudden drops network and gives "Connection refused"

We have two laptops in the team experiencing the same kind if issues, but they behave a bit differently so I'll take it from the point of view of mine... Both laptops runs updated Windows 11 with ...
Anders's user avatar
  • 109
0 votes
0 answers
41 views

Discover EXT4 (or other) Linux file system (e.g. bootable?)

I want to be able to identify whether some older SATA HDD's have Linux partitions. With the advent (and my fairly recent discovery) of Windows Subsystem for Linux (WSL) on Windows, I realize options ...
J S's user avatar
  • 1
1 vote
1 answer
939 views

How to run two different applications simultaneously in same port with same Machine in Ubuntu

I want to run two different applications (i.e:Two different Microservices) running in same port(eg:in port 3000).I have implemented concepts like creating multiple distro's in ubuntu.But ...
CodeBox's user avatar
  • 11
0 votes
1 answer
3k views

Which DHCP is assigning IP addresses to WSL machines?

I run CentOS 7 inside WSL on Windows 11. My WSL IP is: [root@rbarak ~]# ip addr | grep eth0 6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 inet ...
boardrider's user avatar
1 vote
0 answers
449 views

How do I set environment variables so that they execute when calling WSL from PowerShell?

First let me clarify the question. I'm not asking how to sync environment variables. What I am asking is how to set JAVA_HOME so that when I call wsl echo `$JAVA_HOME from powershell it writes out the ...
Jason Thompson's user avatar
3 votes
2 answers
22k views

WSL-Docker: curl: (60) unable to get local issuer certificate

After a PC reconfiguration I am unable to use Docker properly, since some curl commands are rejected due to SSL/TLS issues. In just one example curl -vfsSL https://apt.releases.hashicorp.com/gpg ...
casparjespersen's user avatar
3 votes
1 answer
579 views

Nginx -- Can't use mDNS domain name in upstream server

Minimal example Machine A and B, where B uses mDNS with domain name b.local and set ssh service at port 2222. A and B does not turn on firewall. In machine A's nginx.conf: stream { upstream b-ssh {...
Evian's user avatar
  • 131
1 vote
0 answers
295 views

github not accepting private SSH Key

I have a Private ED25519 SSH key, on a Windows system (using WSL). Permissions of the private key are 400 and permissions on the Public Key are 444. When I test my connection, using ssh -Tvvv git@...
Reuben deVries's user avatar
0 votes
0 answers
73 views

Accessing remote database from Windows machine

I tried to connect to a remote MySQL instance from my script in WSL2 but it always failed. I tested using the following command Test-NetConnection -ComputerName my-db.com -Port 3306 from PowerShell v7 ...
Dorklord's user avatar
  • 101
2 votes
0 answers
2k views

WSL2 Dockerized Nginx not available in browser, but ping respond

I have a Windows 10 Home on my computer with WSL2. In WSL I run Docker with this docker-compose.yml file: version: "3" services: httpd: image: 'nginx:stable-alpine' ports: - '...
netdjw's user avatar
  • 121
0 votes
1 answer
345 views

nginx throwing 502 Bad Gateway after a period of time

We have a problem with our Nginx instance on Ubuntu (WSL) running on Windows 2019 server. We are using it as a load balancer. It works fine but after a period of time Nginx starts throwing 502 bad ...
drzounds's user avatar
  • 101
0 votes
0 answers
833 views

WSL PING "system error"

I have a weird PING error in WSL2, Ubuntu 20.04 distribution. When I'm doing nslookup - all ok: root@i:~# nslookup google.com Server: 172.19.224.1 Address: 172.19.224.1#53 Non-...
M.Ch.'s user avatar
  • 3
0 votes
1 answer
165 views

PHP socket connection through XR300 router to a receipt printer

I have a PHP application which is attempting to open a socket connection to a printer through my router. A couple things to note - my networking skills are lacking so I may be missing something ...
EvilZebra's user avatar
  • 103
3 votes
4 answers
25k views

How to access service running on host from WSL2 (connection refused)

I have selenium running on my host machine, and my app is inside a docker container (inside WSL2). I am trying to get the app connect to the selenium, that is listening on port 4445. It used to work a ...
justadev's user avatar
  • 413
1 vote
0 answers
1k views

How to give each WSL distro a distinct IP address?

How to give each WSL distro a distinct IP address, and then connect to those IP addresses via Windows? I was curious if its possible to setup two different ubuntu distributions using WSL and somehow ...
pico's user avatar
  • 111
0 votes
1 answer
603 views

Unexpected remote arg when using link-dest in rsync

I have a backup script on my WSL Ubuntu that I use manually to backup my linux systems to a USB drive (NTFS volume mounted on WSL). I'm running into an issue with --link-dest that I haven't had before ...
Peter van Arkel's user avatar
4 votes
1 answer
5k views

cURL can connect to localhost but browser cannot

My system is Win10 with WSL2, I ran a gogs docker container (from ubuntu in WSL): 83b2a8833235 gogs/gogs "/app/gogs/docker/st…" 17 minutes ago Up 17 minutes 0....
Ken Tsoi's user avatar
  • 143
1 vote
1 answer
636 views

bash over Windows SSH is not working

I have been using an OpenSSH client on Windows for a long time and an SSH server on Linux. Recently I have decided to use the OpenSSH server on Windows 10. I can install it, run the server and login ...
khoshahmad's user avatar
1 vote
1 answer
1k views

Connect to Postgres running on the Windows host from WSL2?

I am trying to connect to PostgreSQL DB installed on my windows machine from WSL2 however facing issues while connecting would appreciate if you can help me resolve this issue. In addition to that I ...
Gautam's user avatar
  • 111
1 vote
2 answers
2k views

Cannot bind port 111 on docker on WSL2 on windows, but port is (apparently?) currently free

Setup I have this setup: Windows 10 pro with WSL2 with an Ubuntu 20.04 inside. Inside the Ubuntu, I have a running docker engine that has been working perfectly for over during months, exposing ...
Xavi Montero's user avatar
3 votes
0 answers
2k views

Enable bidirectional UDP communication between Windows host and Docker container

I have a UDP server on a Windows 10 host, on a fixed port (let's say 1234). All I want is to set up a communication between this server and a client in a Docker (Debian-based) container (Docker ...
timot.cool's user avatar
0 votes
0 answers
30 views

After a random period of time, Windows is unable to see services running on my Linux subsystem and vice versa

I am running an Ubuntu 18.04 Linux Subsystem. I have Postgresql 12 running on Linux, and I connect to this from my apps I am developing in Windows. When I start up my PC, everything works fine.. DB ...
Greg Bengis's user avatar
1 vote
0 answers
3k views

Accessing WSL2 From Public IP Address

I have installed WSL2 with Ubuntu 20.04 on Windows 10. I have an Apache server running in WSL2, and this works fine when I use a browser in Windows (Chrome) to access it via WSL IP address. As the ...
Bob's user avatar
  • 13
1 vote
1 answer
2k views

The disk \\.\physicaldrive1 was attached from WSL2, but failed to mount (error code: -22)

Environment: Build: 21343 Ubuntu 20.04 WSL2 Currently attempting to mount an ext4 drive via WSL2 and keep receiving error: The disk \\.\physicaldrive1 was attached from WSL2, but failed to mount (...
eagarc's user avatar
  • 11
0 votes
0 answers
216 views

WSL & VcXsrv mouse not functional

I have WSL set up on a WINDOWS 10 PRO machine which I generally use for development. And I have gotten X apps to display properly within the windows WM and everything seemed fine; however, no matter ...
Tamer Ziady's user avatar
3 votes
1 answer
11k views

Wsl ubuntu virtualhost and hosts file on windows

I try to access it through my windows browser and fail. what is my mistake? I use WSL2 on windows 10, with ubuntu 20. I have an apache server and a laravel app which I installed at /var/www/law In my ...
yossi's user avatar
  • 149
2 votes
1 answer
500 views

win32 openssh default shell wsl.exe command arguments

Environment: Windows 10.0.21327 wsl2, ubuntu 20 LTS win32-openssh Windows Openssh Default shell changed to: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShell C:\WINDOWS\System32\wsl.exe ...
user622130's user avatar
-2 votes
1 answer
2k views

How can I connect AWS by using AWS-CLI in Windows Subsystem Linux?

I am totaly new for AWS I am trying to use awscli by calling below code : root@DESKTOP-QK5VI8R:~# aws s3 ls I applied lots of solution for that: I added port 8888 into Inbound/Outbound Rule set in ...
loki's user avatar
  • 97