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

Is $PATH in WSL supposed to be very long?

Anybody else get an extra long path using echo $PATH command? I'm working in BASH shell Ubuntu on windows from the Windows app store. Output of echo $PATH: home/mnhir/bin:/home/mnhir/.local/bin:/usr/...
2
votes
1answer
272 views

pkexec on WSL Error

Launching pkexec synaptic in the below environment fails. My PC specsare: xfce desktop ubuntu 18.04 on WSL VcxSrv for X server Here is the output: ~$ pkexec synaptic Error getting authority: Error ...
0
votes
0answers
150 views

Failed to install CUDA

I am trying to install CUDA9.2 on WSL and it's stuck at 'Loading new nvidia-396-396.37 DKMS files...'. The last few lines of the log are: Setting up nvidia-396 (396.37-0ubuntu1) ... update-initramfs:...
1
vote
1answer
86 views

Clamav with windows

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? E: Aborting install. when using --fix-missing. I did apt-get clean and tried to re install and it says aborting. ...
2
votes
1answer
1k views

WSL Ubuntu 18.04 Install SSH key forwarding Issue

I recently updated my WSL Ubuntu install to the 18.04 version available through the Microsoft Store. After the install I ran into issued with the SSH client and the ability to forward keys. So the ...
0
votes
0answers
183 views

How do I start mosquitto borker on startup in Windows Subsystem for Linux (WSL)? [duplicate]

This is my /etc/systemd/system/mosquitto.service [Unit] Description=Mosquitto MQTT Broker daemon ConditionPathExists=/etc/mosquitto/mosquitto.conf Requires=network.target [Service] Type=simple ...
1
vote
0answers
6k views

How to move file from Windows to Linux subsystem? [duplicate]

I have a tar.gz file downloaded in Windows and I want to move it to the linux subsystem directory. Is it safe to directly paste my files in the lxss folder?. Is it possible to do it safely? System: ...
1
vote
1answer
511 views

Install pygtk on bash on WSL

pip install pygtk does not work and fails with: Complete output from command python setup.py egg_info: ******************************************************************** * Building PyGTK using ...
0
votes
0answers
135 views

List available /dev/sdX devices on WSL [duplicate]

How can I list available disk drives from Ubuntu on Windows?
0
votes
1answer
399 views

Why i can not edit ubuntu files on windows 10 subsystem? [duplicate]

So I can install Ubuntu as a subsystem on Windows 10 and there is the location of all files. Everyone says "You can not edit files from windows gui". I wonder exactly why? Is it because windows use ...
0
votes
1answer
177 views

How to move fles from windows 10 to ubuntu directory [duplicate]

where can I find the GUI of the ubuntu home directory which is installed from Windows 10 Microsoft store. how can I move the files present in the C directory of windows 10 to one of the directory in ...
0
votes
0answers
47 views

Ubuntu not getting installed on my x64 win10 machine

ubuntu distribution is not installing on my windows 10 x64 bit machine from microsoft store.. update version of my pc is 1709 and OS build version is 16299.125 also i turned on the wsl option
0
votes
0answers
45 views

Trying to do an install with Ubuntu WSL 18.04, and it says 'too many arguments' [duplicate]

My command is this cd Emojicode-0.5.4-Linux-x86_64 \ ./install.sh And the instructions are this. What did I do wrong? Trying to do manual installation from here - https://www.emojicode.org/docs/...
1
vote
2answers
263 views

Having a command input problem in Ubuntu 18.04 WSL [closed]

EDIT: Most of this has been resolved, but I have just one final question. Where did the packages directory go to? I don't know how to locate the folder it was put in, even if it says usr/local/...
2
votes
1answer
1k views

PyPy3 fails installing numpy

Basically when I call pypy3 -m pip install numpy --user I get thrown this lovely mess: Traceback (most recent call last): File "/opt/pypy3/lib-python/3/runpy.py", line 193, in ...
1
vote
1answer
434 views

Error while installing ruby on Windows Subsystem for Linux

I am trying to install Jekyll by following Jekyll on Windows tutorial. There is a steep to install ruby from BrightBox repository. I had triggered following command: sudo apt-add-repository ppa:...
1
vote
3answers
1k views

FATAL -> Failed to fork on Windows subsystem for Linux with Ubuntu

