Giter Site home page Giter Site logo

Comments (11)

RoliSoft avatar RoliSoft commented on July 1, 2024
  1. Do you have WSL installed already? You need a working installation first.
  2. Are you running the script inside WSL or from command prompt? You need to run it from command prompt, outside of WSL, while WSL is not running.

from wsl-distribution-switcher.

Ikuni17 avatar Ikuni17 commented on July 1, 2024

I'm getting the same error on my desktop trying to install Fedora 23. To answer your questions:

  1. Yes WSL is installed and working.
  2. Running the install script from command prompt outside of WSL directory and WSL is not running.

As a side note, I have used the distro switcher for a month or so on my laptop now and it has worked fine.

from wsl-distribution-switcher.

RoliSoft avatar RoliSoft commented on July 1, 2024

There are a few people reporting similar errors. I'll try to install a fresh insiders build and run the script on a few distributions, in order to see if anything is broken.

For the record, what build of Windows 10 are you using?

from wsl-distribution-switcher.

Ikuni17 avatar Ikuni17 commented on July 1, 2024

Version 1607, build 14393.693

from wsl-distribution-switcher.

RoliSoft avatar RoliSoft commented on July 1, 2024

Have you been able to resolve this issue? If not, I will be requiring more information, since I cannot reproduce it.

from wsl-distribution-switcher.

Ikuni17 avatar Ikuni17 commented on July 1, 2024

I have not been able to. I was planning to try reinstalling lxss since I don't have anything critical on it currently.

from wsl-distribution-switcher.

T-Deuty avatar T-Deuty commented on July 1, 2024

FWIW, I was able to get centos:latest installed as of today, 3/30/2017. However, I cannot restart services, I get the following error when trying to run systemctl:
Failed to get D-Bus connection: Operation not permitted

from wsl-distribution-switcher.

akavel avatar akavel commented on July 1, 2024

I'm getting the same error when trying to py install.py nixos/nix. Any suggestions? I tried to run this immediately after alwsl (which completed successfully).

edit: With the following patch:

diff --git a/install.py b/install.py
index c65f563..61b7c39 100755
--- a/install.py
+++ b/install.py
@@ -9,6 +9,7 @@ import shutil
 import tarfile
 import os.path
 import subprocess
+import traceback

 from collections import OrderedDict
 from ntfsea import ntfsea, lxattrb, stmode
@@ -73,6 +74,7 @@ try:

 except BaseException as err:
        print('%s[!]%s Failed to get home directory of default user in WSL: %s' % (Fore.RED, Fore.RESET, err))
+       traceback.print_exc()
        sys.exit(-1)

 # check squashfs prerequisites

I'm getting the following stack trace:

[*] Probing the Linux subsystem...
[!] Failed to get home directory of default user in WSL: [WinError 2] Nie można odnaleźć określonego pliku
Traceback (most recent call last):
  File "install.py", line 59, in <module>
    uid, gid, user = get_lxss_user()
  File "C:\dnload\os-etc\wsl-distribution-switcher\utils.py", line 553, in get_lxss_user
    uid,  uid_type  = winreg.QueryValueEx(lxreg, 'DefaultUid')
FileNotFoundError: [WinError 2] Nie można odnaleźć określonego pliku

edit 2: in the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss, I have only one key: State REG_DWORD 0x00000001 (1)

from wsl-distribution-switcher.

akavel avatar akavel commented on July 1, 2024

Hmm! Running the following command in Windows (cmd shell):

c:> lxrun /setdefaultuser someuser

seems to create the registry values! I'll try to run install.py again with this...

from wsl-distribution-switcher.

akavel avatar akavel commented on July 1, 2024

As to my intended docker repo (nixos/nix), after successful install.py, when trying to run "bash" I'm getting 0x80070002, so I assume it's the same as #20, meaning roughly that Alpine Linux doesn't currenly work on WSL.

from wsl-distribution-switcher.

pasteley avatar pasteley commented on July 1, 2024

Same error with base/archlinux.

from wsl-distribution-switcher.

Related Issues (20)

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.