Comments (11)
- Do you have WSL installed already? You need a working installation first.
- 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.
I'm getting the same error on my desktop trying to install Fedora 23. To answer your questions:
- Yes WSL is installed and working.
- 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.
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.
Version 1607, build 14393.693
from wsl-distribution-switcher.
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.
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.
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.
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.
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.
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.
Same error with base/archlinux.
from wsl-distribution-switcher.
Related Issues (20)
- [!] Failed to fetch manifest info for cetos: HTTP Error 401: Unauthorized HOT 1
- "[!] The Linux subsystem is not installed. Please go through the standard installation procedure first." HOT 3
- Unable to find lxrun.exe in the expected locations. HOT 4
- [!] Failed to find tag 12.04 for image ubuntu.
- my_lookupdev: socket: Socket type not supported HOT 2
- WSL2 docker on centos7.6 not good
- gentoo install failed
- Error when prebuiling the kali rolling environment.
- `python install.py rootfs_kalilinux_kali-linux-docker_latest.tar.gz` with python 3.7 HOT 3
- bash - command not found HOT 1
- APT Key Expired and Unable to Update / Install HOT 4
- How can i install 3 different distros ?
- Instead of Centos 6 dowloading Centos 7 HOT 1
- Set default os in WSL
- With the Fall Creators update, is this dead? HOT 1
- Persistent "You do not seem to have the default distribution installed anymore."
- no lxss HOT 3
- python3 install.py rootfs_kalilinux_kali-linux-docker_ latest.tar.gz errors in files:
- get.prebuild.py fails on SSLError error [SSL: CERTIFICATE_VERIFY_FAILED]
- Unable to find lxrun.exe in the expected locations. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl-distribution-switcher.