Code Monkey home page Code Monkey logo

wsl's Introduction

This repo is for:

  • Reporting of issues found within and when using Windows Subsystem for Linux. Please read CONTRIBUTING.md before making an issue submission

    Do not open Github issues for Windows crashes (BSODs) or security issues. Please direct all Windows crashes and security issues to [email protected]. Issues with security vulnerabilities may be edited to hide the vulnerability details.

  • Surrounding discussions about the Windows Subsystem for Linux.

Reporting issues in Windows Console or WSL text rendering/user experience

Note that WSL distro's launch in the Windows Console (unless you have taken steps to launch a 3rd party console/terminal). Therefore, please file UI/UX related issues in the Windows Console issue tracker.

Labels:

This is your best way to interact directly with the Windows Subsystem for Linux teams. We will be monitoring and responding to issues as best we can. Please attempt to avoid filing duplicates of open or closed items when possible. Issues may be tagged with with the following labels:

  • bug – The issue considered to be a bug internally by the dev team. This tag is generally for gaps in implemented (read: intended to be working) WSL behavior. Things marked with bug have a corresponding bug in on Microsoft’s internal bug tracking system. Example: "du -h reports wrong file size on DrvFs" (#1894)

  • feature – Denotes something understood as not working and is not yet implemented. Example: "Cuda can not be installed" (#327)

  • fixinbound / fixedinNNNN – The bug or feature request originally submitted has been addressed in whole or in part. Related or ongoing bug or feature gaps should be opened as a new issue submission if one does not already exist.

  • duplicate – The submission is substantially duplicative of an existing issue, and/or has the same underlying cause.

  • need-repro – The issue submission is missing fields from the issue template, cannot be reproduced with the information provided, or is not actionable.

  • discussion / question – Submissions which are not a bug report or feature request. Example: Windows Subsystem for Linux is not open source (#178)

  • bydesign / linux-behavior – Denotes that an issue that is considered working as intended or would behave analogously on a native Linux kernel.

  • console – The submission should be directed to the console issue tracker.

  • documentation – The submission should be directed to the WSL documentation issue tracker.

  • wsl2 - The issue relates specifically to WSL 2.

  • fixed-in-wsl2 - The issue could be resolved by switching the distro to use the WSL 2 architecture.

Additional tags may be used to denote specific types of issues.

  • 9p-linux-file-access - The issue is related to accessing Linux files from Windows.

Closing:

Issues may be closed by the original poster at any time. We will close issues if:

  • The issue is not a bug or feature request
  • The issue has been addressed
  • The issue is a duplicate of another issue
  • Discussions or questions that have ran their course

Microsoft Links:

Community Links:

Troubleshooting:

Common troubleshooting issues and solutions are available on our MSDN documentation.

wsl's People

Contributors

adrastogi avatar aseering avatar bitcrazed avatar bluegone avatar catalinfetoiu avatar craigloewen-msft avatar dymil avatar fosslinux avatar gaia avatar jackchammons avatar joslinpr avatar keith-horton avatar kjcolley7 avatar lucakiebel avatar microsoft-github-policy-service[bot] avatar moonnest avatar mrcull avatar nguyenkenene avatar oneblue avatar pmartincic avatar russalex avatar sbradnick avatar scooley avatar siennathesane avatar slavymihov avatar srgom avatar v-sreekesh avatar vkecla avatar voluong avatar xtoolkit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wsl's Issues

SSH seems broken

SSH doesn't seem to work, which is stopping me from using git in Ubuntu on WSL.

Windows Insider Preview build 14316.rs1_release.160402-2217

root@localhost:~# uname -a
Linux localhost 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux

root@localhost:~# ssh -V
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6, OpenSSL 1.0.1f 6 Jan 2014

root@localhost:~# ssh [email protected]
Host key verification failed.

root@localhost:~# ssh [email protected]
Host key verification failed.

root@localhost:~# ssh-keyscan -t rsa github.com
# github.com SSH-2.0-libssh-0.7.0
Segmentation fault (core dumped)

root@localhost:~# ssh-keyscan -t rsa sdf.org
# sdf.org SSH-2.0-OpenSSH_7.1
Segmentation fault (core dumped)

Update: seems to be working for me now for some reason.

Scrolling up affects only the top line of the screen

With commands like less and man, scrolling down using the arrow keys works precisely as one might expect, however scrolling up appears to only affect the top line of text on the screen. Scrolling down again after having tried to scroll up, simply resumes the downward scroll as though the attempt to scroll up never occurred.

A similar phenomenon is observed when searching for text using /, or navigating using other shortcuts such as PgUp/PgDn or g/G

This is possibly related to #34 but that one is very difficult to read and understand.

Error: 0x800c0008 when trying to install

I'm getting this when I attempt to install it from a domain user. I can install apps from the Windows Store from that user without problems otherwise. Also it works fine if I attempt the installation from a local user on the same machine.

SSHFS remote file system mount failure

Having issues mounting a remote file system using sshfs
fuse seems to be failing to find the device

root@localhost:~# sshfs [email protected]:/home/m/ /root/mount/
fuse: device not found, try 'modprobe fuse' first
root@localhost:~# modprobe fuse
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.4.0+/modules.dep.bin'
root@localhost:~#

/etc/resolv.conf empty when "Obtain DNS server address automatically" is enabled.

When I installed the update, I noticed apt-get and other applications reaching anything outside of the local network, didn't work. After some fiddling around, I changed my DNS settings to use the Google DNS, and after a reboot it worked. After reproducing the bug, I noticed that the internet connection broke due to an empty resolv.conf

Steps to reproduce

  1. In the TCP/IPv4 Properties of your network adapter, make that Obtain DNS server address automatically is enabled.
  2. Perform a fresh install of LXSS using lxrun.exe /uninstall /full and lxrun.exe /install
  3. Check for connection issues with apt-get and check whether /etc/resolv.conf is empty.

Temporary Fix

As I want to keep using the DNS servers provided by DHCP for Windows, I simply added the following lines to /etc/resolv.conf, so that only LXSS uses the Google DNS.

nameserver 8.8.8.8
nameserver 8.8.4.4

I believe this is the cause of most networking issues most people are currently experiencing with LXSS, so it would be nice to get this fixed asap.

/dev/null is a weird file

That's precisely what stat says:

localhost ~ # stat /dev/null
  File: ‘/dev/null’
  Size: 0               Blocks: 0          IO Block: 512    weird file
Device: 0h/0d   Inode: 0           Links: 0
Access: (0000/?---------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1970-01-01 00:00:00.000000000 +0000
Modify: 1970-01-01 00:00:00.000000000 +0000
Change: 1970-01-01 00:00:00.000000000 +0000
 Birth: -

And it's causing problems with some programs (I don't remember what exactly was tripped by this in original userland, but I'm trying to run gentoo userland, and emerge fails sanity checks due to this).

Additionally, it appears there's no way to modify /dev - it always results in Operation not permitted.

Maximizing console host doesn't seem to trigger resize

Whenever I maximize the console host, the terminal process inside doesn't seem to receive an update with the new dimensions.

Another odd related behaviour is if I have the window at a certain size, run nano and then attempt to maximize the console window, it seems to constrain to whatever width nano is initialized at.

Maximizing should always force the new dimensions.

mv cannot move files between Windows mount and linux file system

Moving a file (with mv) within the Windows file system or within the Linux file system works exactly as it should, but moving between the two file systems yields the error:
mv: cannot move 'filename' to a subdirectory of itself, '/destination/filename'

Here is a complete test scenario:

root@localhost:~# cd /mnt/c/Users/Mark/
root@localhost:/mnt/c/Users/Mark# echo test > testfile
root@localhost:/mnt/c/Users/Mark# mkdir windir
root@localhost:/mnt/c/Users/Mark# mv testfile windir/
root@localhost:/mnt/c/Users/Mark# mv windir/testfile .
root@localhost:/mnt/c/Users/Mark# mv testfile /root/
mv: cannot move ‘testfile’ to a subdirectory of itself, ‘/root/testfile’
root@localhost:/mnt/c/Users/Mark# cp testfile /root/
root@localhost:/mnt/c/Users/Mark# rm testfile
root@localhost:/mnt/c/Users/Mark# cd /root
root@localhost:~# mkdir linuxdir
root@localhost:~# mv testfile linuxdir/
root@localhost:~# mv linuxdir/testfile .
root@localhost:~# mv testfile /mnt/c/Users/Mark/
mv: cannot move ‘testfile’ to a subdirectory of itself, ‘/mnt/c/Users/Mark/testfile’
root@localhost:~# cp testfile /mnt/c/Users/Mark/
root@localhost:~# rm testfile

tar with symbolic links

I could create a symbolic links by ln -s.

root@localhost:~# ls -l kkk
total 0
-rw-rw-rw- 1 root root 14 Apr  7 04:53 atest
lrwxrwxrwx 1 root root  5 Apr  7 04:54 btest -> atest

But I can't archive with the tar.

root@localhost:~# tar cvf kkk.tar kkk
kkk/
kkk/atest
tar: kkk/btest: Cannot readlink: Invalid argument
tar: Exiting with failure status due to previous errors

In reverse, the symbolic links in a tar file which built on Linux can't be extracted.

Cannot type using Greek keyboard layout

Under Win 10 build 14316, via Settings -> Time & Language -> Region & language -> Languages -> Add a language -> Greek (Ελληνικά), I've added a secondary keyboard layout in Windows (you can change with Alt-Shift). All other Regional Settings are defaults (US English).

Using this layout and typing in bash produces nothing, no characters are getting typed. I've generated the Greek locale in MS Bash Ubuntu, but that didn't help either. I used these commands:

locale-gen el_GR.UTF-8
dpkg-reconfigure locales

Perhaps this issue is also related to issue #11 and issue MicrosoftDocs/WSL#13 and issue MicrosoftDocs/WSL#9.
I can successfuly get Greek characters printed in MS Bash using side-ways, for example curl http://www.microsoft.com/el-gr/ or using cat test.txt on a file containing UTF8 characters, so this shows we are not talking about a font issue, rather an input method one probably.

If install fails, bash will be unusable

TCP/IP v4 got disabled when upgrading, so I tried to install Bash without networking. The install timed out, and opening bash (installer) again just sent me to c:/windows/system32. In order to get a usable image and shortcut, I had to reinstall using:

  1. lxrun /uninstall
  2. lxrun /install /y

midnight commander arrow keys

'apt-get install mc' is succefull
running 'mc' show the midnight commander interface but when trying to move using the arrow keys nothing append

Symlink woes

While I understand that NTFS does not support Symlinks, it is something that would be extremely helpful. The issue that i've found is that any tarball package that has symlinks will simply be broken in the sense that the link is never created. Granted that packages/installers should be able to work around this, but I've already come across this issue within hours of playing around. I can see this causing several issues down the road.

Think of an installer that installs something to /opt/software but creates a symlink to the executable to /usr/local/bin so it would be ready for use immediately without explicitly specifying the path.

mono runtime crashing

When I try to run mono C# console app, mono cashes, info:
Assertion at threadpool-ms-io.c:336, condition `fd >= 0' not met

Stacktrace:

Native stacktrace:

    mono() [0x4a725a]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7ff5ff2c0340]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7ff5fecf6cc9]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7ff5fecfa0d8]
    mono() [0x640289]
    mono() [0x640497]
    mono() [0x6405e6]
    mono() [0x596278]
    mono() [0x58eb44]
    mono() [0x63920c]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x8182) [0x7ff5ff2b8182]
    /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7ff5fedba47d]

Debug info from gdb:

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

Aborted (core dumped)

Unable to install anaconda python distribution

I just tried with the latest install file from https://www.continuum.io/downloads#_unix
Some of the symlinks generated during installation fails , I can't get a more verbose printout of the exact error, but it seems related to links stored in a tar file, this is output at moment of crashing.

PREFIX=/root/anaconda2
installing: _cache-0.0-py27_x0 ...
installing: python-2.7.11-0 ...
tar: bin/python: Cannot create symlink to ‘python2.7’: Invalid argument
tar: bin/python2: Cannot create symlink to ‘python2.7’: Invalid argument
tar: lib/libpython2.7.so: Cannot create symlink to ‘libpython2.7.so.1.0’: Invalid argument
tar: lib/pkgconfig/python.pc: Cannot create symlink to ‘python-2.7.pc’: Invalid argument
tar: lib/pkgconfig/python2.pc: Cannot create symlink to ‘python-2.7.pc’: Invalid argument
tar: share/man/man1/python.1: Cannot create symlink to ‘python2.7.1’: Invalid argument
tar: share/man/man1/python2.1: Cannot create symlink to ‘python2.7.1’: Invalid argument
tar: Exiting with failure status due to previous errors
root@localhost:~#

Ping is not working

Ping is not working on WSL.

When used, returns:
# ping google.com
ping: icmp open socket: Socket type not supported

OpenMPI: mpirun does not work

OpenMPI install without problem via:

apt-get install openmpi-bin

But mpirun is not working:

root@localhost:/home# mpirun -n 1 echo 'test'
[localhost:18861] [[39202,0],0] unable to open debugger attach fifo
--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it encountered an error:

Error: pipe function call failed when setting up I/O forwarding subsystem
Node: localhost

while attempting to start process rank 0.
--------------------------------------------------------------------------

Maybe related to #2?

Unable to install Java JDK or Runtime

Attempting to use apt-get install default-jdk (or the jre) results in several dependency failures and the package cannot be installed....

Selecting previously unselected package libx11-doc.
Preparing to unpack .../libx11-doc_2%3a1.6.2-1ubuntu2_all.deb ...
Unpacking libx11-doc (2:1.6.2-1ubuntu2) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../libxt-dev_1%3a1.1.4-1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.1.4-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up x11proto-core-dev (7.0.26-1ubuntu2) ...
Setting up libice-dev:amd64 (2:1.0.8-2) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libsm-dev:amd64 (2:1.2.1-2) ...
Setting up libxau-dev:amd64 (1:1.0.8-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.1-1) ...
Setting up x11proto-input-dev (2.3-1) ...
Setting up x11proto-kb-dev (1.0.6-2) ...
Setting up xtrans-dev (1.3.5-1
ubuntu14.04.1) ...
Setting up libxcb1-dev:amd64 (1.10-2ubuntu1) ...
Setting up libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...
Setting up libx11-doc (2:1.6.2-1ubuntu2) ...
Setting up libxt-dev:amd64 (1:1.1.4-1) ...
Setting up openjdk-7-jre-headless:amd64 (7u95-2.6.4-0ubuntu0.14.04.2) ...
the java command requires a mounted proc fs (/proc).
dpkg: error processing package openjdk-7-jre-headless:amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of default-jre-headless:
default-jre-headless depends on openjdk-7-jre-headless (>= 7~u3-2.1.1); however:
Package openjdk-7-jre-headless:amd64 is not configured yet.

dpkg: error processing package default-jre-headless (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of openjdk-7-jre:amd64:
openjdk-7-jre:amd64 depends on openjdk-7-jre-headless (= 7u95-2.6.4-0ubuntu0.14.04.2); however:
Package openjdk-7-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-7-jre:amd64 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.dpkg: dependency problems prevent configuration of default-jre:
default-jre depends on default-jre-headless (= 2:1.7-51); however:
Package default-jre-headless is not configured yet.

dpkg: error processing package default-jre (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached alreadydpkg: dependency problems prevent configuration of openjdk-7-jdk:amd64:
openjdk-7-jdk:amd64 depends on openjdk-7-jre (= 7u95-2.6.4-0ubuntu0.14.04.2); however:
Package openjdk-7-jre:amd64 is not configured yet.

dpkg: error processing package openjdk-7-jdk:amd64 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of default-jdk:
default-jdk depends on default-jre (= 2:1.7-51); however:
Package default-jre is not configured yet.
default-jdk depends on openjdk-7-jdk (>= 7~u3-2.1.1); however:
Package openjdk-7-jdk:amd64 is not configured yet.

dpkg: error processing package default-jdk (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of ca-certificates-java:
ca-certificates-java depends on openjdk-7-jre-headless (>= 7u3-2.1.1pre1-1) | java6-runtime-headless; however:
Package openjdk-7-jre-headless:amd64 is not configured yet.
Package java6-runtime-headless is not installed.
Package default-jre-headless which provides java6-runtime-headless is not configured yet.
Package openjdk-7-jre-headless:amd64 which provides java6-runtime-headless is not configured yet.

dpkg: error processing package ca-certificates-java (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
openjdk-7-jre-headless:amd64
default-jre-headless
openjdk-7-jre:amd64
default-jre
openjdk-7-jdk:amd64
default-jdk
ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)

Error 0x80070057

After installing Bash On Ubuntu on Linux, i cant open it. when i try to run the program from the menu, i see a window flash an kill itself.

when i try to run from powershell or cmd, i just get Error 0x80070057.

how i can identify this problem?

mv can't rename folder after unzip

Inside a Linux folder created on /.
for example I tried:
root@localhost:/# mkdir /mx6
root@localhost:/# cd /mx6
root@localhost:/mx6# cp /mnt/c/buildroot_master.zip .
root@localhost:/mx6# unzip buildroot_master.zip
....
root@localhost:/mx6# mv buildroot-master buildroot2
mv: cannot move ‘buildroot-master’ to ‘buildroot2’: Permission denied

also if I try to execute a make of my buildroot
I failed with patch system that cannot rename some file.
Regards

No connectivity from Bash to internet?

Running apt-get update returns the following:

root@localhost:~# apt-get update
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://security.ubuntu.com trusty-security InRelease

Err http://archive.ubuntu.com trusty Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
  Could not resolve 'security.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@localhost:~#

Running curl also doesn't seem to work:

root@localhost:~# curl www.microsoft.com
curl: (6) Could not resolve host: www.microsoft.com

I'm running Bash as an Admin.

My Windows 10 Pro Insider Preview Build Number:
Build 14316.rs1_release.160402-2217

Chroot fails everytime

chroot: cannot change root directory to /mnt/g/: Invalid argument

I have an ArchLinux installed and i really really really want to chroot in it.
Please make it work

npm package fails to install "npm ERR! Error: EACCES: permission denied"

While trying to install a packge with npm (for example lodash) it fails with error message:

npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "lodash"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! path /root/test/node_modules/.staging/lodash-9a2aabe2
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rename

npm ERR! Error: EACCES: permission denied, rename '/root/test/node_modules/.staging/lodash-9a2aabe2' -> '/root/test/node_modules/lodash'
npm ERR!     at destStatted (/usr/lib/node_modules/npm/lib/install/action/finalize.js:25:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR!
npm ERR! Error: EACCES: permission denied, rename '/root/test/node_modules/.staging/lodash-9a2aabe2' -> '/root/test/node_modules/lodash'
npm ERR!     at Error (native)
npm ERR!  [Error: EACCES: permission denied, rename '/root/test/node_modules/.staging/lodash-9a2aabe2' -> '/root/test/node_modules/lodash']
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/test/npm-debug.log

I have tried to install it both with and without starting bash in administrator mode.

Error: 0x80070057

I'm an early adopter and a think I comited some sort of mistake in the processo of instalation of bash on my Windows computer. I did just like the blog step by step says, but by some kind of sorcery, if i have to do some serious shit on my cmd (this is an old trouble) i need to open it as admin. I'v done the activation of Windows Subsystem for Linux and restarted my SO. But when I come back to install the bash by cmd I forgot to open it as admin. There was no trouble at all during the instalation but now when I try to open the bash, from the cmd (as adm or not), or even from the installed app I have this error by response:"Error: 0x80070057".

Any tips to fix this? and yes I alredy tryed to restart my computer fhaushfuashdf (sad this didn't worked)

Reads scrolling

"More" "less" or "man" commands do not get.
There is no way unless pipes of streams to get informations up a delivered stream on a windows console.

Linux works as strings, binary, and on that case, text and point.
PowersShell work on objects with definitions piped on each commands.

We just need a glass together.

Reinstalling clean image

Is there a way to reinstall a clean image of Ubuntu after having already installed it? Tried disabled and re-enabling the feature but no luck in getting a clean install.

Unable to input certain characters

I'm using Slovenian keyboard layout, and there are problems inputting characters that require AltGr (this includes , |, {, }, [, ]). Sometimes the character appears properly, other the terminal just beeps.

htop not working

'apt-get install htop' is successfull but running just does nothing, black screen.

Quick and Dirty Multi Platform Testing | GUI

This can be a basis of quick multi platform testing if you support many platforms (#1) when developing on Windows. Since many of the current system are GUI based it would be great if you can support windowing also.

Problem with tmpfs, /dev/shm does not exist or is not writable, there is no support for shared memory

Hi!
It's look like there is no proper support for shared memory.
I'm trying to compile linux Yocto image for Embedded ARM freescale i.mx6 UL based SOM.
When I trying to build image using bitbake it always returns:
/dev/shm does not exist or is not writable

There ins no difference if I run bitbake as root or as sudo user.

Is there in Linux Subsystem for Windows properly implemented tmpfs?
There is no info about tmpfs in fstab.

stat /dev/shm on WLS returns:

stat /dev/shm
File: ‘/dev/shm’ -> ‘/run/shm’
Size: 0 Blocks: 1 IO Block: 512 symbolic link
Device: 0h/0d Inode: 0 Links: 2
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-04-07 11:36:10.539632000 +0000
Modify: 2016-04-07 11:36:10.000000000 +0000
Change: 2016-04-07 11:36:10.000000000 +0000
Birth: -

File: ‘/run/shm’
Size: 0 Blocks: 0 IO Block: 512 regular empty file
Device: 0h/0d Inode: 13510798882223683 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-04-07 11:40:06.680796000 +0000
Modify: 2016-04-07 11:40:06.680796000 +0000
Change: 2016-04-07 11:40:06.680796000 +0000
Birth: -

On linux machine returns:
File: '/dev/shm'
Size: 40 Blocks: 0 IO Block: 4096 directory
Device: 12h/18d Inode: 11798 Links: 2
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-02-22 14:40:14.096000000 +0000
Modify: 2016-02-22 14:40:14.096000000 +0000
Change: 2016-02-22 14:40:14.096000000 +0000
Birth: -

On linux it is directory with access 17777 but on WLS it is file with access 0666.

System: Windows Insider Preview build 14316.rs1_release

.bashrc not used when `bash.exe -c "echo $ENV"`

Hi,

sorry for raising this if it's how it is meant to be. Raising this just in case :)

I've added environment variables as a test in .bashrc.

Environment variables are set when opening bash.exe.
Environment variables are not set when passing a command to bash.exe.

Thanks

Unable to install `acorn` npm package (inability to symlink on mounted drives)

Steps to reproduce:

  • Launch "Bash on Ubuntu on Windows" (note that it appears to use the 'root' user by default)
  • Install nodejs via: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
  • sudo apt-get install -y nodejs
  • Try to install the acorn package via npm install acorn

You'll get this message:

npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "acorn"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! path ../acorn/bin/acorn
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall symlink

npm ERR! Error: EPERM: operation not permitted, symlink '../acorn/bin/acorn' -> '/mnt/r/path/node_modules/.bin/acorn'
npm ERR!     at Error (native)
npm ERR!  { [Error: EPERM: operation not permitted, symlink '../acorn/bin/acorn' -> '/mnt/r/path/node_modules/.bin/acorn']
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../acorn/bin/acorn',
npm ERR!   dest: '/mnt/r/path/node_modules/.bin/acorn',
npm ERR!   parent: 'myproject' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/r/path/npm-debug.log

Not sure how to proceed as I'm already root with full permissions

UPDATE: For other nodejs developers finding this issue. Here is what I seem to have uncovered so far:

  • npm install -g {anything} doesn't seem to work
  • npm install {anything} doesn't seem to work if installing anywhere on /
  • npm install {some_packages} on /mnt/{something} sometimes doesn't work depending on whether or not that package needs to create symlinks

file created on window side are not seen in Linux side

Create a file with Notepad in C:\Users\xxx\AppData\Local\lxss\rootfs\tmp

File created can be displayed in Exporer
but it doesn't appear in linux
root@localhost:/mx6# cd /tmp
root@localhost:/tmp# ls
root@localhost:/tmp#
... nothing ...

even if I reboot my system
Regards,

mv can't rename folder after unzip

Inside a Linux folder created on /.
for example I tried:
root@localhost:/# mkdir /mx6
root@localhost:/# cd /mx6
root@localhost:/mx6# cp /mnt/c/buildroot_master.zip .
root@localhost:/mx6# unzip buildroot_master.zip
....
root@localhost:/mx6# mv buildroot-master buildroot2
mv: cannot move ‘buildroot-master’ to ‘buildroot2’: Permission denied

also if I try to execute a make of my buildroot
I failed with patch system that cannot rename some file.
Regards

top command issue

By writing the command "top" you no longer see any text you write in Bash.

Unable to pipe Bash output to other programs

I'm unable to spawn Bash from NodeJS. If you try to, it will return this error: Error: 0x80070057

How to reproduce:

  • Install NodeJS
  • Run node in CMD
  • Type:
cp = require('child_process');
proc = cp.spawnSync('cmd', ['/c', 'bash -c "ls"'], {encoding: 'utf8'}).output

It outputs:

[ null, 'Error: 0x80070057\r\r\n', '' ]

ref: MicrosoftDocs/WSL#8

Idea: Support different shells

I installed fish shell but setting it as the default shell with chsh -s /usr/bin/fish has not changed anything.

The only solution I can think of now is to include the fish command in .bashrc, but this has a problem: you have to exit from fish and then from bash (if you want to close cmd with exit).

It would be nice to set the shell to use when you press the "Bash on Windows on Linux" icon

plans for alternative distributions: e.g. Fedora, ArchLinux, etc?

My Windows machines always have a dual-booting Linux partition: playing games in Windows, and getting work done in Linux. As such, I'm extremely excited about WSL and Ubuntu on WSL.

I'm curious about whether or not there is room for more choice in distributions? Is there an open specification that describes what was necessary for Ubuntu to do? Can alternative distribution images that conform to this specification be used instead? Is it possible to build such an image myself, or is there a signing requirement?

I'd love to see ArchLinux and Fedora alternatives, once the dust settles of course.

Nano display issue

nano is displaying fine until you try to scroll the document, then only part of the screen is scrolling.
Sometimes when scrolling back (up) the console window is resizing itself (reducing its height)

wget from ftp does not end properly

root@localhost:/mnt/c/tmp# wget ftp://ftp.openssl.org/source/openssl-1.0.2g.tar.gz
--2016-04-07 19:31:12-- ftp://ftp.openssl.org/source/openssl-1.0.2g.tar.gz
=> ‘openssl-1.0.2g.tar.gz’
Resolving ftp.openssl.org (ftp.openssl.org)... 194.97.150.234, 2001:608:c00:180::1:ea
Connecting to ftp.openssl.org (ftp.openssl.org)|194.97.150.234|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /source ... done.
==> SIZE openssl-1.0.2g.tar.gz ... 5266102
==> PASV ... done. ==> RETR openssl-1.0.2g.tar.gz ... done.
Length: 5266102 (5.0M) (unauthoritative)

100%[==============================================================================>] 5,266,102 --.-K/s eta 0s

wget does not end properly when using ftp [http(s) works fine] - Ctrl+c helps in this case

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.