Home>Article> How to fix Ubuntu errors on Windows 11

How to fix Ubuntu errors on Windows 11

王林
王林 forward
2023-04-14 12:43:13 5826browse

Ubuntu is an open source Linux distribution that can run on Windows 11, but some users have reported bugs.

WSL is not designed for the average Windows user. It is suitable for system administrators and developers who love coding.

However, in some cases, you will receive different error messages when you want to run Ubuntu on Windows 11. These errors can occur for a number of reasons, such as upgrades, installation issues, or certain components missing from WSL.

To fix Ubuntu errors on Windows 11, you first need to know what they are. So, before solving these problems, let’s explain the most common issues you can get while running on Windows 11.

What are the 0x8007003, 0x8007019e and 0x800701bc WslRegisterDistribution Failed errors?

  • 0x80070032 Error: 0x80070032 is an error that occurs when you want to upgrade WSL to the next version. This error also indicates that your virtual machine platform is disabled.
  • 0x8007019eError: The 0x8007019e error occurs when you do not have permission to run the command line in Linux. Just like the first error, it indicates that WSL is disabled. Additionally, many users reported receiving 0x8007019e when trying to install Ubuntu from the Microsoft Store. However, you can easily troubleshoot it by enabling the component in Windows 11. We'll give you some instructions to fix this error in the next section.
  • 0x800701bc Error: 0x800701bc is a Linux kernel issue when you try to install Ubuntu. In this case, you should download the WSL2 Linux Kernel. Hopefully Microsoft will provide a latest update for WSL that you can download.

How to fix WSL Ubuntu error on Windows 11?

1. Fix 0x80070032 error

Reset Microsoft Store

  1. First, open theStartmenu. Right-click Microsoft Store and selectApp settings.How to fix Ubuntu errors on Windows 11
  2. Now scroll down a little and click on the "Reset" button.How to fix Ubuntu errors on Windows 11

As we mentioned earlier, the 0x80070032 error is caused by reinstalling or upgrading WSL. Therefore, we need to reset/reinstall Microsoft Store or clear its cache.

Reinstall Microsoft Store

  1. Click on theStartmenu and type PowerShell, then right-click on it and select"Run as administrator".How to fix Ubuntu errors on Windows 11
  2. Type the following command and hitEnter:
    get-appxpackage -alluser Microsoft.WindowsStore
  3. Now, copy thePackageFullNamevalue. In our example, the PackageFullName is as follows:
    Microsoft.WindowsStore_2202.1402.2.0_X64__8wekyb3d8bbweHow to fix Ubuntu errors on Windows 11
  4. Enter your # after the remove-appxpackage command ##PackageFullNameand click. So, in our case, the command line would be:Enter
    remove-appxpackage Microsoft.WindowsStore_2202.1402.2.0_X64__8wekyb3d8bbweHow to fix Ubuntu errors on Windows 11
  5. To reinstall
  6. Microsoft Store, type the following command and pressEnter:
    Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add -AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
  7. After executing the command, close
  8. PowerShelland restart the system.
Sometimes resetting the Microsoft Store doesn't solve the problem and you have to reinstall the Microsoft Store.

Enable Virtual MachinePlatform

    Open the
  1. Startmenu and type Open Windows Features, then selectTurn Windows features on or off.How to fix Ubuntu errors on Windows 11
  2. Scroll down and select the
  3. Virtual Machine Platformcheckbox. Then, click OK.How to fix Ubuntu errors on Windows 11
The virtual machine must be enabled to run WSL. After installing this feature, you can upgrade WSL without any issues.

Clear Microsoft Store cache

  1. Hold down the key to open theRun dialog box.WindowsRHow to fix Ubuntu errors on Windows 11
  2. Typewsreset.exeand pressEnter.How to fix Ubuntu errors on Windows 11

Expert Tip:Some PC problems are difficult to solve, especially if the repository is corrupted or Windows files are missing. If you are having trouble fixing errors, your system may be partially corrupted. We recommend installing Restoro, a tool that can scan your machine and determine where the fault lies.
Click here to download and start repairing.

A black window will now pop up and close automatically. Finally, when finished, it will clean your Microsoft Store cache.

0x8007019e error is one of the common problems. However, you must enable the WSL feature or use Windows PowerShell to resolve this issue. So, here's how you do it.

2. Fix 0x8007019e error

Enable WSL feature

  1. First, open theStartmenu and enter optional function and clickEnter.How to fix Ubuntu errors on Windows 11
  2. Under theInstalled featuressection, search for WSL and selectMore Windows features.How to fix Ubuntu errors on Windows 11
  3. Now, selectWindows Subsystem for Linux,and click OK in theWindows Featuresbox.How to fix Ubuntu errors on Windows 11
  4. Afterwards, Windows will install the required features.
  5. Finally, restart your computer.

Alternatively, you can use Windows PowerShell to enable this feature:

  1. Click theStartmenu, type PowerShell, then right-click it and selectRun as administrator.How to fix Ubuntu errors on Windows 11
  2. Type the following command and pressEnter:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxHow to fix Ubuntu errors on Windows 11
  3. After that, type the following letters and clickEnterto restart your computer:
    Y

3. Fix 0x800701bc error

  1. First, visit this link to download the Linux kernel update package.How to fix Ubuntu errors on Windows 11
  2. After downloading the kernel package, run it as administrator.
  3. Wait until Windows completes the WSL update package installation. Then follow the on-screen instructions.How to fix Ubuntu errors on Windows 11
  4. After that, openUbuntu. Now the command prompt window opens and asks you to create a new UNIX username and password.
  5. Enter your desired password and username. Now let CMD complete the installation.

0x800701bc is a kernel error that you can resolve by downloading the latest WSL2 Linux Kernel version. This article will show you how to uninstall WSL on Windows 11 if you no longer need it.

Why run Ubuntu on Windows 11?

If you are a Linux developer who occasionally needs access to the Windows world, then the WSL feature is like a godsend.

Developers, system administrators, and enthusiasts working on Microsoft operating systems and Linux appreciate the convenience provided by Windows Subsystem for Linux. However, although WSL is useful, it suffers from many limitations.

If you've ever tried to get a graphics application to run on WSL, you'll know that it's not always as straightforward as it should be, and requires some third-party software.

However, both issues are fixed in Windows 11. Ubuntu is an open source operating system that runs on Windows 11, but when mounting on Windows 11, you encounter Linux kernel or WSL errors.

Also, if you have problems dual-booting Ubuntu on Windows 10, don’t hesitate to read this article. Windows 11 users may also find some tips that may apply.

The most common Ubuntu error is 0x80070032, which you can resolve by clearing the Microsoft Store cache.

The above is the detailed content of How to fix Ubuntu errors on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete