ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Cannot run arch after installing appx - "The system cannot find the file specified."

Open MadCabbit opened this issue 5 years ago • 8 comments

Describe the issue The Arch shortcut just closes automatically. Running arch from the cmd.exe gives "The system cannot find the file specified." I was running Windows 10 1909 and upgraded to 2004 with no change.

To Reproduce Steps to reproduce the behavior: Run the Arch shortcut or arch from the command line.

Expected behavior I expect it to actually launch.

Enviroment:

  • Windows build number: 10.0.19041.264
  • Security Software: [e.g. ESET Internet Security] Only Windows Defender.
  • WSL version 1/2: WSL2
  • ArchWSL version 20.4.3.0
  • ArchWSL Installer type: appx
  • Launcher version [e.g. 19030700] (Type Arch.exe version at a Command Prompt) 20040300

Additional context I initially had another command "arch" in my path I thought was the culprit. Since it belonged to an install I no longer use, I deleted said path, but repairing or reinstalling still gives the error.

MadCabbit avatar May 28 '20 10:05 MadCabbit

I decided to switch the default wsl to 2 and try reinstalling. Now Arch refuses to reinstall on this machine (though it works in both wsl1 and wsl2 on my laptop).

Installing... ERROR:Installation Failed! HRESULT:0x80370109 Press any key to continue...

MadCabbit avatar May 28 '20 19:05 MadCabbit

Now running wsl in any way gives me the following error, even after deleting the Arch package:

/bin/wslbridge: Exit 1. wslbridge error: failed to start backend process note: backend error output: -350942: -c: line 0: unexpected EOF while looking for matching `'' -350942: -c: line 1: syntax error: unexpected end of file

MadCabbit avatar May 28 '20 19:05 MadCabbit

The wslbridge error went away after a reboot, but the HRESULT error is still there.

MadCabbit avatar May 28 '20 20:05 MadCabbit

yeah im having the same issue but nothing will change or remove the error. I even reinstalled WSL 1 and 2and it didn't work with either. it does the same thing with both the Zip version and the Appx version.

windows version : 1903 Build: 18362.900

Lite5h4dow avatar Jun 30 '20 13:06 Lite5h4dow

I've got same error installing with .cer, and appx. Any way to fix the error?

linuxmobile avatar Mar 25 '21 19:03 linuxmobile

What solved it for me was unregistering Arch with (in CMD/Powershell):

wsl --unregister Arch

CoderPat avatar Aug 04 '21 23:08 CoderPat

I've got the same error before. Then I check the file named "rootfs.tar.gz", and I find that only Arch.exe is there and there is no rootfs.tar.gz in the same directory. After I unzip rootfs.tar.gz from zip file and copy to the directory where Arch.exe is in, it works.

liarchgh avatar Mar 10 '22 02:03 liarchgh

Running wsl --update, unregister and rerun Arch.exe/installed package did solve the problem for me.

noirgif avatar Jan 16 '23 19:01 noirgif