Skip to main content

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.

Filter by
Sorted by
Tagged with
-4 votes
1 answer
39 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 wifi adapter not compatible? ...
aaaaaa's user avatar
  • 1
0 votes
1 answer
11 views

Can't enable home manager in WSL NixOS

I'm trying to setup home manager in NixOS running in WSL. However, it seems my import is not working correctly. I'm not sure what I'm missing. Google and ChatGPT were of no use here. My /etc/nixos/...
CalumMcCall's user avatar
-6 votes
0 answers
24 views

Cannot install kali-win-kex. Nothing to restart [closed]

I have tried almost anything. Followed steps from the site. But I'm getting this and I'm stuck :/ How else can I install Win-Kex? Thank youuuu!
L0STxS0UL's user avatar
0 votes
0 answers
22 views

Unusual disk space occupied by wsl (ubuntu 20) in windows 11 system

I have installed WSL (Ubuntu 20.04) on my Windows 11 system with a 1TB SSD. After working with the WSL setup for a couple of weeks, I've noticed that WSL occupies almost 620GB of disk space, whereas ...
the game's user avatar
0 votes
1 answer
22 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 ...
Debajyati Dey's user avatar
-2 votes
0 answers
15 views

WSL Ubuntu installation on Windows Terminal... Need help with proceeding

Ubuntu is installed as per terminal... How to proceed after this? how to have Ubuntu homepage?
Latha Easwaramurthy's user avatar
-1 votes
1 answer
25 views

WSL 2 update running into issues

So when I'm trying to run sudo apt update on my WSL 2 terminal, the following info prompted me: Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://security.ubuntu.com/ubuntu jammy-...
codeledger's user avatar
0 votes
0 answers
21 views

Admin GUI to add network printer to WSL2

Could somebody tell me a GUI app to admin network printers under WSL2 as I usually do under a native Linux distro? Thank you so much!
Antonio Petricca's user avatar
0 votes
2 answers
52 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 ...
Krish Venkat's user avatar
1 vote
2 answers
178 views

apt upgrade on wsl kali linux taking forever

I've just installed kali linux on a windows 11 laptop using the wsl --install -d kali-linux command on powershell. Everything was fine, Running apt update works normally, but when I run apt upgrade it ...
tfk's user avatar
  • 21
1 vote
1 answer
89 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:...
Marco Lackovic's user avatar
0 votes
1 answer
531 views

Cant install any package in Kali Linux on WSL due to libc6:amd64

I recently created a wsl 2 environment and i am running Kali Linux on it. When trying to install metapackages, the installation process gets stuck at Setting up libc6:amd64 (2.37-15) ... indefinitely ...
Anirudh Murthy's user avatar
1 vote
0 answers
67 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 ...
Mihir's user avatar
  • 11
1 vote
1 answer
54 views

coreutils man pages are missing in WSL Fedora

I installed Fedora 39 on WSL, but I ran into some issues when I tried using man. When I used the man command, I was getting no manual entry for ... I had to remove tsflags=nodocs from /etc/dnf/dnf....
Fares's user avatar
  • 13
2 votes
1 answer
326 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 ...
Parduz's user avatar
  • 225
0 votes
1 answer
285 views

Is there a tool that preserves CSS formatting during HTML to PDF conversion?

I tried the options in Is there a script or tool that converts HTML to PDF? with command: pandoc documentation.html -o test.pdf --pdf-engine=xelatex but unfortunately they do not preserve the CSS ...
Harry McKenzie's user avatar
0 votes
0 answers
71 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 ...
Gabbodrummer's user avatar
0 votes
0 answers
105 views

Trying to connect to a SSH Server on WSL in the same network but the SSH connection is timing out

So I am trying to configure my Ubuntu 22 laptop to connect with my Windows 11 machine running WSL. It worked perfectly yesterday and I could visualize everything I wanted. But now I cannot connect. ...
MonkeySpades's user avatar
0 votes
1 answer
36 views

Using shopt extdebug inside .bashenv

I'm using Ubuntu within Windows Subsystem for Linux. With the approach suggested by this answer I can run code when a new non-interactive shell is started: $ cat ~/.bashenv if [[ $- != *i* ]]; then ...
Foo's user avatar
  • 232
1 vote
2 answers
384 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 ...
yossi-matkal's user avatar
0 votes
0 answers
185 views

WSL2 OpenSUSE - Getting XFCE to work

