Open domtoupin opened 7 years ago
Your user profile could be damaged. I'd try to create a new user account with admin rights and after enabling WSL install Ubuntu from the store.
Are you trying ubuntu install
or just ubuntu
? I don't think it will install on the ubuntu install
case, IIRC it just wants to be launched without any params.
I received the same thing - I tried executing the ubuntu.exe directly (C:\Program Files\WindowsApps\CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64__79rhkp1fndgsc\ubuntu.exe
) in an administrator cmd prompt, but it failed with "access denied"
I've also tried:
%localappdata%\Lxss
folderlxrun /install
followed by lxrun /uninstall /force
Same problem here.
@zadjii-msft I was trying ubuntu
, but I also am unable to start the ubuntu prompt by clicking the ubuntu icon in the start menu:
@mdentremont Can you try the other way to install a distro? Follow these steps:
Uninstall Ubuntu with right click on the Ubuntu start menu icon -> Uninstall.
Download Ubuntu appx from https://aka.ms/wsl-ubuntu-1604
Double click on the appx file to install Ubuntu manually.
If that works then there is a problem with the Windows Store.
hello @onomatopellan,
sorry, but that didn't work for me.
nb: this is not only an issue with ubuntu. the same happens with openSUSE, too.
what i tried so far: nb: i already had "bash on ubuntu on windows" working on 1703
first attempt
restored windows to 1703 from bare metal backup second attempt
bye, oskar
Same problem, found "a" workaround:
@rohatsu - this worked for me too. I had an unrelated error when trying to run ubuntu.exe
for the first time. So simple, yet so effect, thank you!
L.E. The problem with this (and I think it's not even a problem) is the fact that the root filesystem gets created under the new directory instead of AppData\Local\Packages
.
My error was https://github.com/Microsoft/WSL/issues/2323.
@rohatsu - I confirm that your work around also works for me; many many thanks!
@zadjii-msft this is still an issue for many users (without the workaround of course) - just want to make sure it doesn't fall through the cracks
@mdentremont Don't worry, it's still on the radar, even though I apparently forgot to mark it as a bug. My bad. It is on the radar though :)
Any progress on this?
today a colleague of mine did an update from wsl on 1703 to 1709. same result. we are still able to use legacy bash, but a solution would be desirable..
On Fri, Jan 19, 2018 at 11:24 AM, Oliver Hanappi notifications@github.com wrote:
Any progress on this?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/WSL/issues/2577#issuecomment-358925869, or mute the thread https://github.com/notifications/unsubscribe-auth/AO8mppChipyoPqZq8qaHGtXRNKwjAY0Oks5tMG1WgaJpZM4P_V_m .
I also encountered the same error
installed 1803 last night. same "the parameter is incorrect" as before (with debian, too)
What's the status on this? The old product on 1703 worked. On 1709 , I got "the parameter is incorrect". Now on 1803, I get the same message "the parameter is incorrect". Please someone!
@zadjii-msft Still broken on latest April 2018 update. Should it have been fixed here? Is there anything I should be doing to clear caches, etc?
@benhillis owns the launcher code now, maybe he has a better idea
Does that problem happen for all WSL Windows Store app?
@Biswa96 I just tried openSuse and got the same dialog
Since you are seeing this as a error dialog I feel this is likely a store issue and unrelated to WSL, however we could quickly confirm that by a trace.
Could somebody who is experiencing this issue please collect a trace while attempting to launch?
https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#8-detailed-logs
@benhillis detailed-logs-running-ubuntu-exe.zip
@mdentremont - Thanks for sharing the traces. As I feared there are no events coming from our components so I suspect something else in Windows is causing this failure. Are there any interesting events in your event log around when this error occurs?
@benhillis I've browsed around and couldn't see anything - do you know of a custom event filter which might catch anything relevant?
@mdentremont - Sorry none that I know of. You might be able to track down where the error is coming from by using ProcMon.
Is it because of domain control users? After I reinstalled the system, I did not use domain controllers , I did not report this error again.
I encountered the same error, that is on my laptop from work (domain user). I don't have this issue on my PC at home, seems like an domain issue?
I have most of my files on a secondary drive with SYMLINKD's on the system drive. I just moved my AppData\Local folder back onto the system drive. Now I can launch kali
or ubuntu
from the command line or Start Menu, but launching bash
still gives Error: 0x80070003
.
Edit: I had copied the folder of the WindowsApps to another location as a workaround. Now that I've removed it, all methods of launching are giving the same error code. I was part of the WSL beta, but I have run lxrun /uninstall /full
from an elevated prompt. I just entirely disabled the WSL optional feature, rebooted, and started over. Still getting the same error.
It's not just a domain issue, also happens with local users.
I had a local profile with this issue, and a while back tracked it down with ProcMon to some Windows History folder (IIRC the folder name also referred IE) somewhere in AppData. Unfortunately I was in a hurry and didn't take notes.
I couldn't tell exactly what was going wrong with the folder, but deleting the folder manually fixed the issue. It seems to be a more general Store/Windows issue as suggested above and not specific to WSL, even though WSL installs happen to trigger it.
@benhillis This has happened to everybody in my office - we all were part of the "bash for windows" beta, which was before the Windows 10 Fall Creators update. Once we installed the fall creators update which I believe added support for installing linux ditros through the store, none of the available distros worked.
I'd venture a guess that pretty much everyone in this thread is experiencing the same issue. Do you think it would be possible for you to test this out on your end? As I mentioned, this is an issue on the 2 other developer laptops in my office, so it will hopefully be easy to reproduce.
@mdentremon - I use WSL every day and have never hit this issue. This is likely something configuration-related. Do other store apps work on these machines?
The workaround @rohatsu described works for me as well (thanks mate!).
I have multiple store apps installed and none of them give any issues, it's only the Ubuntu Windows Store App. Other distro's like Kali Linux or openSUSE give the same error.
I found the following error in the event viewer: 0x80070057: Cannot create the process for package CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2018.427.0_x64__79rhkp1fndgsc because an error was encountered while configuring runtime. [LaunchProcess]
@benhillis Other store apps work for us. Were you using WSL back when it was in beta and not available through the Windows store? And then after updating to the Fall Creators update, the store Ubuntu app worked fine despite still having the old WSL installed?
@benhillis Update: I tried installing Slack through the Windows store today and the issue is present for it as well, so this likely isn't a WSL issue.
I found that it may not be a WSL issue also. It is a Windows Store issue. The only solutions that seems to work for people are drastic. Create new windows store user or reinstalling Windows are some of the things that do work. I guess i won't be using any windows store programs from now on.
Same problem as described by others above. In addition to the workaround by @rohatsu running bash
from command prompt also works.
Works as of the latest Windows October update (1809)!
i can confirm that it works with the latest windows 10 update (1809)
Pretty lame. Same issue here. I dont understand why Microsoft doesnt fix issues like this after so many people report it.
PS: Copying the folder to another place on my file system (and executing the Ubuntu executable elevated) fixed the issue for me.
@benhillis Do you have a communication channel to the Windows Store team? I can confirm the issue is still present with Windows 10 1903. Two years seems like an awfully long time for this bug to persist.
Ridiculous that this is still a problem and a horrendous first-time user experience. Easier to just download VirtualBox than to DO ANY of this CRAP
thanks @rohatsu, it works for me too.
i just execute wrong command(like mv /* /xx) on ubuntu, then everything is gone.
so i restarted reinstall everything, the result is the error code: WslRegisterDistribution error 0x80370102 when openning wsl ubuntu
Still getting this:
@rohatsu's solution works for me and the advantage is that Ubuntu is running on the HD instead of the SSD so less wear on it.
Same problem, found "a" workaround:
- copy contents of _C:\Program Files\WindowsApps\CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64_79rhkp1fndgsc to another directory (I copied to C:\Ubuntu); Windows Explorer didn't let me browse this directory so I used Total Commander (Run As Administrator) to access it and copy
- start ubuntu.exe from the new location and it should install
- use ubuntu.exe from the new location going forward to start up bash etc.
unfortunately this didnt resolve the issue. I am still getting
Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80070057 Error: 0x80070057 The parameter is incorrect. Press any key to continue...
This is an actual problem with the Microsoft Store. I was getting the same error while trying to launch Ubuntu and this is what worked for me:
Troubleshoot + restart Microsoft Store. https://www.tenforums.com/tutorials/45437-run-windows-store-apps-troubleshooter-windows-10-a.html
At this point, I was getting the following error in the terminal: "WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again."
This can be solved by turning on the developer mode and turning on the Windows Subsystem for Linux feature, these steps are explained here: https://answers.microsoft.com/en-us/insider/forum/all/how-to-enable-the-windows-subsystem-for-linux/16e8f2e8-4a6a-4325-a89a-fd28c7841775?auth=1
As I said, this worked fine for me and it got rid of the error. Let me know if it's any help.
Edit: It's been one day and the error is back. The steps I followed yesterday don't seem to work anymore.
I found a solution how to fix this, following the tips by @rohatsu .
this happened to me because my windows store is broken, so what I did is I downloaded WSL(ubuntu) manually from this link this. After I installed it, it occurs the error like the description of the problem, and I follow the guides form @rohatsu has mentioned. however, I couldn't see the directory of the Ubuntu which has been installed since I cannot access C:\Program Files\WindowsApps\
folder.
so what I did is, first I make my PC current user as administrator to get the ownership of files which is private, I followed step no.2 on this website to get it website.
after I am getting the ownership of the administrator to my local user (pc user), now I can open C:\Program Files\WindowsApps\
folder. from there I copied the content inside the Ubuntu folder (in my case its name is CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2018.817.0_x64__79rhkp1fndgsc) and paste it on C:\Ubuntu
which is the folder I made it myself, and run the .exe
from there and somehow it works.
I gave up on this a long time ago...this is an absolutely HORRIBAD first time user experience
you might want to try it again following the instructions slowly, and you will get it. the idea is simple, what you just need to do is accessing the installation folder of wsl and move it else where. and open it from the new directory of wsl.
at least it works for me, would be glad if I could help
you might want to try it again following the instructions slowly, and you will get it. the idea is simple, what you just need to do is accessing the installation folder of wsl and move it else where. and open it from the new directory of wsl. at least it works for me, would be glad if I could help
Yes this definitely works. I was never able to repair the permissions issue with the original 'WindowsApps' hidden folder though; even when setting permissions for EVERYONE to have access to the folder.
ver
at a Windows Command Prompt)Microsoft Windows [version 10.0.16299.19]
I just installed the Windows 10 Fall Creator Update and I was thrilled at the fact that I could install Ubuntu.
However, all my attempts resulted in the following error: From the UI (attempt to launch from Windows Store, I simply Ctrl-C, Ctrl-V the Dialog box here)
Power Shell (both as regular user and as administrator)
(Sorry for the french...)
What I did was this:
I am now out ouf ideas...