Questions tagged [windows-subsystem-for-linux]

Use this tag for questions relating to Windows Subsystem for Linux, the compatibility layer developed by Canonical and Microsoft to run Ubuntu programs natively in newer versions of Windows.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
39 views

How to diagnose/fix mysql install issue returning "error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)'"?

I'm getting the following error for a couple of commands I'm trying to run AND I don't know the password whenever I'm prompted for that. (note: I just updated my ubuntu distribution, but I previously ...
0 votes
1 answer
15 views

Can Not Update/Upgrade After Unregistered 2 versions' Ubuntu and Installed one Ubuntu as WSL

Had successfully update and upgrade Ubuntu on WSL succesfully: then I unregistered the 2 version of Ubuntu and installed one Ubuntu. Got following errors: Tried ~$ grep -nvr "^#" /etc/apt/...
-1 votes
0 answers
21 views

laravel sail won't install or start. same goes with composer update

I've git cloned a project. my project from github. the files are correct, checked them up. On my pc I use sail and it works. however, it fails on my new station. sail up (or build) raises this error: [...
  • 129
0 votes
0 answers
35 views

can ping IP but not hostname

I'm working on WSL2 on Windows 10. I am not able to update, upgrade or whatever packages I want to install. I tried modifying my "resolv.conf" file as: nameserver 8.8.8.8 On other IP, it's ...
0 votes
0 answers
28 views

Ownership issues with WSL2 and Ubuntu 22.04

I'm setting up a fresh installation of Ubuntu 22.04 on Windows 11, and I've had several issues related to the default ownership and permissions. I'll go through the issues I've had and my attempts to ...
  • 1
0 votes
0 answers
28 views

Format USB drive that is formatted as FAT32, into EXT4 from Windows 11/WSL

I have a USB stick that is formatted as FAT32. I want to format it as EXT4 but I cannot do that from Windows despite following the advice. As the usb stick is formatted in FAT32 I can't see it in WSL, ...
  • 101
0 votes
0 answers
29 views

Ubuntu installation error on Windows 10

I am getting the following error when installing Ubuntu (version?) WslRegisterDistribution failed with error: 0x80370102 Please enable the Virtual Machine Platform Windows feature and ensure ...
0 votes
0 answers
14 views

how to remove Wayland from Ubuntu on WSL

I wish to run sugar on WSL on windows though I don't seem to get any response at all when I input the command sugar I asked the people over at sugar and they say it has to do with the fact that my WSL ...
-2 votes
0 answers
23 views

-bash: ./configure: Permission denied and chmod: changing permissions of 'configure': Operation not permitted

I try to run ./configure to install fftw 3 and the output is -bash: ./configure: Permission denied and then I try to change the permission using chmod +x configure on the directory but the output is ...
-1 votes
0 answers
21 views

Switching login system in Ubuntu WSL without display manager or installing a display manager

I was trying to follow along with this (https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md#packaged-sugar) I installed sucrose on my WSL and then the next step was logging ...
0 votes
1 answer
41 views

Use external X server for application (emacs) on WSL1 (recently upgraded)?

On Jan. 23, 2022, I was led by MS Windows 10 to upgrade the WSL on my Windows 10 (20H2). It promised to support WSL2 and WSLg. However, the support of graphic display is not possible. I can only start ...
  • 211
0 votes
0 answers
42 views

How do I fix the errors I'm getting while trying to install/run GNOME? [duplicate]

I am using wsl (wsl2 I believe). I have GNOME installed, but Ubuntu will not boot into it. I have tried using the line sudo reboot like the guide says to do, but I got this error message. System has ...
0 votes
0 answers
15 views

WSL2 - How to use apps installed on root while logged into another user

Basically, on my root user in WSL2 I have a /.vscode directory and a /.docker directory for those respective applications. this allows me to type in the "code ." command and open a folder in ...
-2 votes
0 answers
20 views

I'm getting pwd output as root. Where are my files i saved from a new directory i made [closed]

I am new to WSL and have installed it for my lab usage. Please suggest some videos or posts fro me to learn from.1
0 votes
0 answers
32 views

File policy-rc.d in WSL1 not found

I am trying to resolve the udev issue in my WSL, and I am following the "Apt-get upgrade errors" troubleshooting steps in the WSL docs. To fix issues related to udev, follow the following ...
-1 votes
0 answers
44 views

Problem with h5py (error: libhdf5.so: cannot open shared object file: No such file or directory)

I have a problem with h5py. I'm trying to install a package (P.E.P.P.E.R), but when trying to install, it will give an error. error: libhdf5.so: cannot open shared object file: No such file or ...
-3 votes
1 answer
52 views

apt error on WSL caused by libc-devtools, libc6 [closed]

I'm using WSL, and when I try to install or update anything, the I get a message that I should try: apt --fix-broken install screenshot of error This is the error: Reading package lists... Done ...
0 votes
0 answers
34 views

wsl ubuntu Temporary failure in name resolution only on my home network

I'm running Ubuntu 20.04 on WSL2. When trying to ping google.com, I get the "Temporary failure in name resolution" error, and it might be specifically related to my home network. My wsl.conf ...
0 votes
0 answers
41 views

Startup error in WSL since upgrade

I recently opened my Ubuntu app, installed with WSL1 and was greeted with a friendly message to upgrade WSL with the command wsl.exe --update. I did so, restarted my computer, but am now greeted with ...
4 votes
3 answers
278 views

How do you efficiently/correctly extract data from a tarball into a new Ubuntu distribution?

I am updating my Ubuntu distribution from 18.04 to 22.04. I exported the Ubuntu 18.04 instance with wsl --export Ubuntu-18.04 <file.tar> to a tarball and am trying to figure out how to ...
0 votes
0 answers
111 views

can't initialize iptables table `filter': Table does not exist (do you need to insmod?) - iptables is not present

I am trying to install NGINX and Certificate by following this enter link description here in WSL But at the Step 5: Allow Nginx Traffic, I am getting error after the command sudo ufw allow 'nginx ...
  • 1
0 votes
1 answer
46 views

sudo password on wsl2 Linux on windows 10

I just started using WSL2 (ubuntu 20.04) on Windows 10. If I want to run makefiles or basic stuff like deleting a directory I get" you do not have permission" and then I have to use sudo ...
  • 1
4 votes
1 answer
337 views

Mismatch between my terminal/VS code/wsl.exe Ubuntu version (18.04), and /etc/lsb-release (22.04.01) after running sudo do-release-upgrade?

I am on WSL2 and had/have Ubuntu 18.04 installed. I went through a couple of steps to upgrade versions (enabling systemd, creating a symbolic link for apt-pkg, etc.). I was finally able to run sudo do-...
1 vote
1 answer
32 views

Installing Ubuntu with WSL - Error Parameter incorrect

I have been trying to install WSL and Ubuntu on my Windows laptop. My laptop is running on Win 10 Home with OS build 19045.2486. As I follow the instruction from: https://learn.microsoft.com/en-us/...
  • 11
1 vote
1 answer
103 views

What causes the error code: Wsl/Service/CreateInstance/CreateVm/0x8007000d and how to fix it?

I have a bunch of wsl ubuntu distributions installed on my Windows 11 box and they all used to work. Now, when I attempt to boot (run them from wsl) any of them, they all fail with "The data is ...
0 votes
1 answer
20 views

WSL2 I was able to cd into a non-existent folder, how is that possible?

(base) nyck33@LAPTOP-EEVJTJJ4:~$ cd $gatech (base) nyck33@LAPTOP-EEVJTJJ4:/mnt/f/1_gatechSpring2023$ cd Infosec (base) nyck33@LAPTOP-EEVJTJJ4:/mnt/f/1_gatechSpring2023/Infosec$ cd .. (base) nyck33@...
2 votes
0 answers
60 views

Windows Subsystem for Linux 2: Temporary failure resolving 'archive.ubuntu.com' [duplicate]

I just installed Ubuntu 22.04 with Windows Subsystem for Linux following this instructions. When I run sudo apt install update, I get this errors: Ign:1 http://security.ubuntu.com/ubuntu jammy-...
1 vote
1 answer
69 views

How can I set a shortcut to my Windows folder in WSL/Ubuntu?

My school homework files are on the Windows file system at /mnt/c/Users/nyck33/Documents, and it's a hassle to cd ../.. from home then cd mnt/c/Users/nyck33/Documents each time. How can I set a ...
1 vote
1 answer
387 views

unable to get cuda 12 working ubuntu WSL2 (pytorch)

I've been trying for days now to get cuda working on WSL2 Tried cuda 12 not working, tried to deinstall it all from console. I ran #instead of cuda12 i gave up on it, went for 11.6.2 wget https://...
  • 121
1 vote
0 answers
88 views

Is it safe to mount a Linux partition mounted using WSL2 in hibernated Windows 11?

WSL2 comes with support for mounting Linux partitions from non-removable drives in updated Windows 10 and Windows 11. When creating an ext2/3/4 partition, for example, on an internal drive, this ...
0 votes
0 answers
36 views

Terminator on Windows subsystem on Linux needs two enters to work!

When I start terminator on Windows subsystem on Linux I need to write the command and then press Enter key twice to run a command only for the first time, then it becomes normal, some info: on ...
  • 1
1 vote
1 answer
122 views

WSL: when I try to use GUI package get error "Can't open display"

I'm running through the tutorial on: https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#5-install-and-use-a-gui-package After installing X11 applications I try to ...
  • 11
1 vote
1 answer
22 views

'.*' regex properly not functioning in ubuntu of wsl

There was a file with the following text: foo bar baz bar foo baz baz foo bar bar baz foo foo baz bar baz bar foo I needed to get the 1st one foo bar baz and the 5th one foo baz bar as the output to ...
0 votes
1 answer
31 views

Virtual host alias doesnt work but localhost:80 does

Im trying to set up virtual hosts via apache2 on WSL2. I have my webpage working properly by http://localhost:80 but not under http://myalias.local I have positive response for ping myalias.local in ...
2 votes
1 answer
87 views

The following signatures couldn't be verified because the public key is not available - multi try

I have Ubuntu 20.04 on my WSL and I am facing no pub key error during sudo get-apt update. I went through many questions and everywhere are written almost the same answers like: sudo apt-key adv --...
0 votes
1 answer
77 views

Cannot download files on WSL "Permission Denied" "Cannot write to [...] (Success)"

Im trying to install Bazelisk on WSL but when I try to download it typing: "wget https://github.com/bazelbuild/bazelisk/releases/download/v1.15.0/bazelisk-linux-amd64" a message shows up ...
2 votes
1 answer
37 views

Two startup daemon processes working together in wsl2?

We normally know that WSL2 normally do not have systemd it generally starts on init daemon! But recently from year 2022 we can also use systemd by enabling the sysboot to systemd in wsl.config. So I ...
0 votes
0 answers
70 views

mount failed: Operation not permitted

when I try this command sudo mount -o ro,loop win7ultimate.iso /mnt/win7 I gave mount: /mnt/win7: mount failed: Operation not permitted. I tried to use these commands in wsl: https://github.com/...
0 votes
1 answer
28 views

when sourcing a bashrc how to get the line number of the error messages

Following this post, I am souring a bashrc file inside the WSL2/Ubuntu by: source /usr/share/openfoam/etc/bashrc but I get lots of error messages: -bash: /usr/share/openfoam/bin/<someFile>: No ...
  • 803
0 votes
0 answers
26 views

Networking on Ubuntu WSL2 - How to access workload running in WSL2 from host

I am running Ubuntu20.04 WSL2 on a Windows10 laptop. When I run a program (python or Java) in WSL2, I am able to access it from host using http://localhost: But I am unable to access any Kubernetes ...
  • 1
2 votes
1 answer
137 views

Restrict access to \\wsl$

When mounting a filesystem in WSL2, is it always accessible from the host using \\WSL$ or \\wsl.localhost\? I would like to mount a luks-encrypted filesystem inside a WSL2 environment and keep it ...
  • 2,206
8 votes
1 answer
1k views

Errors attempting to run GPT detector under Ubuntu 22.04 WSL

While the OpenAI detector has been useful in identifying content that is created by ChatGPT and other OpenAI-based models, as usage increases (especially by users here on Stack Exchange sites), it's ...
  • 11.6k
1 vote
1 answer
155 views

Cannot Install Ubuntu on WSL 2 Windows 11

I'm trying to install Ubuntu on my Windows 11 machine and I get this error: WslRegisterDistribution failed with error: 0xffffffff Error: 0xffffffff (null) System Info: Edition Windows 11 Home Single ...
0 votes
1 answer
86 views

WSL Ubuntu will not open [closed]

I have installed WSL Ubuntu. When I click the Ubuntu icon at the Start menu it returns a command screen with username@computername:~$. I do not know what to enter after $. I have tried wsl and ububtu ...
0 votes
1 answer
417 views

Error when installing WSL and Ubuntu on Windows 11

I'm attempting to install Ubuntu on a Windows 11 pc (build 22621.963) using WSL, but I'm receiving the following error: Ubuntu was installed from the Microsoft Store. Windows Features: Virtual ...
0 votes
1 answer
117 views

Enabling systemd support in WSL caused an resource invalid error

I upgraded my OS to Windows 11 in hopes of getting Systemd support in my WSL2 Ubuntu distro. But after I enabled the Systemd support using the documentation on Microsoft Developer blogs, I'm receiving ...
1 vote
1 answer
36 views

What does ":" do when used in export env variable?

I am just trying to following this post. I have replaced "/some/directory/" by "/usr/lib/x86_64_linux-gnu/", resulting in export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/...
  • 125
0 votes
1 answer
40 views

Driver support for virtual installations

This question was about installing F2FS, which is supported by Ubuntu via a module in the default kernel of version 22.04. However, it was discovered that the question pertained to a WSL2 installation,...
  • 873
3 votes
2 answers
360 views

How to solve "Please make sure libcudnn_cnn_infer.so.8 is in your library path!" (WSL Ubuntu)

When I try to run a PyTorch program, it fails: Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory Please make sure ...
3 votes
1 answer
311 views

WSL2 exits with code 1 on mount

I'm a noob in both Windows and Linux, so please bear with me. After playing with some commands, among others rm -rf bin my WSL2 distro exited and now I get the following when I try to boot it up ...
  • 31

1
2 3 4 5
24