I've been using OpenSUSE-Tumbleweed on WSL2 and tried to implement XFCE. However, when I run startxfce4, the following is shown and XFCE doesn't start: /usr/bin/startxfce4: X server already running on ...
Someone0123's user avatar
1 vote
1 answer
40 views

Bash: Storing command result in variable messes up output

I am in WSL and I try to get the windows username: #!/bin/bash WINDOWS_USER=$("whoami.exe") echo "Windows username: '${WINDOWS_USER}'" but the output is kinda scrambled: $ ./...
binaryBigInt's user avatar
0 votes
1 answer
41 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 ...
N3wU53r's user avatar
0 votes
0 answers
153 views

WSL Ubuntu keeps disconnecting from internet

My WSL instance (version 2.0.14.0) is having internet connectivity issues. My machine is connected to the internet as I'm able to surf the web outside of WSL. The only temporary solution I've found is ...
cashes11's user avatar
1 vote
1 answer
114 views

No DNS for root?

It seems my configuration for root doesn't have access to DNS even though my lower-privileged user does. $ ping google.com PING google.com (142.251.32.110) 56(84) bytes of data. 64 bytes from 142.251....
Stephen Rasku's user avatar
0 votes
0 answers
59 views

Gnome White Screen of Death on AMD Laptop using Ubuntu;

I have installed Gnome shell onto Ubuntu on my new laptop (AMD Ryzen 7730U with Radeon Graphics). I am using WSL2. Upon inputting /usr/bin/gnome-session --session=gnome into the Ubuntu command line I ...
imissturnmills's user avatar
0 votes
0 answers
100 views

How to enable PMU in WSL2?

I am using WSL2 in Windows11 as my Linux host. Now I want to run perf in this WSL2, but I failed to do that with following errors. # uname -a Linux testhost 5.15.133.1-microsoft-standard-WSL2 #1 SMP ...
wangt13's user avatar
  • 443
0 votes
1 answer
670 views

pip install command fails

Q: how do I fix this pip install issue? I tried to install some libs with pip3 install pinecone-client openai tiktoken langchain and this happened: $ pip3 install pinecone-client openai tiktoken ...
yen's user avatar
  • 137
0 votes
0 answers
56 views

cron task can't read from a network drive (wsl)

I want to define a simple cron task that gets list of files and directories available in a specified folder and saves it to a file. Here's the output of crontab -l 30 * * * * ls /mnt/q > /tmp/test....
LA.27's user avatar
  • 113
0 votes
1 answer
171 views

Not able to install nodejs 21 in ubuntu wsl

When I try to install nodejs 21 in Ubuntu wsl I get the following error curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&sudo apt-get install -y nodejs Error The following ...
kumar's user avatar
  • 201
0 votes
0 answers
121 views

How to fix this issue about connecting to xrdp ? (parrotOS xfce on wsl2)

xypher@Oyo-chan:~$ sudo systemctl enable xrdp [sudo] password for xypher: Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/...
سحر's user avatar
  • 1
0 votes
1 answer
56 views

Accessing the same file between two different WSL2 installations in Windows?

I have two WSL2 installations, but I have a need to access/modify the same file on both of them. My first thought would be that maybe I need to set up a samba share between the two of them; but I'm ...
leeand00's user avatar
  • 4,675
1 vote
2 answers
3k views

Launching docker daemon in Ubuntu 22.04 LTS on WSL-2 fails because of iptables

I'm trying to run docker inside of Ubuntu 22.04.3 LTS running in WSL-2 on my Windows 10 machine. I have followed the instructions here. But it's still not working, I am getting the following error ...
Genku's user avatar
  • 11
0 votes
1 answer
57 views

Passing paths to Windows executables in Ubuntu WSL

I have a Windows Notepad++ executable whose path is assigned to npp alias. I'm trying to open .bashrc configuration file, but the behavior seems different based on whether my current working directory ...
Meio's user avatar
  • 21
0 votes
0 answers
34 views

WSL configuration on an external hard drive

I have WSL with Ubuntu distro installed on my external hard drive on Windows 11 Home. It takes only half of my system's RAM, and I want to increase the limit. I tried setting the configurations on the ...
ARIJIT SINGH's user avatar
0 votes
1 answer
620 views

Formatting USB SSD on WSL 2

I need to format a 1TB SSD connected through USB to the EXT4 file system. It is currently in NTFS. As I am on Windows, I thought the best way to get that is by installing the WLS 2 to be able to use ...
MauroL's user avatar
  • 3
