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
1 answer
30 views

How do I give a .cpp file to my new user

I'm trying to run a .cpp file on Ubuntu. I'm on a Windows computer and downloaded Ubuntu from the microsoft store. Problem is, I couldn't safely run my program on my root (reasons dont matter) and had ...
1 vote
0 answers
43 views

Unable to ping device with MTU 9000 (jumbo frame), but default ping error message shows up

I need to set a local connection with Jumbo Frames enabled. I set up my network adapter to have a MTU of 9000. ~$ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000 inet ...
  • 121
2 votes
1 answer
35 views

Apt wildcard issue

Why does apt take file names in current directory as package names? When i try to apt install boinc* i see "E: Unable to locate package boinc_ubuntu_7.16.6_x86_64-pc-linux-gnu.sh"
1 vote
0 answers
23 views

WSL2 || sed: can't read /etc/update-manager/release-upgrades: No such file or directory

Out of Nowhere I was opening VSCode via WSL, it was loading. I figured out I wouldn't use it, so I closed it, but the terminal closed with it, didn't gave it much atttention. When I try opening the ...
0 votes
0 answers
19 views

Commands work in Powershell but not Ubuntu in Windows terminal

Commands like npx and npm are working when I run them in Powershell. When I type the same commands into the same terminal on the same computer but on Ubuntu, they do not work. Why is this? How do I ...
1 vote
1 answer
36 views

Python 3.8 + Pip on WSL

I've being looking around on the internet and either nobody else has this problem, or nobody else can solve it. I used the deadsnake repository to use Python 3.8, which seems to work, but when I try ...
  • 113
0 votes
0 answers
27 views

WSL Ubuntu: Sometimes postgresql won't start but the next day it would start again

This is my wsl -l -v NAME STATE VERSION * Ubuntu Stopped 2 lsb_release -a output: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS ...
  • 101
0 votes
1 answer
50 views

jupyter notebook can use numpy but not ubuntu in wsl2

The problem is when I try to use numpy or any other module from the ubuntu terminal in WSL@. It throws an error, but it works seamlessly from jupyter-notebook. Also, WSL2 ubuntu doesn't load the ...
  • 103
0 votes
0 answers
17 views

Is Ubuntu 22.04.2 Desktop is compatible with Acer Nitro 5 Acer Nitro 5 AN515-58-7272-CA / AN515-58-72CJ? [duplicate]

Hello Ubuntu Community, I have purchased new Acer Nitro 5 AN515-58-7272-CA/AN515-58-72CJ. It has following configuration : Intel i7-12700H cache 24 MB RAM 16 GB SSD 512 GB Right now it has windows But ...
0 votes
1 answer
35 views

How to fix unconnected User?

So I am using WSL, and I recently found the path to my Ubuntu files in Windows. I renamed my user's home folder through Windows, and now I see the following: This message is shown once a day. To ...
  • 1
0 votes
0 answers
21 views

How create shortcut icons with different Ubuntu terminal settings? (Win10 WSL Rel 22.04)

I want two different Ubuntu terminal setups (background color/fonts) for different uses. I managed to do this on an older Win10 machine with v20.04 - it has two desktop icons with different terminal ...
0 votes
0 answers
49 views

sudo amdgpu-install command not found

WSL2. I'm trying to install ROCm and failing miserably, my current try using AMD's official guide gets me stuck here, after: sudo apt-get update wget https://repo.radeon.com/amdgpu-install/5.4.3/...
0 votes
0 answers
22 views

keychain vs ssh-ident for WSL2

I tried to avoid retyping ssh passphrase for git. Turns out there's no one way to it. Not sure why keychain vs ssh-ident counts as opinion-based. Also, that question was asked for a full linux system ...
  • 21
1 vote
2 answers
110 views

Virtual Machine Platform Windows feature and virtualization in bios is enabled but getting error message

I tried to install ubuntu 22.04 from the windows store but I get the following error: Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS. For ...
  • 29
2 votes
1 answer
169 views

Bash error and WSL not working

I got these error while trying to get WSL to work. <3>WSL (9) ERROR: CreateProcessEntryCommon:574: execvpe /bin/bash failed 2 <3>WSL (9) ERROR: CreateProcessEntryCommon:583: Create process ...
0 votes
1 answer
42 views

WSL2 Ubuntu 22.04.2 LTS Performance Mode

Is there a way to set WSL2 Ubuntu 22 to performance mode? I know the original version of the OS you can just set it to performance mode but I'm not sure how to do it through WSL2. When I run grep &...
0 votes
1 answer
112 views

