WSL2 Ubuntu 20.04.6 LTS not working: WslRegisterDistribution failed with error: 0x80070490

Abstract: Fix WSL2 Ubuntu 20.04 WslRegisterDistribution error 0x80070490 by reinstalling the distribution and clearing cached virtual hard disk files.

Created: 2026-10-07 by
The WslRegisterDistribution error 0x80070490 in WSL2 Ubuntu typically indicates that the Linux distribution package is corrupted, missing, or fails to register with the Windows subsystem. This specific error code often points to a failure in locating or initializing the distribution files within the AppX package system. Resolving this requires reinstalling the Ubuntu component via PowerShell or clearing cached virtual hard disks to force a fresh registration.

Understanding Error 0x80070490

The error WslRegisterDistribution failed with error: 0x80070490 translates to ERROR_NOT_FOUND in Windows API terms, but in the context of WSL, it usually means the system cannot find the expected distribution metadata or files. This often happens after a Windows update, a failed installation, or if the Ubuntu package was manually deleted from the AppData folders while still registered in the WSL registry.

Unlike generic connectivity issues, this error prevents the distribution from starting at all. You will see the error message immediately when running wsl --list or attempting to launch Ubuntu from the Start menu. It is distinct from network errors or permission denied issues, focusing strictly on the existence and integrity of the distribution package itself.

Step 1: Reinstall the Ubuntu Distribution

The most reliable fix for this specific error is to remove the broken registration and reinstall the Ubuntu package. This ensures that all necessary AppX manifest files are correctly placed and registered with the Windows subsystem.

  1. Open PowerShell as Administrator: Right-click the Start button and select "Windows PowerShell (Admin)" or "Terminal (Admin)." Administrative privileges are required to modify WSL distributions.
  2. Remove the Broken Distribution: Run the following command to uninstall the current Ubuntu instance:
wsl --unregister Ubuntu-20.04

If you receive an error that the distribution does not exist, proceed to the next step anyway, as the corruption may be in the AppX package rather than the WSL registry entry.

  1. Reinstall via Microsoft Store: Open the Microsoft Store, search for "Ubuntu 20.04 LTS," and click Install. This method automatically handles the complex registration process.

Alternatively, if you prefer using PowerShell, you can add the package back using the Add-AppxPackage cmdlet, though the Store method is less prone to path errors.

Step 2: Clear WSL Cache Files

If reinstalling does not resolve the issue, residual cache files might be causing conflicts. WSL stores temporary data and virtual hard disk images in user-specific directories. Corrupted cache files can lead to registration failures even after a clean reinstall.

  • Navigate to %LOCALAPPDATA%\Packages\CanonicalGroupLimited.UbuntuonWindows_...\LocalState.
  • Delete the ext4.vhdx file if it exists. This file contains the root filesystem of your Ubuntu distribution.
  • Also check %TEMP%\wsl and delete any contents found there.

After clearing these files, attempt to launch Ubuntu again. The system will recreate the virtual hard disk from scratch during the first boot.

Step 3: Verify WSL Version Settings

Sometimes, the default WSL version setting interferes with older distributions like Ubuntu 20.04. While Ubuntu 20.04 supports both WSL1 and WSL2, misconfiguration can cause registration loops.

Check your current default version by running:

wsl -l -v

If Ubuntu is listed as version 1, try converting it to version 2 using:

wsl --set-version Ubuntu-20.04 2

Conversely, if it is stuck on version 2 and failing, try switching to WSL1 temporarily to see if the distribution launches. If it works on WSL1, the issue may be related to Hyper-V integration rather than the distribution package itself. For more details on managing WSL versions, see our guide on Difference between Windows WSL.

Step 4: Check for Conflicting Software

Certain antivirus programs or system optimization tools can lock files in the AppData directories, preventing WSL from registering the distribution. Temporarily disable third-party antivirus software and retry the installation.

Additionally, ensure that the "Virtual Machine Platform" and "Windows Subsystem for Linux" optional features are enabled in Windows Features. Go to "Turn Windows features on or off" and verify both checkboxes are selected. Restart your computer after making changes to these settings.

Alternative Solutions

If the standard reinstall fails, consider installing a newer version of Ubuntu, such as 22.04 LTS, which has better support and fewer legacy compatibility issues. Newer distributions are less likely to encounter registration errors due to improved packaging standards.

For users experiencing subsequent issues after fixing the registration, such as application crashes, refer to Error launching chrome on Ubuntu WSL for troubleshooting steps related to graphical applications.

Frequently Asked Questions

Why does WslRegisterDistribution fail with 0x80070490?

This error occurs when Windows cannot find the necessary files or metadata for the specified Linux distribution. It typically indicates a corrupted AppX package or a missing virtual hard disk file in the local storage directory.

Can I fix this without reinstalling Ubuntu?

In most cases, no. Since the error indicates a missing or corrupted package, the only reliable fix is to unregister the distribution and reinstall it. Manual file repairs are rarely successful because the AppX manifest must match the installed files exactly.

Does this error affect other Linux distributions?

No, this error is specific to the Ubuntu-20.04 distribution package. Other distributions like Debian or Kali Linux remain unaffected unless they share the same corrupted underlying WSL components, which is uncommon.

How do I know if my WSL is version 1 or 2?

Run the command wsl -l -v in PowerShell. The output will list each distribution along with its version number. If the version column shows "1" or "2", that is the active mode for that distribution.

Is it safe to delete the ext4.vhdx file?

Deleting the ext4.vhdx file will erase all data inside your Ubuntu distribution. It is safe to delete if you have backups or do not need the existing files, as WSL will create a new empty filesystem upon next launch.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More