2 votes
0 answers
1k views

Apt Stuck On Setting Up libc6

I have picked up bad habits from using other Debian distros. So I thought I'll install Debian WSL2 in my new computer. Someone told me Debian Stable is too old, so they use Debian testing for newer ...
GNUES's user avatar
  • 21
0 votes
1 answer
84 views

Ubuntu file system read-only after Windows system restore at previous point

I am running Ubuntu 18-04 via WSL on a Windows Virtual Machine in Azure. I needed to restore the machine to a previous point, and what happened was that the Ubuntu file system is now read-only.  When ...
Eliseo Di Folco's user avatar
0 votes
0 answers
110 views

Use Ubuntu with wifi-adaper AWUS036ach - rtl8812au

Every road I follow leeds to: E: Unable to locate package linux-headers-5.15.133.1-microsoft-standard-WSL2 E: Couldn't find any package by glob 'linux-headers-5.15.133.1-microsoft-standard-WSL2' E: ...
Henrik Stanislav's user avatar
0 votes
0 answers
227 views

Attempting to get image preview set up in Ranger, and having an issue with images appearing off-screen

So I am attempting to get image preview setup in ranger with WezTerm on a WSL2 install of Arch. I've got images showing with imgcat: But I am having an issue where ranger is just shoving everything ...
Antivash's user avatar
-1 votes
1 answer
70 views

Linux Mint 21 and Windows 11 dual partition fiasco on Lenovo Ideapad

I installed Linux Mint 21 on my Lenovo Ideapad this morning alongside Windows 11. It was successful and everything was working perfectly. Until my root partition for Linux was nearly full and I ...
Abhishek Agarwal's user avatar
2 votes
2 answers
3k views

WSL2 does not display GUI apps consistently

When starting a graphical application from WSL2 (Ubuntu), it is not rendering properly most of the time: As I move the mouse around, this "bad image" (which looks to me like a second ...
TimDH's user avatar
  • 21
5 votes
4 answers
779 views

How do I make WSL2's cd command accept windows paths?

I'm a WSL convert, coming from cygwin. One of the neat things cygwin does is accept unix and Windows file paths in the cd command. Of course, most Windows paths contain \, which is a special character ...
Daniel Kaplan's user avatar
0 votes
1 answer
94 views

apt-get update prevented by signature failure

I am trying to apt update on my WSL sudo apt-get update but getting this error. Err:6 https://linux.qmk.fm focal InRelease The following signatures couldn't be verified because the public key is not ...
Sanjid's user avatar
  • 3
0 votes
0 answers
22 views

Sign-in options problem in chromium with podman on wsl

I have some usage on aws-cli command on wsl debian/ubuntu no matter what distro, in which before some transition to other account everything worked fine with AWS SAML endpoint. Authentication did not ...
Marko Jovanovic's user avatar
0 votes
0 answers
104 views

WSL Ubuntu sessions are never actually closed (unless I SIGKILL them)

I have a WSL Ubuntu instance on my Windows 10 machine. The Ubuntu instance has different users. If I reboot the Ubuntu instance, and log in as root, I can see (using w) that no sessions exist except ...
Mads Skjern's user avatar
0 votes
1 answer
50 views

Error with kali linux win-dex-install

I just installed wsl kali Linux on Windows but this error came up while installing win-dex -y command. I need this for class and I can't figure it out. I'm new to Linux and need help, please. What ...
Keke V's user avatar
  • 1
0 votes
1 answer
274 views

How to connect wsl2 docker containers via ssh

In brief, I'm learning ansible and for that I need some docker machines to test playbooks. I've some raspberry and hyper-v machines which I've already configured and connected and test some playbooks. ...
edusandovall's user avatar
1 vote
0 answers
27 views

SSHing via WSL2 into remote debian vm results in "overriding" reverse search

When using WSL2 to SSH into a remote debian VM the reverse search behaves strange, eg. when searching for gitlab with dpkg -l | grep gitlab in history. Behaviour: (reverse-i-search)`gitlabkg -l | grep ...
dahe's user avatar
  • 131
0 votes
1 answer
876 views

none filesystem in WSL got large disk space

By running the following command, a path (/usr/lib/wsl/drivers) with none filesystem type appears: $ df -h Filesystem Size Used Avail Use% Mounted on none 16G 4.0K 16G 1% /mnt/...
Super Hornet's user avatar

1
2 3 4 5
9