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
0 votes
1 answer
22 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.conf i ...
Fares's user avatar
  • 3
2 votes
1 answer
207 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
  • 223
0 votes
1 answer
44 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
-1 votes
0 answers
24 views

use Kitty as Default WSL terminal

I am trying to set up kitty as default terminal on WSL2. I have looked all the solutions around but they all are deprecated. At the moment whenever I start kitty it opens a new windows, I would like ...
MrDevIll's user avatar
0 votes
0 answers
30 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
29 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
26 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
91 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
55 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
38 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
27 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
60 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
110 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
31 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
30 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
  • 429
0 votes
1 answer
184 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
  • 117
0 votes
0 answers
53 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
106 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
51 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
50 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,625
0 votes
2 answers
1k 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
  • 1
0 votes
1 answer
52 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
26 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
133 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
505 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
49 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
71 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
158 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
42 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
2k 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
672 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
59 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
20 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
77 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
175 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
566 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
0 votes
0 answers
94 views

Is it safe to delete system files from linux subsystem for windows?

Good evening. Is it safe to delete linux subsystem for windows system files? Suppose if I write rm -Rf somesystemdir, will anything to my main windows system? Like will it delete system files of ...
flow's user avatar
  • 1
1 vote
1 answer
2k views

Upgrade to latest kernel in WSL2 Ubuntu 22.04.3

I'm using WSL2 Ubuntu 22.04.3 in Windows 11. In Windows 11 I have enabled "Receive updates for other Microsoft products when you update Windows". If I run 'wsl --update', it says I already ...
Romstar's user avatar
  • 119
0 votes
1 answer
323 views

/tmp/.X11-unix: mount point does not exist

I installed Athena OS on WSL. I installed Win-KeX via pacman. Attempting to start Win-KeX is problematic. The mountpoint /tmp/.X11-unixdoes not exist. kex --win -s Starting Win-KeX server (Win) mount:...
Gerhard's user avatar
  • 101
-4 votes
1 answer
209 views

MySQL on Linux, running on Windows 10, gives error "Failed to connect to bus"

I’m trying to run MySQL on Linux which is running on Windows 10 but I’m getting an error: Failed to connect to bus: host is down on linux
ADESUNDAY 's user avatar
1 vote
1 answer
356 views

Is there a way to alias "redirect stdout and stderr to a file"?

Relevant Context: Redirect standard out command > file command 1> file Redirect standard error command 2> file Redirect standard out and standard error to separate files command 2> ...
Daniel Kaplan's user avatar
0 votes
0 answers
241 views

CPU Operational Load on WSL slows down entire computer

I'm running a Dell XPS15 with 64 GB Ram and a i7-12700H (6 performance cores, 8 efficency cores). I just recently (read: 2 weeks ago) did a clean upgrade and reinstall to Windows 11 with all up-to-...
Joe's user avatar
  • 101
-4 votes
5 answers
195 views

What is stopping Windows from being a subsystem for Linux, like WSL? [closed]

Just as the title says, I'm really curious about this and I want to learn why LSW can't be a thing.
RickyLo's user avatar
0 votes
0 answers
5 views

In oh-my-zsh, how do I get the bindkey keymap string for the key combination I'm pressing? [duplicate]

I'm trying to make the up and down keys go back and forward in command line history, respectively. While googling how to do this, I saw a lot of commenters giving their opinions on certain keymap ...
Daniel Kaplan's user avatar
0 votes
1 answer
102 views

Looking for the Nvida devices in my WSL2 Ubuntu implementation for SLURM GRES

I am trying something odd. I have a slurm cluster configured that has 4 compute nodes. 2 of which are Windows 11 machines running WSL2 and I have it working. right now, I am trying to add GPU support ...
Keven Scharaswak's user avatar
0 votes
0 answers
450 views

How to make all Windows network interfaces visible (and usable ) in WSL2?

I'm a student, I'm currently working on a project with the goal of integrating MultiPath TCP (MTCP) into WSL2. However, there's a significant challenge we're facing: WSL2 only exposes a single "...
Tiklyt's user avatar
  • 1
1 vote
1 answer
1k views

Mounting a VHDX ext4 partition in linux

I'm wondering how terrible an idea the following is or is not... I want to share an ext4 fs between WSL2 and linux using a fixed-size .vhdx image created in windows (residing on NTFS partition). ...
valenumr's user avatar
1 vote
0 answers
179 views

Permission denied in AUR helper paru

Recently, I tried the Archlinux on WSL2. But I got into trouble when I used Paru as the AUR helper to install some packages like bochs. It said: error: Permission denied (os error 13) I knew it was ...
Pollard Lee's user avatar

1
2 3 4 5
9