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
0 votes
0 answers
16 views

Can't figure out how to add padding to left side of terminal in wsl 2 Ubuntu 12.04.5 (On Win11)

Stack Exchange said this wasn’t appropriate for their website so hopefully it’s appropriate here. I installed WSL 2 and Ubuntu following directions for a class and am setting up my terminal to be how ...
  • 101
0 votes
1 answer
27 views

QEMU not installing

So I wanted to install QEMU on my Windows laptop running Ubuntu 20.04 using: sudo apt-get install qemu-system-i86 -y and I got this error. Reading package lists... Done Building dependency tree ...
0 votes
1 answer
31 views

Multiple UtilTranslatePathList errors when restarting Ubuntu on WSL after a shutdown

After performing a sudo systemctl poweroff in Ubuntu in WSL and restarting, I'm seeing: <3>WSL (814) ERROR: UtilTranslatePathList:2671: Failed to translate C:\Program Files\PowerShell\7 <3>...
  • 9,716
1 vote
1 answer
40 views

Systemd in degraded state after enabling in WSL

After enabling Systemd per this answer in Ubuntu 22.04, sudo systemctl status shows State: degraded. Additionally: $ sudo systemctl --failed UNIT LOAD ACTIVE SUB ...
  • 9,716
0 votes
0 answers
26 views

How do I fix this error about endpoints when opening WSL?

I have an Ubuntu distro with WSL for my Windows laptop, it used to work fine until a couple days ago and can´t seem to fix it. I get this message There are no more endpoints available from the ...
  • 1
-2 votes
1 answer
36 views

ISP installation

As I mentioned before I was trying to install ISP through the instructions of https://projectisp.github.io/ISP_tutorial.github.io/install/#installation-for-windows-users. I continued until step 6. But ...
2 votes
1 answer
70 views

Cannot start gnome-session after enabling Systemd on latest WSL2

I'm using Ubuntu 22.04.01 on WSL2 on Windows 11 22H2 with Systemd support. However, though I've followed all the instructions mentioned in this answer, I still can't start gnome-session properly. It ...
  • 21
0 votes
1 answer
49 views

Ubuntu on WSL started defaulting to root user

Yesterday, all was well. This afternoon I restarted my computer after some file downloads from my class bogged down my laptop. Upon restarting and opening Ubuntu, it defaulted to root@<mysystem>:...
  • 1
0 votes
1 answer
33 views

"vcxsrv.exe: command not found" Error on WSL Ubuntu

I am a seismology student and I'm new to programming. Recently I tried to install ISP for seismology via the instruction mentioned in this article. I installed WSL Ubuntu, then I installed vcxsrv.exe. ...
0 votes
1 answer
57 views

How does one do a system upgrade Ubuntu (Preview) from the MS Store?

Earlier this year, Canonical added an "Ubuntu (Preview)" version for #WSL to the Microsoft Store, this was back when 22.04 was the current release. The preview is supposed to always be for ...
0 votes
0 answers
22 views

Issues installing mongodb on windows 11 WSL 2 running Ubuntu

So, I was trying to install mongodb on WSL following the step by step guide at Microsoft's site. This one: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-database But by the moment I ...
0 votes
1 answer
37 views

Unable to run "nvm install --lts"

I get this error. Installing latest LTS version. curl: error while loading shared libraries: libkeyutils.so.1: cannot open shared object file: No such file or directory Version '' (with LTS filter) ...
0 votes
0 answers
57 views

How to install Gnome for Ubuntu 22.04.1 on WSL2 on Windows 11 with built-in Systemd support?

I've installed Ubuntu 22.04.1 from the Microsoft Store on WSL2 on my Windows 11 machine which now supports Systemd, and I'm trying to install Gnome. All the instructions I've found show how to install ...
0 votes
2 answers
49 views

How to access Windows files from Linux in WSL?

I'm starting to learn how to use the terminal with Ubuntu on WSL (Windows). Just from the very beginning of the course it says that if you use the ls command it should show you your "home" ...
  • 1
1 vote
1 answer
28 views

installing icons on gwsl

I'm running Ubuntu wsl2, Windows subsystem for Linux. GWSL is an awesome tool to run GUI apps on it. Going to GWSL Distro Tools > GTK Themes, allows you to use custom themes. The problem is that ...
0 votes
1 answer
17 views

After attempting to set up code . on my wsl environment, commands have stopped working

I inserted export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" in ~/.zshrc and after saving and quitting, my commands stopped working. I can't access the rc ...
0 votes
0 answers
30 views

How to change default SQLite to MySQL for airflow in Ubuntu?

