Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Reinstall the Linux subsystem on Windows 10

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I heard that Linux can be installed on Windows 10. On a whim, I rammed it up and didn't use it for a long time. As a result, I forgot the root password again. Hey, I'm too old to remember things. So check the Internet to find out how to uninstall the Linux subsystem and write a note so that you don't forget it later.

Open CMD and type lxrun, which will prompt you how to use this command, as shown below:

C:\ Users\ admin > lxrunWarning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreUsage: / install-Installs the subsystem Optional arguments: / y-Do not prompt user to accept or create a subsystem user / uninstall-Uninstalls the subsystem Optional arguments: / full-Perform a full uninstall / y-Do not prompt user to confirm / setdefaultuser-Sets the default subsystem user. If the user account does not exist it will be created. Optional arguments: username-Supply the username / y-If username is supplied, do not prompt to create a password

Type: lxrun / uninstall to start uninstalling the original Linux subsystem.

C:\ Users\ admin > lxrun / uninstallWarning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreThis will uninstall Ubuntu on Windows.This will remove the Ubuntu environment as well as any modifications and new applications with the exception of:C:\ Users\ admin\ AppData\ Local\ lxss\ homeC:\ Users\ admin\ AppData\ Local\ lxss\ rootType "y" to continue: yUninstalling...

Type bash again to check and verify that Ubuntu has been uninstalled.

C:\ Users\ admin > bashWindows Subsystem for Linux has no installed distributions.Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstorePress any key to continue...

Next, install Ubuntu Linux and enter the command: lxrun / install

C:\ Users\ admin > lxrun / installWarning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstoreThis will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here: https://aka.ms/uowtermsType "y" to continue: yDownloading from the Microsoft Store... 100%Extracting filesystem, this will take a few minutes...Error: 0x800706ba

Damn, there is Error, but the local computer does not have permission? Check it out, I really don't have admin permission. But I tried again, and this time I succeeded.

However, I checked it on the Internet. If you try again, it still won't work. Please refer to the following methods to solve your installation failure problem:

Enable the Windows subsystem for Linux in the enable or disable Windows function below, and then try again.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report