Skip to content

WSL issues and solutions

Gore Liu edited this page Sep 19, 2017 · 2 revisions
  1. Failed to run locale-gen.
% locale-gen
Generating locales...
  en_US.UTF-8...localedef: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
/usr/bin/locale-gen: line 41:   
184 Aborted (core dumped) localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale

Solution:

Copy a /usr/lib/locale/locale-archive file from a Linux os to /usr/lib/locale/locale-archive, and make a backup.

Links:

https://github.com/Microsoft/BashOnWindows/issues/1878

  1. Failed to run script.
goreliu@my-pc:~/app/mine/pkg/script
% script
Script started, file is typescript
script: cannot set signal handler: Function not implemented

Solution:

Build util-linux 2.26.2, copy script to /usr/bin/script, and make a backup.

  1. Failed to run fakeroot.
% fakeroot
fakeroot, while creating message channels: Function not implemented
This may be due to a lack of SYSV IPC support.
fakeroot: error while starting the `faked' daemon.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Solution: Build fakeroot with --with-ipc=tcp (https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=fakeroot-tcp).

Links:

https://github.com/Microsoft/BashOnWindows/issues/2465

  1. Failed to run fish.
% fish
fish: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
zsh: abort (core dumped)  fish

Solution:

Use a patched glibc ...

Links:

https://github.com/Microsoft/BashOnWindows/issues/1878