Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other distros stopped working after the Windows April 2018 update #42

Closed
gaurav-nelson opened this issue May 2, 2018 · 23 comments
Closed

Comments

@gaurav-nelson
Copy link

With the latest update existing distros installed previously stopped working. But the officially installed Ubuntu is working fine.

How to get around this?

Errors (mintty):

/bin/wslbridge: Exit 1.
wslbridge error: failed to start backend process
note: bash.exe output: Error: 0x80070005

Also:

G:\LxRunOffline-v2.2.2>LxRunOffline.exe run -w -n ubuntu222
Error: 0x80070005
@makzimus
Copy link

makzimus commented May 3, 2018

This is happening to me also after upgrading to Windows 10 build 1803. I've tried installing fresh from Ubuntu packages and also installing Ubuntu from the Windows Store and then using LxRunOffline to move the install, both having the same result.

Let me know if you need more information. I can dig whatever you need up.

@DDoSolitary
Copy link
Owner

DDoSolitary commented May 5, 2018

I haven't found out the actual cause of this problem but launching the distro with admin privilege may solve it, as reported by @yar999

@lonelyion
Copy link

I've got into the same problem

@gaurav-nelson
Copy link
Author

gaurav-nelson commented May 7, 2018

@DDoSolitary With admin privileges I see the following warning:

[WARNING] You are running LxRunOffline with administrator privileges. It may cause problems.
Do you want to continue? (y/n):

But I am able to run other distros if I continue:

C:\LxRunOffline-v2.2.2>LxRunOffline.exe run -n Arch
[WARNING] You are running LxRunOffline with administrator privileges. It may cause problems.
Do you want to continue? (y/n): y
[user@TEST LxRunOffline-v2.2.2]$ 

@YAmikep
Copy link

YAmikep commented May 9, 2018

Same issue here.
I used to use Wsltty %LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL="DISTRONAME" -h err --configdir="%APPDATA%\wsltty" -~ (in a shortcut) but this is not working anymore.

I tried to install a fresh new distro but it's not working either.

If I run a Powershell with admin privileges and then run LxRunOffline.exe run -n DISTRONAME, it seems to work.

@DDoSolitary
Copy link
Owner

I guess it's related to #41. But I don't know why the upgrade doesn't work.

@DDoSolitary
Copy link
Owner

Could you please check if broken distros can be launched by bash.exe(before running it as admin)

@YAmikep
Copy link

YAmikep commented May 9, 2018

@DDoSolitary How do you launch other distros with bash.exe?

@DDoSolitary
Copy link
Owner

Use lxrunoffline default -n to set a default distro and then run bash.exe.

@YAmikep
Copy link

YAmikep commented May 9, 2018

It's working.
At the same time, things started to work this morning anyway. Not sure why but my shortcut with %LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL="DISTRONAME" -h err --configdir="%APPDATA%\wsltty" -~ works now... The only issue I have is that my profile files are not loaded but it starts now. ¯_(ツ)_/¯

@AleckAgakhan
Copy link

AleckAgakhan commented May 9, 2018

The system attempts to inject new '/init' after being updated so it needs the distro to be started with administrative privileges. Just make first run of 'LxRunOffline.exe run -n distro' in cmd console that is started as 'Run as administrator'.

@gaurav-nelson
Copy link
Author

Thanks @DDoSolitary @YAmikep @AleckAgakhan
This issue is now resolved. I also noticed that you don't need admin rights if you do this using the wslconfig utility. Here is what worked for me:

C:\WINDOWS\system32>wslconfig.exe /l
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
Fedora
Arch
Ubuntu2

C:\WINDOWS\system32>wslconfig.exe /s Ubuntu2

C:\WINDOWS\system32>bash
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
root@TEST:/mnt/c/Windows/System32# exit
logout

C:\WINDOWS\system32>

@DDoSolitary
Copy link
Owner

DDoSolitary commented Jul 6, 2018

Hey guys, did you install your distribution on a non-system drive (e.g. D:)? It seems that admin privilege is required when setting a special file system flag on such drives.

@Biswa96
Copy link

Biswa96 commented Jul 7, 2018

This is related to the folder permission. There is a workaround mentioned in this thread microsoft/WSL#3304 (comment)

Let say you want to install in D:\foo\bar. Then run this command before installation: icacls "D:\foo\bar" /grant Everyone:(OI)(CI)(F). You may replace Everyone with %username%.

Hope this will solve your issue!

@DDoSolitary
Copy link
Owner

DDoSolitary commented Jul 8, 2018

@Biswa96 I just tested it. Giving "Delete subfolders or files" permission solves the issue. Thanks.

DDoSolitary added a commit that referenced this issue Jul 20, 2018
@DDoSolitary
Copy link
Owner

I don't want to "fix" a "bug" which is actually a Windows' bug. So I just added a warning message. Please wait for MS to fix it.

@Knedox
Copy link

Knedox commented Aug 7, 2018

After updating to 1803 i had the same problem as some of you above "Error: 0x80070005"

As i have a lot of stuff installed on my ubuntu wsl, starting everything from scratch again wasnt an option for me.
Fortunately i still had a clean ubuntu wsl installation from 1709 to compare with a clean install on 1803 which works.

Only difference was the rootfs/init file. So i took winhex and copied the content of the working ubuntus init file to the old ubuntu init file. Problem solved

@mrdimfox
Copy link

mrdimfox commented Sep 18, 2018

I've still got this error on my Windows 10 build 1803.
I want to install Ubuntu Bionic on a non-system drive. I've created a folder "E:\WSL\bionic", run
icacls "E:\WSL\bionic" /grant "%USERNAME%":(OI)(CI)(F)
before the installation. Then I've started this command from a non-admin powershell:
LxRunOffline install -n bionic -f '.\tar\ubuntu-bionic-core-cloudimg-amd64-root.tar.gz' -d bionic
Then I've tried to make the first start of bash.exe with admin priveleges as @AleckAgakhan has recomended:
LxRunOffline run -n bionic
But I've got a error:
Error: 0x80070002

@Biswa96
Copy link

Biswa96 commented Sep 18, 2018

@mrdimfox Did you see any error during installation?
BTW, @DDoSolitary The error messages can be retrieved with FormatMessage() (without manually writing).

@mrdimfox
Copy link

mrdimfox commented Sep 18, 2018

@Biswa96 I have no errors, but I have warnings like

[WARNING] Ignoring an unsupported file "dev/null" of type 8192.
[WARNING] Ignoring an unsupported file "dev/ptmx" of type 8192.
[WARNING] Ignoring an unsupported file "dev/urandom" of type 8192.
[WARNING] Ignoring an unsupported file "dev/tty" of type 8192.
[WARNING] Ignoring an unsupported file "dev/zero" of type 8192.
[WARNING] Ignoring an unsupported file "dev/full" of type 8192.

@mrdimfox
Copy link

Hm, I suddenly notice that I have a different error code than topicstarter. May be I am writing in the wrong thread.

@DDoSolitary
Copy link
Owner

DDoSolitary commented Sep 18, 2018

@Biswa96 The error code is directly output by WSL. Actually WslLaunchDistributionInteractive returns S_OK even if there's an error so there's nothing I can do. All other error codes I get from Win32 API calls are converted into error messages before being printed.

@DDoSolitary
Copy link
Owner

@mrdimfox please open a new issue, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants