Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
16 views

Problem with running venv

Attempting to create a new environment using venv, installed Ubuntu for WSL, updated, and installed venv without issue. My problem is when I try to run venv, to create the new environment I used: $ ...
0
votes
2answers
781 views

Ubuntu is unable to shutdown in Windows Subsystem for Linux

I am running the Ubuntu shell for Windows 10 as a part of a module in university, when I try typing in shutdown, it is telling me System has not been booted with systemd as init system (PID 1). ...
1
vote
1answer
3k views

Permissions on WSL

Hello everyone I have a confussion here I'm using WSL (Windows Subsystem Linux) when I try to use a command like cat throws me the next: luismiguells@Lenovo:~/Code$ cat main.c cat: main.c: Permission ...
1
vote
0answers
78 views

Sudoers file syntax error on WSL

So, I've messed up my sudoers file in the windows subsystem for linux. I was trying to add something, and the guy of the tutorial said to edit sudoers file with nano/vim, and that's what I did (later ...
1
vote
0answers
15 views

Running a git-based program (Bup) on Ubuntu WSL gives error “[Errno 38] Function not implemented”

My Ubuntu setup is running great and things to seem to be working well for other things I'm doing but with one particular program (Bup) which is a backup solution built on top of git. Running this ...
3
votes
1answer
4k views

Unable to locate package with apt-get remove

I'm trying to remove pip (because I have pip3). I did sudo apt-get remove --purge pip, and get Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to ...
0
votes
0answers
20 views

I got a problem in bash On windows [duplicate]

this problem appeared after installing Some packages and even after i uninstalled it still exist .. I have reinstalled bash before to cure it but appeared again .. What could i do ![sudo: getrlimit: ...
0
votes
2answers
3k views

use sed to replace each white space with a backslash

just want to escape spaces in windows filepath. I'm trying this echo "111 1111 "| sed -e "s/[[:space:]]/\\ /g" that only match spaces but do not replace.
0
votes
2answers
67 views

The ls command shows me the userid instead of username how can I fix this?

I am new to unix scripting, learning it experimenting my own ways. But then I was trying to list the directory and found numbers like 1000 and 1001. I google and understood that those are the userid'...
0
votes
1answer
53 views

Installing Non-Repository Program in Windows Subsystem for Linux

I'd like to install the image editing CLI program NConvert to WSL, but I'm not sure if this is possible, since NConvert isn't in any repository. There is a procedure I could implement to attempt an ...
69
votes
8answers
130k views

What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

I searched around, and currently there are two methods suggested; installing an enhancement for Windows Subsystem for Linux and installing an XServer. I want to know which method is the most hassle-...
2
votes
0answers
16 views

wsl cron tar backup not working [duplicate]

I am running Ubuntu in WSL on Windows 10. jamesk is my windows Active Directory username as well as my default username in WSL. I have set up cron as follows: Created task in task scheduler (runs on ...
43
votes
4answers
10k views

How can I send mobile text message from terminal?

I've just lost my phone. I know it's here in my house cause I used it last night and my bluetooth speakers will connect to it this morning. How can I text my phone using bash? Then the phone ...
0
votes
1answer
31 views

Unable to use Ubuntu from Windows 10 [duplicate]

I installed Ubuntu from the Microsoft Store on Windows 10 Version 1803 and it appeared to install properly. Normally when it first comes up it will prompt for a username and password and then let you ...
1
vote
2answers
65 views

Editing .bashrc in WSL safely

How do I edit .bashrc files in the Windows Subsystem for Linux safely? https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/ This article warns you to ...
0
votes
1answer
173 views

Synchronize packages between multiple wsl installations

I have Ubuntu WSL installed on two different Windows 10 accounts. I want to have the same packages installed in Acct-2 as I have in Acct-1. Is there an easy way? I have a complex way.
1
vote
2answers
2k views

How to list a Windows process on Ubuntu Terminal in WSL

Now it's possible to use the Ubuntu terminal or bash shell on Windows. How can I list Windows processes using ps or htop?
1
vote
2answers
4k views

SSh: Access Denied, Windows 10

I'm new to Linux in general but also even newer to the Window's 10 Ubuntu subsystem. I've been trying to set up ssh and so I set up a static ip address and logged into my router and forwarded port 22 ...
28
votes
12answers
27k views

A better terminal experience for Windows Subsystem for Linux(WSL)?

The terminal for Windows Subsystem for Linux (WSL) is fairly minimal. I have not used the terminal on Windows very much - I generally use Ubuntu or OSX - but I am surprised that the default terminal ...
1
vote
0answers
27 views

Accessing Windows Display via WSL X Server

I develop my projects within WSL and display visualizations, etc. with VcXsrv X server and export DISPLAY=localhost:0.0. This is usually fine. For a new project, I'd like to access the Windows 10 ...
7
votes
0answers
5k views

'GLIBC_2.25' not found on Ubuntu (Windows Subsystem for Linux)

I have following error on Ubuntu 16.04 (Windows Subsystem for Linux) /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.25' not found I've already tried: apt-get update apt-get install libc6 It ...
0
votes
0answers
26 views

How to improve localhost performance on Ubuntu 18 on the Windows Subsystem for Linux

So, I have Ubuntu 18 installed on a Windows laptop. Generally, I've been happy with it, but recently the performance has really taken a hit. My localhost set up is a pretty vanilla Apache/Mysql and ...
2
votes
1answer
71 views

Ubuntu 16.04 installation in WSL reports itself as 'bionic'' [closed]

I just installed 16.04 from the Microsoft Store using WSL and the installed Ubuntu version reports itself as Bionic. user@host:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu ...
1
vote
2answers
742 views

WSL Ubuntu Distro | How to solve `Operation not permitted` on cloning repository

I am running Ubuntu 18.04, as a Subsystem for Windows. I have done this in mutliple PCs and never had this problem. I try to to git clone <repo>, and I get this: Cloning into '<repo>'... ...
0
votes
1answer
43 views

How to remove docker from Windows subsystem?

I tried to install Docker CE for Ubuntu in the Windows Subsystem for Linux, and I had trouble getting it to work properly. I discovered that perhaps Docker doesn't work in WSL, so now I'm trying to ...
0
votes
1answer
52 views

Unable to run Makefile targets in Windows Subsystem for Linux (Ubuntu 18.04)

I feel I've tried everything but I feel I'm missing something really simple.. I'm trying to run a makefile from a project (which works fine on a Mac) on a Windows machine with WSL running but get a ...
0
votes
1answer
333 views

Ubuntu 19.04 installed into WSL “Windows System for Linux” on Win10 host - How? Will it run Graphics intensive programs?

The current Windows Store App "Ubuntu 18.04LTS" is just a "Terminal" version and less than 2gb. It does not run graphic intensive applications (opengl) like OpenCPN and it does not have a graphic ...
0
votes
1answer
66 views

Running Ubuntu in the new Windows 10 using WSL Windows System for Linux (not hyper-V)

This post answered a number of my questions. Ubuntu Hyper-V Guest Display Resolution Win 10 + 15.04 It appears that Windows 10 virtual machine Hyper-V will run Ubuntu. There are graphics drivers ...
1
vote
1answer
132 views

MySQL 8 installation fail - dpkg: dependency problems prevent configuration of mysql-server:

I wasn't able yet to install MySQL 8 in Ubuntu. Distribution : Ubuntu 18.04.2 LTS (running on windows using WSL) WSL version : 4.4.0-17134-Microsoft Mysql-server : 8.0.16-2ubuntu18.04 amd64 I am ...
0
votes
0answers
55 views

How to create '/proc/sys/kernel/unprivileged_userns_clone' file

I'm trying to use Puppeteer. And it recommends me to run sudo sysctl -w kernel.unprivileged_userns_clone=1 to enable the sandbox. But when I do that on my WSL, it complains sysctl: cannot stat /proc/...
0
votes
1answer
59 views

Occasional gnutls handshake error

I'm trying to download the AOSP from Google using repo sync. Occasionally, I receive an error similar to the following: fatal: unable to access 'https://android.googlesource.com/platform/system/bt/': ...
1
vote
0answers
51 views

How do I open a file using Atom on WSL?

I am trying to open a file using Atom from bash on Windows. So what I did was I added an alias in my .bash_profile like this: alias atom="/mnt/c/Users/Mido/AppData/Local/atom/atom.exe" So let's say ...
0
votes
1answer
173 views

“Error: 0x80080005 Server execution failed” while installing Ubuntu on Windows

While installing Ubuntu app on Windows, I'm encountering this error: Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80080005 Error: 0x80080005 Server ...
0
votes
1answer
80 views

The service has not been started

Warning: I installed Ubuntu manually. 18.04 is installed, and when I run it manually from the Windows 10 PowerShell it opens. When I attempt to open Ubuntu in the Programs list by clicking on the ...
1
vote
0answers
41 views

Does Bash for Windows create an own desktop?

I downloaded Bash (Ubuntu 18.04) for Windows 10 yesterday and created my account, downloaded a couple of files there. i closed the prompt, now when i open it, it starts from System32 folder i got back ...
16
votes
5answers
11k views

Windows Subsystem for Linux (WSL): what can't I do with the Ubuntu application for Microsoft Windows?

As most of you know, in the Microsoft Store, there are three versions of Ubuntu. This means that on Windows I can emulate Ubuntu and have the Ubuntu command line directly on Windows. The question is ...
19
votes
4answers
11k views

How do I reset my installation of Ubuntu on Windows?

I've installed Linux Subsystem for Windows on my machine. It works beautifully! Since then, I've done unspeakable things to my install. Nothing works anymore. How do I start again from scratch?
1
vote
0answers
209 views

How to open files from Ubuntu on Windows in Visual Studio Code

I just installed Ubuntu on Windows for Ruby on Rails development and when I create Rails project I want to open it in VS Code. So I type code . in bash to open the current folder in VS Code. But ...
3
votes
2answers
43k views

How to solve 'System has not been booted with systemd as init system (PID 1).'? I can't reboot Ubuntu

I've got a problem during setup of apache. I am using Ubuntu version 18.04. I don't know what made this problem appeared... I will just list all my commands. apt-get update apt-get upgrade I saw an ...
0
votes
1answer
446 views

Ubuntu 19.04 incorrect sources.list

I did an upgrade of Ubuntu on WSL from 18.10 to 19.04 with do-release-upgrade. $ cat /etc/os-release NAME="Ubuntu" VERSION="19.04 (Disco Dingo)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 19.04" ...
0
votes
0answers
100 views

How to open jupyter in WSL via terminal with a specific starting directory?

I unfortunately didn't found a solution to the above described problem. Since there are several python packages only available for linux I want to use python now from WSL. I installed anaconda on ...
12
votes
6answers
34k views

What editor can I use as a simple vi/vim alternative?

I'm a Windows user coming to Ubuntu's Bash thanks to WSL. Now I need to edit some files and I really hate Vi. Do I just have to deal with it, or is there a simpler alternative? The features I am ...
1
vote
0answers
198 views

Ubuntu 16.04 WSL libGL error

Similar posts have been made about this, but all involve nvidia which I do not have. I am getting the following errors printed to my terminal every time I launch something with GUI using X-ming or ...
4
votes
1answer
224 views

Is it possible to intall libXft.so.2 on WSL?

I wish to run a scientific GUI on WSL, which requires libXft.so.2 package. Used sudo apt-get command, bash returned. Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
78 views

fuser returns error WSL

I am using WSL Ubuntu $ /bin/fuser Cannot open /proc/net/unix: No such file or directory I also tried as root user by first issuing: sudo su It is not like I intentionally deleted that path. Is ...
0
votes
1answer
67 views

Errors were encountered while processing: libtk8.6:amd64 tk8.6-blt2.5

Every time I try to install any using apt-get install, I get the error saying Errors were encountered while processing: libtk8.6:amd64 tk8.6-blt2.5 E: Sub-process /usr/bin/dpkg returned an ...
3
votes
1answer
1k views

WSL Ubuntu 18.04 broken apt

I am having problems with apt on my wsl installation of ubuntu 18.04. Whenever I try to install a package with apt I get this: Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
371 views

Can't restart/shutdown Ubuntu under WSL

I just got Ubuntu from Microsoft Store and tried some things with it. However when i try to restart or shut down the system using sudo reboot or sudo shutdown -h I got a prompt saying "System has ...
21
votes
5answers
21k views

How to change default user in WSL Ubuntu bash on Windows 10

I installed the WSL Bash on Windows 10 and set my user to e.g. 'abc' but now I want to change it to something else. How can I change the user name of the user I'm logged in as? When I open bash it ...
1
vote
0answers
104 views

.jnlp Problem ruling in Ubuntu 18.04 and Odroid XU 4

I downloaded the latest Oracle Java in Ubuntu 18.04 and also I installed iced tea to run .jnlp. After so long I had some troubles with the start of the .jnlp but I make it run pointing the settings to ...