Wednesday, February 21, 2024

Creating liberating content

The World’s First Malaria...

Malaria expert Brian Greenwood had once resigned himself to the possibility that...

Business travel management platform...

TravelPerk, a business travel management platform targeted at SMEs, has raised $105...
HomeTechnologyHow to reset...

How to reset WSL Linux distro on Windows 11


On Windows 11, the Windows Subsystem for Linux (WSL) is a virtualization platform that allows you to work with Linux distros alongside the host operating system. 

If you notice problems or have to start over with a specific Linux distribution, it’s possible to reset the distro on WSL using the Settings app or command line without removing and re-downloading anything.

This guide will teach you the steps to reset a Linux distro (such as Ubuntu, Kali Linux, Debian, or SUSE) to fix problems or reset the configuration on Windows 11. (See also how to install WSL on Windows 11.)

Reset Linux distro on WSL from Settings

To reset a Linux distribution on WSL for Windows 11, use these steps:

  1. Open Settings on Windows 11.

  2. Click on Apps.

  3. Click on Installed apps.

  4. Select the distro of Linux, click the menu (three-dotted) button, and click on Advanced options.

    Linux distro advanced options

  5. Click the Reset button.

    WSL reset distro with Settings

  6. (Optional) Click the Repair button.

    Quick tip: The process may take some time. If you can’t open the distro again, the repair option may help.

Once you complete the steps, the WSL distro will be reset, and you will need to go through the setup process again to start using it.

Reset Linux distro on WSL from Command Prompt

To unregister a Linux distro on WLS with Command Prompt, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to view the available distros and press Enter:

    wsl --list
  4. Type the following command to reset the WSL distro on Windows 11 and press Enter:

    wsl --unregister DISTRO-NAME

    In the command, replace “DISTRO-NAME” with the name of the distro to reset (see step 3). This example unregisters Ubuntu:

    wsl --unregister Ubuntu

    WSL unregister Linux distro

  5. (Optional) Type the following command to confirm the Linux distro has been unregistered and press Enter:

    wsl --list

After you complete the steps, the distro will reset and no longer be available on the Windows Subsystem for Linux. However, the distribution will continue to be available on the device. If you want to register it again, open it from the Start menu.

We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info.

All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.



Source link

Continue reading

The World’s First Malaria Vaccine Program for Children Starts Now

Malaria expert Brian Greenwood had once resigned himself to the possibility that a successful vaccine for the disease might not become available in...

Business travel management platform TravelPerk raises $105M

TravelPerk, a business travel management platform targeted at SMEs, has raised $105 million in a fresh equity-based round of financing led by SoftBank’s...