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 183 forks source link

CentOS6.x installed, but i cannot open bash #81

Open matrix-cm opened 6 years ago

matrix-cm commented 6 years ago

I installed centos6/centos:6.6/centos:6.7/centos:6.8, but i cannot open bash after installed.. when i install centos7.x ,it works fine.

Does it not support the old version centos?

bencoman commented 6 years ago

Same problem. In the process of troubleshooting, did... C:...> lxrun /uninstall /full Then installed Ubuntu and Kali from the App Store, then followed these instructions... http://www.mcubedtech.com/2018/07/running-linux-on-windows.html

C:...> wslconfig /list Windows Subsystem for Linux Distributions: Legacy (Default) kali-linux Ubuntu

btw... C:...> winver Version 1803 (OS Build 17134.165)

C:...> install.py centos:latest [*] Probing the Linux subsystem... [*] Default user is root at /root. [*] Reading /etc/{passwd,shadow,group,gshadow} entries for root... [*] Beginning extraction... [*] Backing up current rootfs to .... [*] Switching to new rootfs... [*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...

C:...> bash Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution... -bash: mesg: command not found root@BENGINEER:/mnt/c/Apps/WSL-Distribution-Switcher-master# exit

So that worked, it got a bash prompt. However... C:...>install.py centos:6.6 [*] Probing the Linux subsystem... [*] Default user is root at /root. [*] Reading /etc/{passwd,shadow,group,gshadow} entries for root... [*] Beginning extraction... [*] Backing up current rootfs to ..... [*] Switching to new rootfs... [*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...

C:\Apps\WSL-Distribution-Switcher-master>bash Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution... C:\Apps\WSL-Distribution-Switcher-master>

That didn't work. Its still at the cmd.exe prompt. Bash prompt never appeared.

CentOS 6 is the build target for a new gig I'm starting. Would be really great if this worked, otherwise I might have to dig deeper... https://www.brad-x.com/2017/11/05/windows-subsystem-for-linux-installing-arbitrary-distributions/

bencoman commented 6 years ago

And here is my registry config...

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{12345678-1234-5678-0123-456789abcdef}] "State"=dword:00000001 "DistributionName"="Legacy" "Version"=dword:00000000 "BasePath"="C:\Users\Ben\AppData\Local\lxss" "DefaultUid"=dword:00000000 "Flags"=dword:00000007 "KernelCommandLine"="BOOT_IMAGE=/kernel init=/init ro" "DefaultEnvironment"=hex(7):48,00,4f,00,53,00,54,00,54,00,59,00,50,00,45,00,3d,\ 00,78,00,38,00,36,00,5f,00,36,00,34,00,00,00,4c,00,41,00,4e,00,47,00,3d,00,\ 65,00,6e,00,5f,00,55,00,53,00,2e,00,55,00,54,00,46,00,2d,00,38,00,00,00,50,\ 00,41,00,54,00,48,00,3d,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,\ 61,00,6c,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,\ 00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,\ 73,00,72,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,\ 00,62,00,69,00,6e,00,3a,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,62,00,\ 69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,00,67,00,61,00,6d,00,65,00,73,\ 00,3a,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,\ 67,00,61,00,6d,00,65,00,73,00,00,00,54,00,45,00,52,00,4d,00,3d,00,78,00,74,\ 00,65,00,72,00,6d,00,2d,00,32,00,35,00,36,00,63,00,6f,00,6c,00,6f,00,72,00,\ 00,00,00,00