Skip to content

WSL stopped working now reinstall failing #10760

Closed
@ivanthewebber

Description

@ivanthewebber

Windows Version

Microsoft Windows [Version 10.0.23403.1001]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

N/A

Other Software

WSL is not working, so Docker is not working. Docker is not working so Apache Spark and Apache Flink are not working.

Repro Steps

Had WSL. Got windows update and had a problem with Apache Spark that I traced back to Docker. Docker gave me an error about WSL.
Screenshot (386) crop

Tried opening WSL and it gave me an error about data being invalid. I looked online and it seemed that uninstalling and reinstalling WSL would fix the problem. I followed recommended steps here to initially uninstall before finding Microsoft documentation. I uninstalled WSL and attempted to install it from the store. I tried uninstalling it and reinstalling it several times using the command line trying to make sure all settings and features were right, and I restarted between everything. Have not been able to avoid getting the same error:

PS path> wsl --install Ubuntu
...
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007000d
Error: 0x8007000d The data is invalid.

Press any key to continue...
The operation completed successfully.

I tried other distributions and at this point I am pretty stumped. I saw this possibly related issue, but I can't change my computer's system clock.

Expected Behavior

wsl --install would succeed and afterwards wsl would open Ubuntu's shell.

Actual Behavior

Error code: 0x8007000d
The output varies slightly if I change turn the Windows features on or off, but I always end up getting the same error code.

PS C:\path> wsl --install
Windows Subsystem for Linux is already installed.
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.

NAME                                   FRIENDLY NAME
Ubuntu                                 Ubuntu
Debian                                 Debian GNU/Linux
kali-linux                             Kali Linux Rolling
Ubuntu-18.04                           Ubuntu 18.04 LTS
Ubuntu-20.04                           Ubuntu 20.04 LTS
Ubuntu-22.04                           Ubuntu 22.04 LTS
OracleLinux_7_9                        Oracle Linux 7.9
OracleLinux_8_7                        Oracle Linux 8.7
OracleLinux_9_1                        Oracle Linux 9.1
openSUSE-Leap-15.5                     openSUSE Leap 15.5
SUSE-Linux-Enterprise-Server-15-SP4    SUSE Linux Enterprise Server 15 SP4
SUSE-Linux-Enterprise-15-SP5           SUSE Linux Enterprise 15 SP5
openSUSE-Tumbleweed                    openSUSE Tumbleweed
PS C:\path> wsl --install -d Ubuntu
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
PS C:\path> wsl
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
PS C:\path> wsl --list
Windows Subsystem for Linux has no installed distributions.

Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.

Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND

Output of Ubuntu:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007000d
Error: 0x8007000d The data is invalid.

Press any key to continue...

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions