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
32 votes
8 answers
76k views

WSL - DNS not working when connected to VPN

I've used WSL Bash/Ubuntu for several years, but for some reason this problem recently appeared. DNS is unable to resolve any names, both internal and external. The first time I re-installed WSL I ...
Morten's user avatar
  • 471
28 votes
6 answers
67k views

WSL 2 does not have /lib/modules/

I have the source code of a hello world kernel module that works in Ubuntu 20 in a laptop. Now I am trying to compile the same code in Ubuntu 20 but inside WSL2. For that I am using this: make -C /sys/...
Carlos Garcia's user avatar
26 votes
2 answers
27k views

How can I access UNC paths using the Windows Subsystem for Linux?

I have downloaded BASH for Windows 10. How would I navigate to a network address as I would in a Windows environment? I have seen SAMBA mentioned and have downloaded smbclient. I have tried: ...
David Prentice's user avatar
20 votes
3 answers
6k views

Use shift-Insert to paste in WSL

# When I do just Shift-Insert, I get ~$ 2~ # When I do Ctrl-V, then Shift-Insert, I get ~$ ^[[2;2~ Shift-insert works well in other situations, like Windows CMD or Git-Bash In wsl, I can use Ctrl-...
Philippe's user avatar
  • 1,445
18 votes
3 answers
13k views

rsync hangs after a few transferred files (Bash for Windows to FreeBSD)

I'm using "Bash on Ubuntu on Windows", from a Windows 10 Pro PC, to backup my media library to a FreeBSD server that acts as my NAS (it runs NAS4Free). This used to work perfectly but it recently ...
Astaar's user avatar
  • 283
14 votes
1 answer
3k views

How do I make my pc speaker beep in WSL?

How can I make ring the bell from command line using WSL (2)? I tried: beep echo -ne '\007' echo -e "\a" I have set bellstyle none in /etc/inputrc. Using Ubuntu 18.04 image.
Soerendip's user avatar
  • 279
13 votes
2 answers
9k views

Passing command to bash from cmd.exe (WSL) not working

I'm on a Windows 10 machine with Windows Subsystem for Linux enabled/configured (Ubuntu). To explain my problem let me present you with two scenarios: Scenario 1: I start a cmd.exe prompt I run bash ...
fnery's user avatar
  • 351
12 votes
3 answers
70k views

Reboot WSL from the console

How do reboot the current WSL instance from the WSL console? The usual 'suspects' are not working: reboot shutdown -r They fail with the messages: System has not been booted with systemd as init ...
ZEE's user avatar
  • 267
12 votes
3 answers
1k views

Shell dropping every other character of input

I manage software on a bunch of RHEL 6.10 VMs, typically either as a service account or root using sudo -i. Periodically, my shell starts dropping every other character. For example, if I type cd /usr/...
Michael Davis's user avatar
11 votes
2 answers
4k views

/dev/random EXTREMELY slow in Ubuntu for Windows 10 (WSL)

I am using Ubuntu 20.04 for Windows 10 (WSL2) on a Haswell laptop and I am getting about 0.6 bytes per second. As in 6 bytes total after 10 seconds of waiting. This is unacceptable. What is the ...
Chris_F's user avatar
  • 248
11 votes
1 answer
7k views

I edited a Linux file with a Windows program while using the Windows Subsystem for Linux, and now I can't access it any more

I'm using Bash on Ubuntu on Windows or another Linux distribution within the Windows Subsystem for Linux and I've edited a Linux file inside the lxss directory with a Windows editor. Now whenever I ...
Michael Homer's user avatar
11 votes
2 answers
32k views

Docker service not starting on new WSL2

Im trying to start docker in the brand new WSL2 with the following command : sudo service docker start then: sudo service docker status result : * Docker is running BUT on running the test ...
cosmicsage's user avatar
10 votes
5 answers
4k views

What is involved in a WSL "distribution"?

WSL allows the user to use any distribution of their choice, and Ubuntu is installed by default. I don't really understand the relevance of the distribution in the WSL context. My understanding is ...
Ben Carp's user avatar
  • 211
10 votes
4 answers
3k views

How do I make a shortcut to a path using two tilde characters '~~' (or similar) in WSL/Ubuntu/Bash? [duplicate]

I'm a newbie to Ubuntu/Linux world, so don't be hard on me. I'm using Ubuntu on Windows with WSL2 and the bash shell. Sometimes I want to copy files from Windows to Ubuntu or the other way around. I ...
Vivere's user avatar
  • 203
8 votes
7 answers
6k views

How to run windows executables from terminal without the explicitly specifying the .exe extension?

As the title says most of the question, how can we run windows executables without specifying the explicit .exe suffix at the end. For example reducing the call like explorer.exe . to explorer ., or ...
Animesh Sahu's user avatar
8 votes
5 answers
30k views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
Colin m Gilker's user avatar
8 votes
8 answers
8k views

Windows subsystem for linux - share ssh-agent?

