Windows Linux Subsystem (WSL) delete and reinstall issues

Recently I was tossing about WSL and I installed an Ubuntu 16 and an 18, but because of some system problems, I have not been able to set it up properly. I plan to uninstall and reinstall. However, follow the online tutorials wslconfig /l, wslconfig /u after uninstalling, and then go through Windows again There is always a problem with the Store installation. The Store shows that the two apps have been installed, and there is only one option to start, but when you click Start, an error is reported, saying that the corresponding file is not found. Re-clicking to get it does not work. The system displays that it has been downloaded, but it says that the file cannot be found when it clicks to start. It has been unable to solve it for a long time. Finally, a solution was found, which was solved by command line in Powershell.

First, check which packages have been installed:

Get-AppxPackage -allusers | Select Name, PackageFullName

Then you can see the software package you want to delete in the list, execute the following command to delete, for example, to delete Ubuntu16

get-appxpackage CanonicalGroupLimited.Ubuntu16.04onWindows | remove-Appxpackage

After completion, download the application again in the Windows Store.

 

Guess you like

Origin blog.csdn.net/gzroy/article/details/104069536