All Questions
Tagged with windows-linux-subsystem or windows-subsystem-for-linux
1,736 questions
-3
votes
0
answers
27
views
How to optimize Windows 11 for better performance on older hardware? [closed]
With the release of Windows 11, many users with older hardware are facing performance issues. I’ve tried upgrading drivers and disabling unnecessary startup programs, but I’m wondering if there are ...
0
votes
0
answers
15
views
Remote Desktop Error upon starting WSL Ubuntu 24.04
I have just installed Ubuntu 24.04 on a brand new computer running Windows 11 Home. As soon as the distro launches via wsl (and even immediately after install), I receive multiple of the following ...
1
vote
0
answers
101
views
WSL will not start ever since Windows 11 upgraded to 24H2
Windows 11 24h2 was installed on my PC this week. Ever since, WSL will not start.
When I press any key to install WSL, I get an error "connection with the server could not be established":
...
0
votes
1
answer
50
views
Upgrade of a freshly installed WSL1 Ubuntu 24.04 fails
I have freshly installed Ubuntu 24.04 in WSL1, then I wanted to upgrade the Ubuntu system using apt full-upgrade.
During the upgrade I got the following errors:
Setting up systemd (255.4-1ubuntu8.4) .....
0
votes
0
answers
13
views
wsl fails to obtain permissions except root to access a newly prepared drive
I have purchased a NVMe SSD and installed it onto my desktop. I performed disk initialization and formatting as usual.
But when I try to access the disk from wsl, the difference emerged.
my new drive ...
4
votes
2
answers
3k
views
How can I get rid of the "File Access Denied"?
Please pardon my frustration, but Windows file access permissions is really extremely bad:
In SQL-Server Management Studio, I have used a stored procedure in order to create a trace file, something ...
0
votes
0
answers
44
views
How do i mount VHDX drive into WSL so it persist after WSL reboots
How to persistently mount a VHDX file in WSL2?
I want to mount a drive in WSL2 using the following command:
wsl --mount --vhd "E:\CustomDrive2.vhdx" --bare
This allows me to bypass /mnt/e, ...
-1
votes
1
answer
44
views
"wsl --update" is apparently not a thing on my machine
I'm trying to get Docker Desktop to run (among other things) and I keep failing at WSL, or rather WSL2. Everywhere (the setup, online, whatever) tells me to just run wsl.exe --update or wsl --update.
...
0
votes
0
answers
37
views
ls: reading directory '.': Input/output error (WSL)
I am currently trying to mount 2 VDIs and compare them using WSL. However, I am unable to access certain folders, I am assuming due to permissions. These are VDIs that I have created in order to get a ...
0
votes
2
answers
51
views
How to install MEEP on Windows 11 using WSL?
I need to install MEEP on the work laptop, that means I cannot use Conda for license issues. So, I understand my next best choice is to install it through WSL. After trying to install it on WSL I get:
...
1
vote
0
answers
71
views
VIMRUNTIME points to wrong path after username change
I am pretty new to WSL2/Linux and also VIM. I decided to change my username inside WSL Ubuntu (even followed some steps that were supposed to make sure the old stuff worked with the new name) and ...
0
votes
0
answers
27
views
Installing two WSL instances on non-C drive point to the same instance
Following the steps outlined here, I downloaded and installed both Ubuntu 22.04 and Ubuntu 20.04. The Ubuntu 22.04 is a successful install and when I hit ubuntu.exe it brings me into it as expected. ...
2
votes
1
answer
387
views
How to view images in Windows Terminal?
Viewing images in terminal is something that can be quite convenient, however, Windows Terminal is no Kitty terminal, unfortunately. Prerequisites to easily resolve this particular dilemma: WSL ...
0
votes
0
answers
25
views
Why does my wsl take more space than what it says in the terminal
I ran du -h --max-depth=1 at home and it returns 4.7G however, installed apps in Windows settings say that it's taking about 28.9 GB. I haven't installed any huge packages as dpkg-query -W --...
0
votes
0
answers
51
views
How to mount a Windows folder in WSL (Debian) with fstab?
I have a folder I want to mount at start-up in WSL (2.3.24.0 running a Debian image) - I can mount it manually with sudo mount -t drvfs c:/projects/source/repos /mnt/repos but when I add it to /etc/...
1
vote
2
answers
395
views
Curl error (6): Couldn't resolve host name
I have problem with DNS resolving in my WSL1, here is the example:
[rootname@hostname ~]# yum update
CentOS Stream 8 - AppStream 0.0 B/s | ...
1
vote
2
answers
78
views
Does WSL support snapshot feature like Oracle VirtualBox?
I want to explore the Linux systems programming course by University of Colorado and for that I need to install Linux as a VirtualBox VM on windows as it has a snapshot feature which lets the user ...
0
votes
0
answers
111
views
How to enable the VM Platform feature and how to ensure virtualization is enabled in BIOS when running WSL2 (Ubuntu) on a Windows11 VM in VirtualBox
I have running Windows 11 Enterprise in Virtual Box 7.0.22.
I was able to install the wsl system itself in Win 11. So I can run the wsl command in PowerShell. E.g.:
$ wsl --list
WSL has no installed ...
-2
votes
1
answer
132
views
Windows 10 subsystem ubuntu password lost. How to sign in as root?
I have a Ubuntu Linux subsystem (wsl) installed in my personal Microsoft Windows 10 laptop. However, when the Ubuntu was installed, somehow the password was unknown (or no password at all). I have ...
0
votes
1
answer
143
views
Using GUIs with WSL2, MobaXterm and Ubuntu
I have a setup for running programs with GUIs in Ubuntu with MobaXterm and Windows Subsystem for Linux 2. In my .bashrc I set the DISPLAY variable with export DISPLAY=$(cat /etc/resolv.conf | grep ...
0
votes
0
answers
15
views
WSL 1 to access shared network drives on start
How for WSL 1 to access shared network drives, and set it up only once on system start?
My network share is already mapped to a drive letter (Z:), however my WSL 1 only automatically mounts my local ...
3
votes
1
answer
102
views
Error 0xc0000606 when trying to use WSL2
I am trying to switch from WSL1 to WSL2 on Windows 10 Pro but I get this error
D:\Users\superkogito>wsl --list --verbose
NAME STATE VERSION
* Ubuntu-22.04 Stopped ...
0
votes
0
answers
53
views
windows terminal run .sh in wsl distro in the linux context
i'm currently trying to configure a windows terminal profile to launch directly in a wsl distro (Ubuntu) and run a .sh-file in the linux context which doesn't seem to work, in the distro node is ...
0
votes
0
answers
222
views
Errors with starting Windows Subsystem for Linux after installation
I have just installed WSL and tried to run it after a reboot but get errors. Am I understanding something not correctly?
In the PowerShell, run as an administrator:
PS C:\Users\Marcel> wsl.exe --...
0
votes
0
answers
47
views
How to run an executable built in WSL, from Windows Explorer
I am able to build Linux GUI applications from source under WSL using GCC/Clang etc. I can also run them from the WSL command prompt (and I understand that I can have multiple command prompts open ...
0
votes
0
answers
42
views
Trying to copy files from File Explorer to my HDD with WSL and keep getting a storage space error
I have a Plex server running on Ubuntu Server 24.04 so I formatted my brand new 8 TB NAS drive as EXT4 to store all my media files. I've set up WSL on my Windows 11 machine and can access the drive. ...
0
votes
1
answer
37
views
Encoding broken when switching to fish shell in Ubuntu WSL
When switching from bash to fish in Ubuntu WSL, the character encoding becomes broken in vim (and other terminal apps). In fish itself, everything looks fine:
But when I open vim from bash (first ...
0
votes
0
answers
67
views
WSL: Forward my windows ssh-agent works, but opening a ssh connection does not?
I mostly followed this guide https://stuartleeks.com/posts/wsl-ssh-key-forward-to-windows/#final-solution and used this handy script to automate the task https://github.com/rupor-github/wsl-ssh-agent/...
0
votes
0
answers
60
views
How to export NFS share from WSL automatically mounted NTFS partition?
I'm using WSL2 with Ubuntu. I installed NFS server. I have drive D:\ which is automatically mounted in WSL under /mnt/d. When I add this path to /etc/exports and issue sudo exportfs -a I get exportfs: ...
4
votes
2
answers
1k
views
How to use container in WSL 2, without installing the Hyper-v feature?
OS: Win 10 Entreprise 22H2 build 19045
Hyperviseur: VMware® Workstation 17 Pro
Is it possible to install WSL on a Windows client, without installing the Hyper-v feature?
My problem is that I use ...
1
vote
1
answer
49
views
There is no ping from docker to some external resources
Description of the problem
Docker-Desktop with WSL2 (Ubuntu 20.04) is installed on my Windows 10 work computer
I run the docker with the command: docker run -it --rm -p 80:80 nginx /bin/bash
In it, I ...
0
votes
1
answer
21
views
Hostnames being resolved to incorrect IPs on WSL
oreo@laptop:/mnt/c/Users/azhan$ curl google.com -v
* Trying 216.239.36.10:80...
* Trying 2607:f8b0:4007:814::200e:80...
* Immediate connect fail for 2607:f8b0:4007:814::200e: Network is ...
0
votes
0
answers
93
views
wsl.localhost\Ubuntu keeps randomly becoming inaccessible
I've been using Ubuntu 22.04 LTS via WSL2 on Windows 11. Consistently, however, Ubuntu suddenly stops working and a dialogue box pops up saying "wsl.localhost\Ubuntu-22.04 is not accessible"....
2
votes
0
answers
2k
views
wsl --update just tells me "A specified logon session does not exist. It may already have been terminated."
I'm running Windows 11, 23H2, 22631.4169.
I've got WSL enabled, installed, and running.
When I open an Ubuntu tab in Terminal, I get a shell prompt. I've been able to, for example, fetch code from ...
0
votes
1
answer
196
views
Lost sudo privileges in WSL Ubuntu
I commented out all the sudo privileges in the file sudoers, now I cannot run any command. As I lost sudo privileges I cannot sudoers to re-enable it.
I am using WSL Ubuntu Ubuntu 22.04.4 LTS (GNU/...
1
vote
0
answers
98
views
Accessing a RDP-share from Linux WSL
I am connecting from Linux to a Windows 11 machine via xfreerdp (RDP). As with other RDP clients, xfreerdp allows you to mount shares:
xfreerdp ~/Documents/myConfig.rdp /drive:dotfiles,dotfiles /u:...
0
votes
0
answers
205
views
Can't Install WSL On Windows Home Despite Enabling Hypervisor Platform And Linux Subsystem
I'm trying to install WSL on Windows Home. I enabled Hypervisor Platform and Linux Subsystem (This is Home so there is no Hyper V). What should I do?
Here is the error I got.
I enabled Linux subsystem ...
1
vote
1
answer
120
views
How do I use the running ssh agent when calling wsl commands from cmd
I am trying to call rsync from cmd using "wsl rsync" however it always asks for my ssh key password. How can I use the running agent within wsl instead of needing to type my password every ...
0
votes
0
answers
40
views
How to uninstall WSL from Windows 10 [duplicate]
So basically I installed WSL from PowerShell using wsl --install command. After I didn't need use for it, I uninstalled Ubuntu from the apps and feature in settings. When I restarted my pc, the ...
0
votes
1
answer
192
views
How to beep from WSL?
How can I beep from WSL terminal?
Running on Windows 10 x64 with WSL2 running Ubuntu 24.04 LTS
Things I have tried that didn't work:
$ tput bel
$ echo -ne '\007'
$ echo -e "\a"
all produced ...
0
votes
1
answer
2k
views
How to Enable Windows Subsystem of Linux in Windows 11
Out of the box, Windows 11 recognizes the wsl command exists. However, it does not take me anywhere except show me info about flags for wsl --install:
First, I did the following to avoid unecessarily ...
0
votes
0
answers
57
views
How to Set Up Dev Environment Through SSH to remote Desktop's WSL?
I'm seeking advice on setting up a development environment given some constraints. Here's our current setup:
We have a laptop with low permissions, and we can only install VSCode on it.
We can use ...
0
votes
1
answer
321
views
I have WSL disabled in Windows Features, and I've uninstalled all WSL related software. But getting a WSL related error in the Event Viewer
I'm getting the following error (Event ID: 7023) in Event Viewer:
The WSLService service terminated with the following error:
The service cannot be started, either because it is disabled or because ...
0
votes
0
answers
52
views
Issues starting WSL Ubuntu services when Windows boots up
Today I was trying to set up my WSL Ubuntu's Nginx web server to automatically start on Windows 10 boot-up.
I had previously been loading my WSL Ubuntu terminal, running sudo su - to switch to root, ...
0
votes
1
answer
22
views
How do I use Ubuntu 'regextype egrep -regex' negative lookbehind
Assume I have the following two files:
fileA.pdf
pp_1234_fileB.pdf
If I am to run the following in PowerShell, the file, fileA.pdf is returned.
get-childitem -file -recurse | where-object {$_.Name -...
0
votes
0
answers
53
views
WSL2 cannot communicate with Windows gateway
Running WSL2 on Windows11.
Recently WSL2 looses communication to Windows firewall.
This is not a DNS issues on the WSL system.
WSL uses 172.22.32.1 as its DNS server and gateway.
This address is ...
0
votes
0
answers
66
views
WSL 2 ssh server not working
I'm trying to set up an ssh server in Ubuntu on WSL2. I have the server running in Ubuntu on port 22, and then I've configured port forwarding from port 25252 on the Windows host to port 22 in Ubuntu. ...
0
votes
0
answers
50
views
What should <InstallLocation> be when I import previously exported WSL distro?
I want to clone a distro.
When I installed Ubuntu in WSL2 and Windows 11, using the canonical guide. At no point did I need to specify where to install it. It just installed it.
Maybe its in this ...
1
vote
0
answers
73
views
Can't Update to WSL 2 - Error 0x80041002
I recently started using WSL, and whenever I install any distro, it gives me this 0x80041002 error. So I installed Ubuntu with WSL 1, and I cannot convert to WSL 2. This is the error:
Conversion in ...
1
vote
0
answers
98
views
WSL1: Permission denied during apt
After working with WSL for about a year, I am suddenly experiencing permission problems.
sudo su
(base) root@...:/mnt# apt-get update && apt-get install jq
Hit:1 http://deb.debian.org/debian ...