I am running Ubuntu 16.04 within a Windows Subsystem for Linux (WSL) shell on Windows 10. From within a terminal I can start ssh-agent and use it many times over the life of that terminal. I can see ...
Dave's user avatar
  • 181
7 votes
2 answers
53k views

How do I access my Windows Desktop directory from inside Windows Subsystem for Linux? [closed]

I am using Ubuntu for my terminal. I am unable to access my Desktop and when I type "ls" nothing shows up. How do I log in via desktop environment in order to access my desktop files? huque@RNB:~$ ...
user avatar
7 votes
1 answer
25k views

Permission denied when trying to 'mv' a directory [closed]

Situation: I am using Bash with Linux subsystem for Windows(10); I am logged in as root. All folders and files in my current directory have rwxrwxrwx, and the same is true for descendant files and ...
bart5's user avatar
  • 73
7 votes
3 answers
4k views

Very slow auto-completion in Linux for Windows

For some reason auto-completion is very slow for me in WSL, it always takes several seconds display the result of, for example ll ~/Te<tab> (which would, after 2-3 seconds, print ll ~/Temp). I'...
laurent's user avatar
  • 2,008
6 votes
7 answers
30k views

Not able to initialize GUI for kali linux in wsl 2?

This error message is being displayed: TigerVNC Viewer 32-bit v1.10.80 Built on: 2020-06-15 22:33 Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst) See https://www.tigervnc.org ...
Karan Bakshi's user avatar
6 votes
1 answer
11k views

site-packages directory not found after installing pip3 with apt-get in Ubuntu WSL

I installed python 3 and pip into in Windows System for Linux shell, but it appears I have to find and specify site-packages directory manually if I want to run any python package executables. The ...
Evgeny's user avatar
  • 171
6 votes
1 answer
5k views

Ubuntu for Windows -- Can't open PDF files via xdg-open

My default application for opening PDF files is Adobe Acrobat XI Pro. I would like to be able to open PDF files using this program via the Windows Subsystem for Linux. Currently when I run xdg-open ...
Abraham's user avatar
  • 161
6 votes
3 answers
9k views

sudo not working on Kali running under WSL

I've installed WSL 2 and used Kali (previously had version 1.0). In both versions I have an issue - I cannot use sudo. As soon as I execute it, I get: Sorry, try again. Sorry, try again. sudo: 3 ...
zamunda68's user avatar
5 votes
4 answers
24k views

Repositories for apt-get source in WSL

I'm looking to apt-get the source code of packages in WSL. $ apt-get source bash Reading package lists... Done E: You must put some 'source' URIs in your sources.list These are the default sources ...
elig's user avatar
  • 570
5 votes
4 answers
725 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
5 votes
1 answer
1k views

Is it possible to mount associated path to WSL?

I used subst R: . for a faster way to access a folder. Is it possible to mount the R: "drive" to WSL? When I try running sudo mkdir /mnt/r then sudo mount -t ntfs R: /mnt/r, I am met with ...
Justin Chang's user avatar
5 votes
2 answers
16k views

"modprobe fuse" on WSL?

Trying to use veracrypt (console) in WSL. I make a volume, seems to work OK... but when I try to mount it: Done: 100.000% Speed: 5.0 MiB/s Left: 0 s The VeraCrypt volume has been successfully ...
mike rodent's user avatar
  • 1,142
5 votes
1 answer
703 views

Attempting to run a regular tunnel in Debian version 9.5 Linux

I entered the following line in the modules.conf file under the /etc/modules-load.d/modules.conf path: alias char-major-10-200 tun And then I typed the following command from the Debian 9.5 Linux ...
user avatar
5 votes
1 answer
2k views

execvp: /bin/bash: Argument list too long on Ubuntu 20.04 but OK on Ubuntu 18.04 (all using Windows 10 subsysem)

I bought a new windows 10 PC and installed WSL 2 using (as admin) wsl --install This installed WSL 2 with Ubuntu 20.04 LTS. I then copied my files from the old PC which was using the same windows 10 ...
Nasser's user avatar
  • 911
5 votes
1 answer
4k views

Run existing OS from Dualboot as WSL

I have an existing Dualboot-Setup with Windows 11 and Arch Linux, managed by grub. Is it possible to use my Arch System as WSL in Windows? $ lsblk -f NAME FSTYPE FSVER LABEL UUID ...
maddingl's user avatar
  • 624
5 votes
0 answers
1k views

Ubuntu ls doesn't show all the files, but when I "ls filename", it shows up? [closed]

I am using PHP 7.3 to move some files around, in a larger app. The PHP 7 is running on Ubuntu 20.04.4 in a wsl2 container in Windows 10. On reading through other questions, it seems this is probably ...
Buddha's user avatar
  • 51
4 votes
2 answers
2k views

Match Exec failing to execute anything

Testing out the SSH Match Exec feature. I have this minimal ~/.ssh/config: Match Exec echo ServerAliveInterval 60 and I am running ssh localhost I get Unable to execute 'echo': No such file ...
kabanus's user avatar
  • 311
4 votes
2 answers
8k views

gpg: signing failed: No such file or directory

