Skip to content
Windows 🟡 Intermediate

How to Repair or Reset WSL Ubuntu on Windows 11

Richard
Written by
Richard
Updated 6 min read
Windows 11 Settings Installed apps list with the three-dot menu open beside Ubuntu, showing how to repair WSL Ubuntu.
Windows 11 Settings Installed apps list with the three-dot menu open beside Ubuntu, showing how to repair WSL Ubuntu.
Before you start
  • 7 steps
  • Needs administrator rights

WSL Ubuntu stops starting when its packages break or the distribution freezes. WSL (Windows Subsystem for Linux) is a built-in Windows feature that runs Linux programs without a separate computer or a full virtual machine. Fixing Ubuntu usually takes about 5 minutes.

You have two options. Repair fixes the Ubuntu app and keeps your Linux files. Reset wipes the Ubuntu environment and gives you a fresh install. Try Repair first. Use Reset only if Repair doesn’t help and nothing in Ubuntu needs saving.

⚡ Quick Answer

To repair WSL Ubuntu without losing files, open Settings Apps Installed apps, click the three dots next to Ubuntu, choose Advanced options, and click Repair. Your home folder and installed programs stay put. To wipe it and start fresh, use Reset on the same page instead, which permanently deletes all Ubuntu data.

Advertisement

How to Repair WSL Ubuntu

Repair fixes broken app files and startup errors. Your home folder, your files and the programs you installed stay as they were. The path is Settings Apps Installed apps Ubuntu > three dots > Advanced options Repair.

This method works for Ubuntu installed from the Microsoft Store, because Windows lists that version as an app. It repairs the Ubuntu app itself. It does not fix problems with the WSL feature in Windows.

Advertisement

Close any open Ubuntu windows, then follow these steps:

  1. Open Settings. Click the Start menu and choose Settings, or press Win+I.
    Windows 11 Start menu search panel for opening OpenSSH Client settings
    Windows 11 Start menu search panel for opening OpenSSH Client settings
  2. Click Apps in the list on the left.
    Settings › Apps
    Settings › Apps
  3. Click Installed apps. This shows every app on the PC.
    Settings › Apps › Installed apps
    Settings › Apps › Installed apps
  4. Find Ubuntu. Scroll the list, or type Ubuntu into the search box above it. If Ubuntu isn’t listed, you probably didn’t install it from the Microsoft Store, and the Repair button isn’t available for it.
  5. Click the three dots next to Ubuntu, then select Advanced options. The Ubuntu settings page opens.
  6. Scroll down to the Reset section and click Repair. The Reset button sits right next to it and deletes your data, so check which one you click. A check mark appears next to the button when the repair finishes.
  7. Test Ubuntu. Open Ubuntu from the Start menu and check that it starts. No restart is needed; the change applies right away. If Ubuntu still won’t start, move on to the reset below.
Repair button for WSL Ubuntu app in Windows 11 Settings
Repair button for WSL Ubuntu app in Windows 11 Settings

Repair is safe to run more than once, so it is always the first thing to try.

How to Reset WSL Ubuntu

⚠️WarningReset permanently deletes everything inside this Ubuntu installation, including your home folder, any users you created, your files and your installed programs. There is no recycle bin and no way to undo it. Windows returns Ubuntu to a brand-new state.

To save files first, open Ubuntu if it still starts, or open the Linux entry in the File Explorer navigation pane. Copy what you need to a normal Windows folder.

Follow the same path as for Repair (Settings Apps Installed apps Ubuntu Advanced options), but click Reset this time. Windows warns that the app’s data will be permanently deleted. Click Reset again to confirm. Close any open Ubuntu windows first to avoid errors.

Advertisement
Repair and Reset buttons for WSL Ubuntu app in Windows 11 Settings
Repair and Reset buttons for WSL Ubuntu app in Windows 11 Settings

The Reset button sits just below Repair on the same page.

When the reset finishes, a check mark appears next to the button. Open Ubuntu from the Start menu to test it. Ubuntu starts like a new install, so setup can take a minute, and it asks you to create a new username and password.

Alternative: Reset WSL Ubuntu Using Windows Terminal

⚠️WarningThis does the same job as the Reset button from the command line. Use it when the Settings page won’t open or the Reset button doesn’t work. This step requires administrator privileges. It deletes all data in the distribution permanently, so back up anything you need first.

The command that removes the distribution is wsl --unregister Ubuntu.

Advertisement
  1. Open Windows Terminal as administrator. Click the Start menu and type Windows Terminal. Right-click it in the results and choose Run as administrator. Click Yes if Windows asks for permission. The terminal window opens with “Administrator” in the title bar.
  2. List your installed distributions. Type this command and press Enter. Note the exact name of your Ubuntu entry, because the next command must match it. The name may include a version number, such as Ubuntu-22.04.wsl --list
  3. Remove Ubuntu. The next command has no confirmation prompt, so check the name before you press Enter. If your distribution name from the list is different, use that name in place of Ubuntu. Type the command and press Enter.wsl --unregister Ubuntu

This removes Ubuntu from WSL. Run the first command again and the distribution no longer appears in the list until you reinstall it. You can reinstall it fresh from the Microsoft Store. In many cases, opening the Ubuntu app from the Start menu also sets up a new copy. Either way, Ubuntu asks you to create a new username and password.

Summary

Open Ubuntu from the Start menu. It should start without errors, and after a reset it walks you through creating a new username and password. If Ubuntu still won’t start after both Repair and Reset, the problem likely lies in the WSL feature in Windows rather than the Ubuntu app, and this guide doesn’t cover fixing that.

Frequently asked questions

How to reset WSL?

To reset WSL Ubuntu, open Settings, go to Apps Installed apps, click the three dots next to Ubuntu, choose Advanced options, and click Reset, then confirm. This permanently deletes your files and installed programs, so copy anything you need to a Windows folder first. Try Repair before you reset.

How to reinstall WSL?

To reinstall WSL Ubuntu, first remove the old copy by running wsl –unregister Ubuntu in Windows Terminal as administrator. This deletes all data in it. Then reinstall Ubuntu from the Microsoft Store or open it from the Start menu, and create a new username and password.

How to restart WSL?

To restart WSL Ubuntu, close all open Ubuntu windows, then open Ubuntu from the Start menu again. This guide doesn't cover restarting the WSL feature in Windows. If Ubuntu still won't start, restart your PC and try again.

How to repair WSL installation on Windows 11?

To repair a WSL Ubuntu installation, open Settings, go to Apps Installed apps, click the three dots next to Ubuntu, select Advanced options, and click Repair. Your home folder, files and programs stay. Repair fixes the Ubuntu app only, not problems with the WSL feature in Windows.

How to reset Ubuntu WSL?

To reset Ubuntu on WSL, go to Settings Apps Installed apps, click the three dots beside Ubuntu, choose Advanced options, and click Reset, then confirm. Everything inside Ubuntu is deleted for good, so back up your files first. When Ubuntu opens again, it asks for a new username and password.

How to fix WSL after installation?

To fix WSL Ubuntu after installation, start with Repair. Open Settings Apps Installed apps, click the three dots next to Ubuntu, choose Advanced options, and click Repair. Then open Ubuntu from the Start menu to test it. If it still fails, use Reset. If it fails after that, the problem is in the WSL feature, which this guide doesn't cover.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments