RoliSoft / WSL-Distribution-Switcher

Scripts to replace the distribution behind Windows Subsystem for Linux with any other Linux distribution published on Docker Hub.
MIT License
1.68k stars 185 forks source link

install.py #73

Open ghost opened 6 years ago

ghost commented 6 years ago

Not sure why it's failing to pobe_wsl ?

:~/WSL-Distribution-Switcher$ sudo python3 install.py rootfs_kalilinux_kali-linux-docker_latest.tar.gz
[*] Probing the Linux subsystem...
Traceback (most recent call last):
  File "install.py", line 48, in <module>
    basedir, lxpath = probe_wsl()
  File "/home/jan/WSL-Distribution-Switcher/utils.py", line 185, in probe_wsl
    basedir = os.path.join(os.getenv('LocalAppData'), 'lxss')
  File "/usr/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
Dr-Chaos commented 6 years ago

Because you use the script from your Subsystem ! You must use install.py from Windows (ex PowerShell)

ghost commented 6 years ago

Ohh right thanks.