"An install, uninstall, or conversion is in progress for this distribution"

In an attempt to install WSL and Ubuntu, when I enter the install command, "wsl --install", instead of asking me to create a username and password, it shows: "An install, uninstall, or ...
  • 1
2 votes
1 answer
149 views

ssh: connect to host IP port 22: Connection refused

I'm trying to connect my laptop to another workstation with SSH protocol. On both of my Windows PCs I installed Ubuntu to work from the terminal (WSL). I've followed tutorials found online to do the ...
1 vote
0 answers
82 views

Unable to use apt in WSL Ubuntu due to security issues

I'm trying to install make on a WSL instance in my Windows machine. So I tried the following command: sudo apt install make After entering my credentials, and pressing enter, I got the following ...
  • 181
0 votes
0 answers
46 views

Windows 11 - WSL2 Ubuntu Instance - gRPC DNS Resolution Failed

I’m trying to figure out HOW to get sample Python apps from https://docs.nuance.com to work in WSL2, specifically Ubuntu at the moment. However, I get it all to work but it fails to connect to the ...
  • 1
1 vote
1 answer
76 views

How to fix ubuntu terminal not working on windows?

For more than a year I have been running Ubuntu 20.04 and more recently 22.04 on my windows machine. Recently I was having some difficulties with my Ruby version that was installed on the Ubuntu ...
1 vote
2 answers
121 views

How to fix BASH errors in line 117 in .bashrc file?