I want to set up apache airflow with MySQL instead of default SQLite. I have run this command pip install 'apache-airflow[mysql]', as suggested in the documentation I have the following info about my ...
  • 101
0 votes
0 answers
52 views

Failed to initialize NVML: GPU access blocked by the operating system on Ubuntu 22.10 / WSL2

Premising that I’m using “Microsoft Windows 11 [Version 10.0.22000.1219]”,I have installed Ubuntu 22.04 on top of it and then I’ve upgraded Ubuntu 22.04 to 22.10 and I’ve upgraded the driver for my ...
  • 409
1 vote
1 answer
47 views

How to configure Ubuntu terminal to jump/select words on Ctrl(+Shift)+Left and Ctrl(+Shift)+Right?

I use Windows 11, but I also have Ubuntu running in WSL or when connecting with SSH. In Windows PowerShell terminal, Ctrl+Left and Ctrl+Right jumps a word to the left or right. Adding the Shift key ...
  • 133
0 votes
0 answers
30 views

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down [duplicate]

I have Windows 11 with Ubuntu installed with WSL2. I'm not able to configure Systemd in order to use snap installations. I have configured the file /etc/wsl.conf configured with the following entries (...
0 votes
1 answer
48 views

CMake: "ERROR: Package [...] build failed", error in m4 build() method

I am trying to install a custom piece of software for my job. I downloaded the source, went inside the folder and typed $ cmake ... After reading AskUbuntu answers, I deduced the problem comes from my ...
  • 101
0 votes
0 answers
59 views

Installing MySQL as database for airflow - password issue

I have Ubuntu 20.04.4 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64) on WSL2. I'm following this guide to install Mysql and have reached step 4 where I have chosen MEDIUM and was prompted ...
  • 101
-1 votes
2 answers
67 views

How to fix "$: not found" when running this script? [closed]

I'm trying to copy the contents of a directory inputted by user into a new one, but I get ./backup.sh: 16: $: not found
  • 1
1 vote
2 answers
101 views

Can WSL2 use the Android SDK installed on Windows?

I have the android-sdk installed on Windows, and I have exported its path to the ANDROID_SDK_ROOT WSL environment variable. Should WSL be able to compile my projects using the SDK that's installed on ...
  • 35
2 votes
0 answers
68 views

WSL2 export is huge - 118 GB!

I wanted to do a back up of my Ubuntu-20.04 WSL image or whatever is called and the tar file that resulted is 118 GB. The login screen shows a Usage of 22% of 250 GB., so that would be 55GB. But still ...
1 vote
1 answer
55 views

WSL2 : apt-get install/remove are not working

Whenever I try to install or remove a packet with apt, I get this error : E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/...
  • 35
1 vote
1 answer
299 views

Has the WSL rootfs (.tar.gz) been removed from Ubuntu 22.04 Jammy Releases website?

It looks like the WSL tarball of Ubuntu 22.04 has been pulled from the Ubuntu release location. It no longer appears at https://cloud-images.ubuntu.com/releases/jammy/release/. Normally, in the past, ...
6 votes
0 answers
118 views

Why is the WSL rootfs no longer published in the latest cloud images? [duplicate]

I just noticed, at least for Ubuntu Jammy (22.04) that ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz is no longer published in the latest releases of the Ubuntu cloud images. It can be found in ...
1 vote
1 answer
41 views

Strange behavior when typing sudo password

I have installed Ubuntu 20.04 on Windows 10 WSL. I am trying to get Docker running. But when opening Ubuntu, I cannot log in, and a few of the letters of my password are typed. Where is the problem?
  • 11
0 votes
0 answers
175 views

Can't activate Nvidia GPU on Ubuntu 22.04 (WSL2)

Problem definition I have been trying to use my mobile Quadro T1000 with cuda in pytorch, but pytorch use CPU whatever I do. I installed pytorch, GPU drivers and CUDA Toolkit. If I run command I get ...
1 vote
0 answers
32 views

issue with aws cli on wsl2 (windows subsystem for Linux)

I am using wsl2 on windows 10, but I am unable to access some eks features through AWS cli. I have credentials set on the windows system and everything works. I installed aws cli on wsl2 ubuntu 20.04 ...
  • 11
0 votes
0 answers
61 views

WSL2, cannot access Windows files under /mnt/c for new installation