I'm running Windows 10 Pro, version 10.0.17134, enabled the Windows Subsystem for Linux and installed the Ubuntu app from the Microsoft Store. This has been working for a couple of months without ...
1
vote
2answers
358 views

I downloaded through Bash in Ubuntu on Windows 10, but where do the files get saved? [closed]

I want to find out, because I need to know for a project. (yes I'm new) Commands: wget https://github.com/emojicode/emojicode/releases/download/v0.5.4/Emojicode-0.5.4-Linux-x86_64.tar.gz -O ...
2
votes
0answers
132 views

Glib Error on kfce-panel [duplicate]

I got this error when using the default settings of the xfce4 panel someone help me :D icezilla@DESKTOP-9C2LV7B:~/Desktop$ xfce4-panel ** GLib:ERROR:../../../../glib/gtimezone.c:498:...
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 ...
0
votes
1answer
774 views

WSL Ubuntu 18.04 XRDP problem

When I connect to ubuntu using RDP it show's me this message: I have a Kali Linux WSL installed too and it works fine but I have this problem with Ubuntu. Can you help me?
1
vote
3answers
4k views

Permission Error copying files into Ubuntu on Windows with Windows copy/paste

I'm currently using Ubuntu on Windows from the Microsoft Store. To try some of my Python scripts, I copied and pasted them to the documents folder I can access with Ubuntu session : C:\Users\[...
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
0answers
614 views

How do I login as root automatically in 18.04? [duplicate]

I'm using WSL Ubuntu 18.04 and I want to login as root automatically. I read this article but the file named lightdm doesn't exist in my directory, so I couldn't follow it. How do I login as root ...
0
votes
1answer
75 views

Big problem accessing USB with Ubuntu 16.04 [duplicate]

System is Acer Laptop, Windows 10 and Ubuntu 16.04 terminal Halfway through installing an application and I cant seem to access any of the USBs. LSUSB just completes and returns nothing. Typically I'...
3
votes
1answer
317 views

`http_proxy` not showing up with `printenv` on WSL

I am having trouble getting pip to work behind a corporate firewall. I added the http and https proxies to my /etc/environment file, and if I execute echo "$HTTP_PROXY" it prints the right thing. ...
0
votes
0answers
71 views

SH file under Windows Ubuntu - Change directory not working

I created a test.sh file and tried to run sudo ./test.sh In that SH file, CD does not work, not able to find path. CD to a mounted drive like CD /mnt/e/myfolder/myfolder1 I am running Ubuntu ...
2
votes
1answer
319 views

Clear cache — “Operation not permitted” even with sudo

I'm running the following command to clear the cache: $ sync; sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" sh: 1: cannot create /proc/sys/vm/drop_caches: Operation not permitted $ free ...
1
vote
2answers
3k views

How to use the same Python for Windows and Linux on Windows subsystem for Linux

I have Python 3.6 installed on my Windows computer. I installed the Windows Subsystem for Linux (WSL). When I type python into my Ubuntu terminal, I'm told I'm using Python 2.7 (which I imagine comes ...
2
votes
1answer
2k views

“set -eo pipefail” not working in Windows Subsystem for Linux (Ubuntu 16.04) [duplicate]

I have installed Windows subsystem for Linux on my Windows 10 machine which is supposed to be emulating Ubuntu 16.04. When I try to execute a script that has the following 2 lines at the top of the ...
1
vote
1answer
627 views

How do I install dcm2niix?

I am trying to install the program dcm2niix onto Ubuntu on Windows 10. I have found the .exe file but nothing happens when I click on it. I also tried sudo apt install dcm2niix on the terminal and it ...
0
votes
0answers
679 views

No such file or directory when changing directory: Running shell script in ubuntu in windows 10

I have been having issues changing directories using a shell script in windows 10. In notepad I created a file, test.sh, which has the following script: #!/bin/bash cd '/mnt/p/WMScriptTest/' I then ...
2
votes
1answer
586 views

How to I check the battery level on a Microsoft Surface from a WSL Ubuntu shell?

There are plenty of tutorials online for checking your battery level in a ubuntu terminal. The most common solution seems to be to use upower. However, when I run upower in a WSL Ubuntu shell in ...
0
votes
2answers
295 views

Update Ubuntu terminal on WSL [duplicate]

I am new to Ubuntu. I have Ubuntu 14 terminal installed on my Windows 10 laptop. I want to get Ubuntu 16 or 18. When I tried to uninstall the current Ubuntu 14 terminal, I couldn't find it in Programs ...
1
vote
2answers
29 views

What does it mean to “filter down” and what are its benefits?

Microsoft WSL Ubuntu 18.04 has recently released an upgrade that does not work for WSL. I came across this: "a fix has been made in Ubuntu Cosmic that should filter down to Bionic (18.04)" The term "...
1
vote
2answers
2k views

Reduce size of a WSL installation (Ubuntu 18 on Windows 10)

I need a few basic bash commands, so I have WSL installed (Ubuntu 18.04). With cygwin everything I need takes about 150MB. But WSL takes over 1GB !! Not good for my small SSD. I'm sure there's loads ...
2
votes
2answers
2k views

Unable to update ebtables on WSL

I was running sudo apt update && sudo apt upgrade -y yesterday. There was an update for the package ebtables (I looked it up and apparently it is iptables but for Ethernet?). However, apt was ...
1
vote
0answers
421 views

Python Venv with Windows Linux Subsystem

Just started using Ubuntu on Windows and was impressed with what it could interact with that was Windows things, files and some programs, etc. but I was wondering if anyone has tried or knew more ...
2
votes
2answers
1k views

Export files from Ubuntu WSL

How can I export files from Ubuntu WSL to windows or any other directory so that I can use/edit that file in windows
4
votes
2answers
4k views

Cannot Install Ubuntu 18.04 WSL

I am currently running 16.04 version of Ubuntu bash on Windows 10 Pro (v1803) using WSL. But, I couldn't install the newly released 18.04 Ubuntu on my machine from the windows store. Need some help. ...
0
votes
2answers
55 views

How to find in different kinds of files

I'm working on a Ubuntu Windows app on my Windows-10 PC, the result of uname -a is the following: Linux DOMINIQUEDS 4.4.0-17134-Microsoft #48-Microsoft Fri Apr 27 18:06:00 PST 2018 x86_64 x86_64 ...
5
votes
1answer
3k views

Running Script made in Visual Studio Code (on windows) on WSL Ubuntu returns “line 2: $'\r': command not found” [closed]

When I try to run a script made with Visual Studio Code on Windows in my Ubuntu WSL installation, I get the error: line 2: $'\r': command not found I ran into the question below: How do I fix "...
2
votes
1answer
2k views

How can I get around using xclip in the Linux subsystem on Win 10?

On a Linux subsytem on Windows 10 you get an error when using xclip, ex: cat some/file.txt | xclip Error: Can't open display: (null) There is no Desktop (UI), so of course there isn't a clipboard to ...
15
votes
4answers
6k views

Running a simulation on pure Ubuntu vs on Ubuntu in Windows (WSL)

I would like to ask a question about testing a large CAE simulation on the same computer in the following two situations. Pure Ubuntu system Ubuntu system in Windows 10 (WSL) Are the calculation ...
0
votes
0answers
42 views

New to Ubuntu, question on usage of 'du' [duplicate]

I just installed Ubuntu under Windows Bash Shell for learning. My end goal is to use some tools like Lisp that are not easy to install/use on Windows. Right now, I am trying to get the disk usage for ...
0
votes
1answer
390 views

How can I install the sound modules [closed]

I am running Ubuntu 16.04 LTS bash on Windows 10. When I have installed a command line music player, it couldn't play any track - Error: unable to play audio. The command aplay -l shows aplay: ...
2
votes
0answers
894 views

TLS not working at all for Ubuntu in WSL

I recently reinstalled my computer and installed Linux Subsystem which I always do. So this is a complete new install. When I wanted to run composer I noticed something strange. It failed because it ...
0
votes
1answer
337 views

Run rcp.statd without systemd (Ubuntu on Windows Subsystem for Linux (WSL))

When I run certain mount commands, I am told mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. The ...
0
votes
0answers
114 views

Autoware building error

While trying to build Autoware, following this guide, the following errors appear, as seen in the image: Any suggestions as to how I could fix this? I've already re-installed ROS and Catkin tools. ...
0
votes
1answer
484 views

Ubuntu on Windows: How can I set the title bar to a remote server prompt?

I'm not much of a Linux guru, but I do spend most of my time running ssh from Ubuntu Bash on Windows to remote machines. I am trying to see if there is a way that I can set it up so that when I ssh ...