I am new to Linux. I recently installed WSL2 (Ubuntu 22.04) on Windows 10. Whenever I open the terminal or type bash in the terminal, it keeps giving me an error. (Sorry, I was not able to copy from ...
  • 21
0 votes
1 answer
75 views

Opening apps installed in WSL Ubuntu 22.04 in Windows 11 [closed]

I just finished installing Ubuntu 22.04 in Windows 11 via Microsoft store. Once I click to open Ubuntu after install it opens in cmd, now I've installed other applications through cmd like VirtualBox. ...
1 vote
2 answers
159 views

sed: can't read /etc/update-manager/release-upgrades: No such file or directory

Version (systeminfo) Microsoft Windows Version 22H2 (compilation SO 19045.2673) WSL Version (wsl -l -v) NAME STATE VERSION * Ubuntu Running 2 Ubuntu Version Ubuntu-22.04 Other Software All ...
  • 111
0 votes
1 answer
118 views

WSL2 doesn't recognize XServer and runs desktop environments on its own

I've been messing around with WSL2 for a while, and I wanted to make the most profit out of it by running an X server instead of running Ubuntu on demanding Virtual Machines, so I've been following a ...
0 votes
1 answer
41 views

Sync Software and Config files across multiple Machines

Problem I currently use both a desktop and a laptop which both require WSL to be run on them. Often times I install something at school and have to manually redo it at home. Optimally I could also ...
  • 3
0 votes
1 answer
37 views

`xdg-open` thinks I'm running WSL, and fails because I'm not? [duplicate]

When I try to open a pdf file with xdg-open file.pdf, I get the following error message: jonas@jonas-thinkpad:~$ xdg-open file.pdf grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory ...
  • 1,699
0 votes
1 answer
392 views

process exited with code 1 (0x00000001) after updating wsl

I have a question. I am currently on wsl2 and there is an update to wsl. So I typed wsl.exe --update and updated the wsl system but at the end it said [process exited with code 1 (0x00000001)] . ...
  • 13
0 votes
1 answer
47 views

Xdotool not displaying any results

I am a beginner to Linux and really having fun using it so far, but it seems that there is a problem I cannot solve, or at least don't quite understand -- The xdotool from X11 Project doesn't work on ...
0 votes
2 answers
140 views

"usbipd not found for kernel" with WSL2 (Windows 10)

After usbipd wsl list it returned back WARNING: usbipd not found for kernel 5.10.16.3-microsoft You may need to install the following packages for this specific kernel: linux-tools-5.10.16.3-microsoft-...
1 vote
1 answer
66 views

Installing latest NodeJS on Ubuntu 22.04 via WSL on Windows 11

I am in Ubuntu 22.04 via WSL on Windows 11. curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - is returning : ## Installing the NodeSource Node.js 18.x repo... ## Populating apt-get ...
  • 591
1 vote
0 answers
53 views

notepadqq on ubuntu 22 on wsl deletes my file

I just installed Notepadqq v2.0.0 on Ubuntu 22.04.2 LTS, and it gave the following message when attempting to load a file on my Google Drive: This file has been deleted from the file system. with Save ...
0 votes
0 answers
16 views

Using Ubuntu 20.04 in VS code [duplicate]

When I open my VS code it's currently starting a terminal using Ubuntu 18 on WSL2. I want to update it to Ubuntu 20 and I think I have installed it correctly as when I run lsb_release -a I get: ...
1 vote
2 answers
112 views

apt-get update not working in Ubuntu 20.04 WSL1

So I recently installed Ubuntu WSL1 in my company PC and ran this command to update my installation, It seems ping is successful but "apt-get" fails to connect and download. I need some help ...
0 votes
0 answers
40 views

Opening and Using NotePad like program from the Ubuntu command line in WSL (Windows)

I really want to start using Linux, especially Ubuntu distro systems because I hear such great things about them and the fact that it very community based, which I really love. Anyway, is there a ...
3 votes
1 answer
586 views

No kernel modules showing in /lib/modules in WSL

I'm running Ubuntu 20.04.5 under Windows 11 using WSL2 and trying to resolve (and educate myself) about a problem to do with the display kernel modules (which I understand to be the Linux equivalent ...
  • 141
1 vote
0 answers
64 views

How to install libopencv-highgui3.2 on WSL Ubuntu 22.04?

I recently decided to follow some books to learn machine learning with c++. According to the material, I need this package libopencv-highgui3.2. I'm using WSL with Ubuntu 22.04. I tried: sudo apt ...
0 votes
1 answer
136 views

Issue with ext4.vhdx using WSL2 in Windows 11

I had and issue with WSL installing a package, so I decided to uninstall Ubuntu 22.04 to fresh install again. I did the mistake to delete manually some files and then I had some issues to reinstall ...
-1 votes
1 answer
32 views

How can I have multiple tabs in a ubuntu terminal window for windows

I have a new laptop with Windows 10. I have installed Ubuntu terminal from Microsoft store. I used to be able to get multiple tabs in the same ubuntu window and split windows in same tab as well. Now ...
0 votes
2 answers
126 views

Can't launch Gnome desktop from Ubuntu terminal running under WSL2

I've gone through the process of installing WSL2 on a Windows 11 laptop and can successfully run, for example, GUI-type LibreOffice apps from the Terminal command line. So far, so good. Now I would ...
  • 141
0 votes
1 answer
546 views

How to install Intel Iris Xe graphics drivers

My outputs : $ inxi -G Graphics: Device-1: Microsoft Basic Render Driver driver: dxgkrnl v: 2.0.1 Display: wayland server: Microsoft Corporation X.org driver: gpu: dxgkrnl resolution: 1: ...
0 votes
1 answer
125 views

Reducing space consumption by "Ubuntu on Windows"

I'm running Windows Subsystem for Linux (WSL2) with Windows Terminal, and I currently have downloaded "Ubuntu on Windows" from the Microsoft Store. When I run the "Ubuntu on Windows&...
  • 23
1 vote
0 answers
264 views

Internet connected problem wsl 2 ubuntu 22.04 (Windows Subsystem for Linux)

Recently I installed WSL 2 Ubuntu 22.04 on my Windows 10 machine, but nothing seems to work properly, because I have no internet access. I tried a few commands and sudo apt update says 'Connection ...
  • 11
1 vote
0 answers
144 views

How can I mount a removable USB drive in WSL?

So I've gone through this tutorial and have gotten USBIPD up and running on Windows 11 and the Ubuntu WSL container. Now, how can I mount a USB Mass Storage Device in WSL so that File Explorer can see ...
0 votes
1 answer
73 views

How to edit .tmux.conf on wsl2 ubuntu?

I'm following a tutorial for learning tmux and can't find the .tmux.conf file in ~/.tmux.conf is there a place i need to go to find it or create the file? Also I'm running it on wsl2 if that changes ...
0 votes
1 answer
83 views

Synchronize VScode projects between linux and windows with WSL

I'm new to WSL and got the advice to store my VScode projects on Linux for better performance. The thing is, I would like to keep an automatic sync between these files stored on Linux and a folder ...
3 votes
0 answers
61 views

WSL zsh Shell Prompt Not Updating

Im running Ubuntu 22.04 under WSL and would like to change my prompt info and look from the default. I did the following sudo apt install zsh chsh -s /bin/zsh I updated the .zshrc file to be PROMPT='%...
-1 votes
1 answer
324 views

Mysql error "'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)'" and I can't reset root password either

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 to 22.04, but I ...
-1 votes
1 answer
26 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/...
0 votes
0 answers
149 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 ...

1
2 3 4 5
24