n@LAPTOP-DNCQ5AAC:~$ mount /dev/sdb on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered) none on /mnt/wsl type tmpfs (rw,relatime) tools on /init type 9p (ro,relatime,dirsync,aname=...
0 votes
2 answers
146 views

Access root user directories from Windows under WSL?

I'm running WSL2, Ubuntu 20.04, and Docker Desktop. I often need to access some directories that are root owned and not readable by my main user. It's getting pretty old to always have to: Manually ...
0 votes
0 answers
35 views

How do I fix xfce being the default desktop environment?

I tried to set up a desktop environment for when I connect to my VM from chrome remote desktop and the only desktop that it is letting me use is xfce, I have tried to change my user file in cd /var/...
1 vote
1 answer
113 views

How to return to default user after switching to root in Ubuntu on WSL?

I am using WSL on Windows 11 with Ubuntu 20.04 LTS (Focal Fossa). During the installation process, I think I entered the command ubuntu --install (in VSCode), but I ran into an issue during the ...
  • 13
0 votes
0 answers
68 views

WSL2 on Windows 10, new install, ls permission denied on /mnt/Users/<user>

So I heard it's safer to create another user on Windows that is not default admin. I installed WSL on the default admin, got the terminal with Ubuntu logo, thought everything was merry, log out and ...
0 votes
0 answers
60 views

WSL2 installed on new Windows 10 machine but Powershell says no installed distribution

I installed Ubuntu 22.04 LTS from the Windows Store and running sudo apt update and sudo apt upgrade but Powershell says not installed. Is this a matter of rebooting? I installed as a normal user I ...
0 votes
0 answers
86 views

Unable to locate package libjasper-dev,netcdfbin in ubuntu 22.04

I could not install this two libraries for wrf.
1 vote
1 answer
109 views

Trying to install rpy2 results in "ERROR: Command errored out with exit status 1"

I'm trying to install rpy2 in Ubuntu for Windows with the command pip install rpy2, which yields the following error message: ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -...
  • 11
0 votes
0 answers
51 views

Can not run FSL after successful UBUNTU installation

I have just installed FSL on Ubuntu 18.04.05 following all the steps from the FSL tutorial. I never used Ubuntu before, but everything seemed to go fine. Just to check, even when I run the command ...
0 votes
0 answers
83 views

WSL: No such file or directory when installing a setup.py for a third-party

I'm trying to run a setup.py file for a third-party package in my Ubuntu WSL: $ sudo env PATH=$PATH python setup.py develop The setup.py file is designed to modularize the package, and I'm running it ...
0 votes
2 answers
90 views

Password protect a folder

I have several files in a folder. I want to encrypt that folder. What's the way I could do it? I tried the following: Used the command zip with encrypt option. This does encrypt the files. But the ...
  • 1
0 votes
0 answers
161 views

Ubuntu 22.04 sources. list access denied

I have an issue about how to enable the repositories, i copied and replaced the complete sources.list files in the sources.list document using wsl 2. After replacing and saving an image popped up ...
0 votes
1 answer
469 views

Docker service won't start on Ubuntu 22.04 on WSL2 [duplicate]

After having installed docker following some tutorials, such as this one: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04 I try to start the docker ...
  • 410
0 votes
0 answers
106 views

How to fix error not valid identifier?

every time i open a bash session i am having the following error message in the terminal. bash: export: `Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Users/...
  • 111
0 votes
0 answers
20 views

how to access my personal file in unbunto [duplicate]

I'm new to programming, i start use windows-subsystem-for-linux and I don't know how to find my personal documents, my downloads, etc. I tried the path "env" "find" with a path but ...
  • 1
2 votes
3 answers
2k views

Snap stopped working on wsl?

I have WSL2 preview version installed (so I can use the new systemd support). I'm running the latest version of WSL Ubuntu (not preview) and when I run snap install <insert_program_here> or any ...
  • 61
0 votes
1 answer
108 views

Editing /etc/hosts using WSL vs. using Notepad as an administrator

Why am I not able to modify my /etc/hosts file in Ubuntu through WSL? But if I try to run Notepad as an administrator and name the file as c:\Windows\System32\drivers\etc\hosts, I am able to modify ...
  • 21
1 vote
0 answers
49 views

Different ulimit between Ubuntu on WSL when in the shell vs. calling WSL from Windows command prompt

I am attempting to use a Linux based binary called tippecanoe to do some vector map tiling. My computer runs on a Windows 10 operating system. To integrate with the rest of my mapping functions, I am ...
1 vote
1 answer
162 views

Is it too easy to access root in Ubuntu on WSL?

I forgot my Ubuntu user's password in WSL, but I was able to reset it by: Opening a CMD shell wsl -u root, then (inside Ubuntu), passwd my_username I was able to change my password without providing ...
  • 21

1
2 3 4 5
22