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
1 vote
0 answers
14 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
11 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
37 views

Problem with WSL2 "Class not registered" on windows [closed]

yesterday my wsl worked just fine and today when i opened my pc and wanted to use arch linux for wsl it said that wsl isnt enabled. I tried re enabling it using dism.exe /online /disable-feature /...
Crazegi Contact's user avatar
0 votes
0 answers
13 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
  • 397
0 votes
1 answer
63 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
38 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
66 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
22 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
39 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,595
-1 votes
0 answers
26 views

Remote desktop can't connect to remote computer (parrotOS xfce)

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
2 answers
576 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
44 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
23 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
54 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
1 vote
0 answers
188 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
  • 11
0 votes
1 answer
45 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
51 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
43 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
33 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
1 vote
2 answers
776 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
  • 11
1 vote
3 answers
192 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
50 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
50 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
38 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
132 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
368 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
78 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
1k 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
237 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
182 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
329 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
182 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
165 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
89 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
388 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
879 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
159 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
0 votes
1 answer
626 views

WSL connect to remote server and use X server from windows

We have our company server, where we connect using ssh and private key. There we have oracle wallet manager (owm), but it can only be run using Xserver. If I setup putty in windows, allow x11 ...
Tom's user avatar
  • 3
1 vote
0 answers
158 views

wsl2 and win11: can't move GUI application

I am running GUI applications from wsl2 (Ubuntu 20.04) on Win 11. To make things work, I do a export DISPLAY=:0 in .bashrc, and I run Xserver with "Disable access control" enabled. ...
Roland Hohensinn's user avatar
-2 votes
3 answers
1k views

Transfer files from windows to Kali linux

hello there I have set up a Linux virtual machine installed on my pc from Microsoft store up and running with windows also installed on the same pc. I cannot access files in the windows directory and ...
Kiruthick's user avatar
0 votes
0 answers
717 views

ping wsl ubuntu from windows host

I have a Ubuntu instance running through WSL2. I want to ping this instance from the host machine and unfortunately, it fails. However, I can ping from ubuntu to windows. win: ipconfig returns 192....
Vivere's user avatar
  • 203
0 votes
1 answer
200 views

How can I tell git (in WSL2) to continue using the main network and not the VPN?

I work with git in WSL2 (Ubuntu) on Windows and with a bitbucket hosted repo (it's on the Internet) and normally everything works fine. But the moment I connect my Windows machine to the company ...
Eden's user avatar
  • 1,181
1 vote
1 answer
286 views

How to launch Kitty "inside" a wsl kali win-kex instance?

a newbie here. I just installed kitty on wsl kali-linux, I am using win-kex to use a GUI. When I launch kitty opens on another window "outside" the winkex instance: like a Windows app. So, ...
kapichy97's user avatar
0 votes
0 answers
24 views

Windows PowerShell command resulting in unexpected behaviour [duplicate]

This looks more complicated than it needs to be, as it's the result of me trying to see what was happening. It was initially all in the find -exec command. This is in Linux on Windows WSL, where I am ...
paradroid's user avatar
  • 1,203
0 votes
1 answer
23 views

How to insert a quoted string in quoted command

Here i need to give in wsl ubuntu a path like this $ alias gdt="cd /mnt/c/users/Azad's/desktop" but it didn't take this, how to approach for this to give Azad's in quoted line.
C S Pallapu's user avatar
0 votes
0 answers
49 views

Automating proxy configuration across multiple applications without plaintext password

More generally than the post described here: Using bash functionality in rc files I would like to set an appropriate proxy configuration for all/multiple applications including but not limited to: ...
Sterling Butters's user avatar
2 votes
0 answers
49 views

Why does runing as sudo require LIBGL_ALWAYS_INDIRECT?

I think I understand what LIBGL_ALWAYS_INDIRECT does, per this explanation: What does LIBGL_ALWAYS_INDIRECT=1 actually do? However I am having trouble understanding when/why it is needed? In my case, ...
Will I Am's user avatar
  • 192

1
2 3 4 5
9