Forum Discussion
philthethrill
Jan 22, 2022Copper Contributor
Windows Subsystem for Linux Preview Can't Find the File Specified
I downloaded the Windows Subsystem for Linux Preview from the Microsoft Store last year, and it said "The system cannot find the file specified." I downloaded the update today, and it said the same t...
Jan 23, 2022
I guess uninstall the Windows Store option and install it using Turn Windows Features on or off?
- philthethrillJan 26, 2022Copper ContributorI already had Windows Subsystem for Linux installed long before the Windows Store option became available. Any other suggestions?
- Jan 26, 2022https://github.com/microsoft/WSL/issues/7626
- Make sure that File Explorer is set to show hidden and system files.
- Open File Explorer to C:\Program Files\
- Right-click WindowsApps and open properties, then open the advanced security options.
- Remove any specific user accounts (usually with Full Control) from the list and click Apply.
- Click "Change" next to the "Owner:" line and accept the UAC dialog.
- Paste NT SERVICE\TrustedInstaller into the box, then click "Check Names" and OK.
- Check the box next to "Replace owner on subcontianers and objects" and click OK.
- In an elevated PowerShell window, run Remove-AppxPackage (get-appxpackage MicrosoftCorporationII.WindowsSubsystemforLinux -Allusers) -AllUsers
- Reinstall the WSL Preview app from the Microsoft Store https://www.microsoft.com/en-us/p/windows-subsystem-for-linux-preview/9p9tqf7mrm4r
- To check the permissions, run get-acl "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemforLinux_0.48.2.0_x64__8wekyb3d8bbwe\wsl.exe" | Format-List and make sure that it is owned by NT SERVICE\TrustedInstaller and that your user account does not have access.- philthethrillFeb 14, 2022Copper Contributor
Harm_Veenstra I followed the steps until I got to the part where I can reinstall WSL Preview, but I can't install it. It says, "There has been an error." When I click on see details, it gave me an error code: 0x80070005. Not only that, I can't update any of the apps from the Microsoft Store. For every app that I try to update, it says, "Something happened on our end." It's been like this ever since I followed the steps to change ownership in WindowsApps. I did that on February 8. I didn't have time until then to try it to see if it makes a difference with the WSL Preview app.