I've been using GPG on WSL2 Debian for some time now and everything worked perfectly, but yesterday I started receiving an error about gpg signs when using git. Trying to run echo "test" | ...
hypnokat's user avatar
  • 151
4 votes
4 answers
7k views

Kali Linux on WSL break after upgrade

so my problem is as follows. I install Kali Linux from the wsl store with $wsl --install -d kali-linux. Following has been installed PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/...
re1gn's user avatar
  • 43
4 votes
2 answers
2k views

What is the system distribution in the Windows Subsystem for Linux (WSL)?

wsl.exe help (shown by wsl.exe --help) talks about "the system distribution": Options: ... --system Launches a shell for the system distribution. What is it? Searching in WSL ...
Pavel Shishpor's user avatar
4 votes
3 answers
9k views

lsmod gives error: "could not get list of modules" on Debian running on WSL

When I run lsmod or sudo lsmod, I get an error that says: libkmod: ERROR ../libkmod/libkmod-module.c:1655 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory Error: ...
m0mosenpai's user avatar
4 votes
1 answer
8k views

What is tar error message " Cannot open: Invalid argument"

I download xcrysden source package from here http://www.xcrysden.org/download/xcrysden-1.5.60.tar.gz Then I extract it using tar zxvf xcrysden-1.5.60.tar.gz However, I got several errors, as tar ...
user15964's user avatar
  • 713
4 votes
3 answers
14k views

How am I supposed to use Bash on Ubuntu on Windows environment?

I've used Ubuntu on VirtualBox for a while. Since I've upgraded to Windows 10, I thought it could be a good occasion to simplify my work and use the Ubuntu on Windows (the Unix command) you can ...
francoiskroll's user avatar
4 votes
3 answers
6k views

`ls` Attemptes to list nonexisting symbolic links on WSL

I have clean installed windows 10 (build 1803). I have installed Ubuntu from the Microsoft Store and enabled Linux subsystem. I have done this several times in the past, and never have I had the ...
Ptheguy's user avatar
  • 205
4 votes
1 answer
802 views

SSH linux subsystem windows 10

I can ssh the linux inside my windows 10, I usually use securecrt and I configured port 9999 , however once close the bash terminal, the SSH terminated and I get The remote system refused the ...
Oggy's user avatar
  • 77
4 votes
1 answer
7k views

modprobe: FATAL: Module cifs not found in directory /lib/modules/4.4.0-19041-Microsoft

I experienced the following error while running sudo mount -t cifs //xx.xx.x.xx/shares /xxx -o guest in Windows Subsystem for Linux. mount error: cifs filesystem not supported by the system mount ...
Natasha's user avatar
  • 149
4 votes
1 answer
3k views

hostnamectl command causes Failed to create bus connection: No such file or directory

I'm following this guide and I'm running into issues. https://www.tecmint.com/initial-ubuntu-server-setup-guide/ I am trying to create a linux machine in Ubuntu in wsl2 and then rename it using ...
Ambitious Intern's user avatar
4 votes
1 answer
4k views

Monitor SSH attempts in Windows Subsystem Linux

I am trying to look at failed SSH attempts, which I could do on a regular ubuntu machine by looking at /var/log/auth.log. I've taken a look at Debian - auth.log missing from /var/log and the WSL has ...
lostlostlostlostlost's user avatar
4 votes
3 answers
3k views

Open file behavior using Ranger in Windows Subsystem for Linux

I am using Microsoft Windows ([Version 10.0.15063]) subsystem for Linux and observe an unexpected behavior when opening files using Ranger file manager in bash. For example, I have ~/.config/rifle....
gpanda's user avatar
  • 141
4 votes
2 answers
5k views

WSL VPN Connection Problem

If possible, I'd like to be able to connect to my university's HPC from within WSL via the windows terminal or VSCode integrated terminal. I've only tried to connect via the windows terminal. I am ...
Nukesub's user avatar
  • 141
4 votes
0 answers
2k views

Why is my user manager not starting up correctly?

I am running Ubuntu 22.04 on WSL2 with systemd support enabled. My configuration worked fine until two days ago. I use TMUX and its plugins tmux-resurrect and tmux-continuum, the later one already ...
sebastianzander's user avatar
4 votes
1 answer
5k views

Windows Subsystem Kali Linux 13: Permission denied

I have installed Kali linux version Linux DESKTOP-0667P5P 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 GNU/Linux as a subsystem on my machine that is running Windows 10, I'...
Carlos Franco's user avatar
4 votes
1 answer
1k views

Way to bind ALT-F4 to exit in Bash (Bash on Ubuntu on Windows)

Really simple question. I know I can exit bash with "exit", CTRL-D, etc, and yes I know I'm using a Linux (sub)system, but when I'm on windows ALT-F4 is second nature. Naturally, I'm on windows when ...
Andrew Baumher's user avatar
4 votes
3 answers
16k views

not able to open terminator in bash windows 10

When opening terminator from my bash Windows 10, I am getting this error /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk....
user3015200's user avatar

1
2 3 4 5
9