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 26, 2022
https://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.
- 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.
philthethrill
Feb 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.
- Feb 14, 2022Ok, so the Store has issues itself perhaps? You could try:
Launch The Built-In Windows Troubleshooter:
- Go to Settings.
- Then click on Update and Security.
- Then click on Troubleshooting.
- Go to Advanced Troubleshooting.
- Select Microsoft Store apps.
- Launch them and let the program run.- philthethrillFeb 15, 2022Copper ContributorI did that. It changed the location of temporary files, and it suggested that I reset the apps. I did that, but I'm still having issues with downloading and updating apps. Any other suggestions?
- Feb 15, 2022Log off Windows Store and log in again? And you could try running wsreset.exe?