Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run WSL: Catastrophic Failure #11319

Open
2 tasks
kieronlanning opened this issue Mar 18, 2024 · 28 comments
Open
2 tasks

Unable to run WSL: Catastrophic Failure #11319

kieronlanning opened this issue Mar 18, 2024 · 28 comments
Assignees

Comments

@kieronlanning
Copy link

kieronlanning commented Mar 18, 2024

Windows Version

Microsoft Windows [Version 10.0.26080.1201]

WSL Version

0.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

0.0.0.0

Distro Version

No response

Other Software

No response

Repro Steps

Run wsl --install or wsl--update and they both result in Catastrophic failure messages in the terminal.

Expected Behavior

wsl installs/ updates without issue.

Actual Behavior

Unable to use wsl - unable to run any commands requested by this form - --status or --version for example.

Terminal output:

$ wsl --update
Downloading: Windows Subsystem for Linux 2.1.5
Installing: Windows Subsystem for Linux 2.1.5
Catastrophic failure

Diagnostic Logs

WslLogs-2024-03-18_08-11-32.zip

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@kieronlanning
Copy link
Author

kieronlanning commented Mar 18, 2024

Some additional information I found in the Event Viewer:

AppX Deployment operation failed for package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe with error 0x80070032. The specific error text for this failure is: Windows can't provision the package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe because it is not installed on a system volume.

When checking the default installation location for Windows 11, everything points to the C: drive.

@pmartincic
Copy link
Collaborator

Howdy, the logs suggest to me that it's trying to toss this on G: ?

image

@kieronlanning
Copy link
Author

@pmartincic All storage defaults in Windows are C: I'm not sure where else to check?
image

@pmartincic pmartincic self-assigned this Mar 20, 2024
@pmartincic
Copy link
Collaborator

pmartincic commented Mar 20, 2024

Are you able to get more logs using the instructions from here? https://learn.microsoft.com/en-us/windows/win32/appxpkg/troubleshooting?redirectedfrom=MSDN

Edit: Sorry about that I should have asked for these from the start.

@kieronlanning
Copy link
Author

@pmartincic

AppxPackagingOM/Microsoft-Windows-AppxPackging/Operation

There's a bunch of these Warnings:

Cat: Warning
Event ID: 216
App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.

AppxDeployment-Server/Microsoft-Windows-AppXDeploymentServer/Operational

Things seem a little worse:

Cat: Error
Event ID: 404

AppX Deployment operation failed for package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe with error 0x80070032. The specific error text for this failure is: Windows can't provision the package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe because it is not installed on a system volume.

Cat: Error
Event ID: 401

Deployment ProvisionPackageOperation operation with target volume C: on Package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe from:   failed with error 0x80070032. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

Cat: Error
Event ID: 846

Windows can't provision the package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe because it is not installed on a system volume.

And the output from Get-Appxlog echos that pretty much with:

Time                      ID           Message
----                      --           -------
21/03/2024 10:45:03       603          Started deployment ProvisionPackageOperation operation on a package with main parameter
                                       MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe and Options 0 and 0. See
                                       http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
21/03/2024 10:45:03       10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\1d8598b4-84c8-4b18-9d9b-fdd5d04946f5_S-1-5-18_88.rslc
                                       for ProvisionPackageOperation Operation on Package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe.
21/03/2024 10:45:03       607          Deployment ProvisionPackageOperation operation on package
                                       MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe has been de-queued and is running for user SID
                                       S-1-5-18.
21/03/2024 10:45:03       846          Windows can't provision the package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe because it is
                                       not installed on a system volume.
21/03/2024 10:45:03       605          The last successful state reached was BundleProcessed. Failure occurred before reaching the next state Indexed. hr: 0x80070032
21/03/2024 10:45:03       401          Deployment ProvisionPackageOperation operation with target volume C: on Package
                                       MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe from:   failed with error 0x80070032. See
                                       http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
21/03/2024 10:45:03       404          AppX Deployment operation failed for package MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe with
                                       error 0x80070032. The specific error text for this failure is: Windows can't provision the package
                                       MicrosoftCorporationII.WindowsSubsystemForLinux_2.1.5.0_x64__8wekyb3d8bbwe because it is not installed on a system volume.

I can see the error about installing on G: (which is a drive I have), but everything should be pointing to the C: (system) drive. I've not explicity changed anything to point to anything other than C:.

@pmartincic
Copy link
Collaborator

Oh I don't think this is you, Just gathering logs from this and another bug to throw at the appx folks.

@kieronlanning
Copy link
Author

Let me know if you need anything else!

@kieronlanning
Copy link
Author

@pmartincic Out of a matter of interest, do you know of any failsafe way to rebuild/ repair WSL?

I'm not worried about saving the distros (they're already gone). I've tried all the troubleshooting guides, completely uninstalling it and random support articles.

It's a bit of a productivity killer, so short of rebuilding the computer I'm a bit stumped.

@pmartincic
Copy link
Collaborator

@kieronlanning, reproducing something similar, that is what I'm trying to figure out. Ideally it'll end up in the installer so that no manual steps are needed; we'll see what happens.

@pmartincic
Copy link
Collaborator

Sorry for the hangup. I'm testing a fix that I think will avoid us getting in this state, but I'm not sure about getting out of it.

If you still have this environment can you collect logs via the below script that github won't let me add as an attachment?

#
# GetDeploymentLogs-Desktop.ps1 is a PowerShell script designed to collect
# various logs and system information to diagnose App deployment problems. 
# To run this script from Explorer, right-click on its icon and choose "Run with PowerShell".
#
# All command line parameters are reserved for use internally by the script.
# Users should launch this script from Explorer.
#

param(
    [switch]$Force = $false,
    [switch]$EnableTracing = $false
    )

function PrintMessageAndExit($ErrorMessage, $ReturnCode)
{
    Write-Host $ErrorMessage
    if (!$Force)
    {
        Pause
    }
    exit $ReturnCode
}

$ScriptPath = $null
try
{
    $ScriptPath = (Get-Variable MyInvocation).Value.MyCommand.Path
    $ScriptDir = Split-Path -Parent $ScriptPath
}
catch {}

# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
  
# Get the security principal for the Administrator role
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
  
 # Check to see if we are currently running "as Administrator"
 if ($myWindowsPrincipal.IsInRole($adminRole))
 {
    # We are running "as Administrator" - so change the title and background color to indicate this
    $Host.UI.RawUI.WindowTitle = $myInvocation.MyCommand.Definition + "(Elevated)"
    clear-host
 }
 else
 {
    # We are not running "as Administrator" - so relaunch as administrator
    
    # Create a new process object that starts PowerShell
    $newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
    
    # Specify the current script path and name as a parameter
    $newProcess.Arguments = $myInvocation.MyCommand.Definition + ' -ExecutionPolicy Unrestricted'
    
    # Indicate that the process should be elevated
    $newProcess.Verb = "runas";
    
    # Start the new process
    [System.Diagnostics.Process]::Start($newProcess) > $null;
    
    # Exit from the current, unelevated, process
    exit
 }
  
$LogsFolderName = 'AppxLogs' + (get-date -uformat %s)
$LogsDestinationPath = $env:TEMP + '\' + $LogsFolderName
$CabPath = $LogsDestinationPath + '.zip'

$SystemEventLogsPath = $env:windir + '\System32\winevt\Logs\'
$WULogsPath = $env:windir + '\Logs\windowsupdate\'
$UpgradeLogs = $env:windir + '\Panther\'

$SystemEventLogFileList = 
    @(
        "Microsoft-Windows-AppXDeployment%4Operational.evtx",
        "Microsoft-Windows-AppXDeploymentServer%4Operational.evtx",
        "Microsoft-Windows-AppxPackaging%4Operational.evtx",
        "Microsoft-Windows-StateRepository%4Operational.evtx",
        "Microsoft-Windows-AppReadiness%4Admin.evtx",
        "Microsoft-Windows-AppReadiness%4Operational.evtx",
        "Microsoft-Windows-TWinUI%4Operational.evtx",
        "Microsoft-Windows-AppModel-Runtime%4Admin.evtx",
        "Microsoft-Windows-AppHost%4Admin.evtx",
        "Microsoft-Windows-ApplicationResourceManagementSystem%4Operational.evtx",
        "Microsoft-Windows-CoreApplication%4Operational.evtx",
        "Microsoft-Windows-AppID%4Operational.evtx",
        "Microsoft-Windows-AppLocker%4EXE and DLL.evtx",
        "Microsoft-Windows-AppLocker%4Packaged app-Execution.evtx",
        "Microsoft-Windows-AppLocker%4Packaged app-Deployment.evtx",
        "Microsoft-Windows-AppLocker%4MSI and Script.evtx",

        "Microsoft-Windows-CodeIntegrity%4Operational.evtx",
        "Microsoft-Windows-Kernel-StoreMgr%4Operational.evtx",
        "Microsoft-Windows-Store%4Operational.evtx",
        "Microsoft-Client-Licensing-Platform%4Admin.evtx",
        "Microsoft-WS-Licensing%4Admin.evtx",

        "Microsoft-Windows-PackageStateRoaming%4Operational.evtx",
        "Microsoft-Windows-DeviceSync%4Operational.evtx",
        "Microsoft-Windows-SettingSync%4Debug.evtx",
        "Microsoft-Windows-SettingSync%4Operational.evtx",
        "Microsoft-Windows-SettingSync-Azure%4Debug.evtx",
        "Microsoft-Windows-SettingSync-Azure%4Operational.evtx",

        "System.evtx",
        "Application.evtx",
        "Microsoft-Windows-WER-Diag%4Operational.evtx",
        "Microsoft-Windows-AppID%4Operational.evtx",
        "Microsoft-Windows-ApplicabilityEngine%4Operational.evtx",
        "Microsoft-Windows-WindowsUpdateClient%4Operational.evtx",
        "Microsoft-Windows-Winlogon%4Operational.evtx",

        "Microsoft-Windows-Shell-Core%4ActionCenter.evtx",
        "Microsoft-Windows-Shell-Core%4Operational.evtx",

        "Microsoft-Windows-User Profile Service%4Operational.evtx"
    )

$SourceDestinationPairs = 
        (
            (($UpgradeLogs + 'setup*.log'), ($LogsDestinationPath + '\Panther\')),
            (($WULogsPath + '*.etl'), ($LogsDestinationPath + '\WindowsUpdate\')),
            (($env:windir + '\Logs\CBS\CBS.log'), ($LogsDestinationPath + '\CBS\')),
            (($env:windir + '\Logs\DISM\DISM.log'), ($LogsDestinationPath + '\DISM\')),
            (($env:ProgramData + '\Microsoft\Windows\AppxProvisioning.xml'), ($LogsDestinationPath + '\')),
            (($env:ProgramData + '\Microsoft\Windows\AppRepository\StateRepository*'), ($LogsDestinationPath + '\StateRepository\')),
            (($env:ProgramData + '\Microsoft\Windows\WER\*'), ($LogsDestinationPath + '\WER\'))
        )

$RegExportsDestinationPath = $LogsDestinationPath + '\RegistryExports\'
New-Item -ItemType Directory -Force -Path $RegExportsDestinationPath > $null

$RegistrySourceDestinationPairs = 
        (
            (("HKEY_LOCAL_MACHINE\System\SetUp\Upgrade\AppX"), ($RegExportsDestinationPath + '\UpgradeAppx.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateRepository"), ($RegExportsDestinationPath + '\StateRepository.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OOBE"), ($RegExportsDestinationPath + '\OOBE.reg')),
            (("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MUI\UILanguages"), ($RegExportsDestinationPath + '\UILanguages.reg')),
            (("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FastCache"), ($RegExportsDestinationPath + '\Fastcache.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Appx"), ($RegExportsDestinationPath + '\AppxPolicies.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx"), ($RegExportsDestinationPath + '\Appx.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppReadiness"), ($RegExportsDestinationPath + '\AppReadiness.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel"), ($RegExportsDestinationPath + '\AppModelSettings.reg')),
            (("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel"), ($RegExportsDestinationPath + '\AppModel.reg'))
        )

Write-Host 'Creating Destination Folder and Gathering Logs ' $LogsDestinationPath
New-Item -ItemType Directory -Force -Path $LogsDestinationPath > $null

Write-Progress -Activity 'Collecting Logs' -Id 10041

$EventLogsFolderPath = ($LogsDestinationPath + '\EventLogs\')
New-Item -ItemType Directory -Force -Path $EventLogsFolderPath > $null

# Copy Event Logs
foreach ($EventLogFile in $SystemEventLogFileList)
{
    $EventLogFilePath = ($SystemEventLogsPath + $EventLogFile)
    Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPath -Force
}

foreach ($SDPair in $SourceDestinationPairs)
{
    New-Item -ItemType Directory -Force -Path $SDPair[1] > $null
    Copy-Item -Path $SDPair[0] -Destination $SDPair[1] -Recurse -Force > $null
}

foreach ($RegistrySDPair in $RegistrySourceDestinationPairs)
{
    reg export $RegistrySDPair[0] $RegistrySDPair[1] /y > $null
}

$AppDataPath = $env:LOCALAPPDATA + '\Packages'
$WindowsAppPath = $env:ProgramFiles + '\WindowsApps'
$AppRepositoryPath = $env:ProgramData + '\Microsoft\Windows\AppRepository'

Get-AppxPackage -AllUsers > ($LogsDestinationPath + '\GetAppxPackageAllUsersOutput.txt')
dir -Path $AppDataPath -Recurse -Force -ErrorAction SilentlyContinue > ($LogsDestinationPath + '\AppDataFolderList.txt')
dir -Path $WindowsAppPath -Force -ErrorAction SilentlyContinue > ($LogsDestinationPath + '\WindowsAppFolderList.txt')
dir -Path $AppRepositoryPath -Force -ErrorAction SilentlyContinue > ($LogsDestinationPath + '\AppRepositoryFileList.txt')

Write-Progress -Activity 'Creating Zip Archive' -Id 10041
Add-Type -Assembly "System.IO.Compression.FileSystem";
[System.IO.Compression.ZipFile]::CreateFromDirectory($LogsDestinationPath, $CabPath);

Write-Progress -Activity 'Done' -Completed -Id 10041
Write-Warning "Note: Below Zip file contains system, app and user information useful for diagnosing Application Installation Issues."
Write-Host 'Please upload zip and share a link : '
Write-Host $CabPath
Pause

@kieronlanning
Copy link
Author

@pmartincic I'm away until late Friday, so I'll do it this-weekend. Thanks for the effort!

@pmartincic
Copy link
Collaborator

pmartincic commented Mar 28, 2024

My other question is, do you notice that if you install via downloading the msix directly and using add-appxpackage that it works?

You'll have to do this first.

Remove-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.0.0_x64__8wekyb3d8bbwe -AllUsers
Remove-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.0.0_x64__8wekyb3d8bbwe

@okineadev
Copy link

My other question is, do you notice that if you install via downloading the msix directly and using add-appxpackage that it works?

You'll have to do this first.

Remove-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.0.0_x64__8wekyb3d8bbwe -AllUsers
Remove-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.0.0_x64__8wekyb3d8bbwe

Thank you, this helped me a lot!

@kieronlanning
Copy link
Author

AppxLogs1711780076.zip

@pmartincic The generated file was too large for GH, so I've re-zipped it using 7zip (17mb instead of 32mb). However, I needed to change the extension to .zip rather than .7z otherwise the upload wasn't accepted.

Any problems, and I'll do a sharing link.

Also, is there the terminal output:

Creating Destination Folder and Gathering Logs  C:\Users\Kieron\AppData\Local\Temp\AppxLogs1711780076
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-Windows-ApplicationResourceManagementSystem%4Operational.evtx' because it does not exist.
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-WS-Licensing%4Admin.evtx' because it does not exist.
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-Windows-PackageStateRoaming%4Operational.evtx' because it does not exist.
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-Windows-SettingSync%4Debug.evtx' because it does not exist.
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-Windows-SettingSync%4Operational.evtx' because it does not exist.
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-Windows-SettingSync-Azure%4Debug.evtx' because it does not exist.
Copy-Item: P:\sync-projects\GetDeploymentLogs-Desktop.ps1:161
Line |
 161 |      Copy-Item -Path $EventLogFilePath -Destination $EventLogsFolderPa|      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\WINDOWS\System32\winevt\Logs\Microsoft-Windows-SettingSync-Azure%4Operational.evtx' because it does not exist.
WARNING: Note: Below Zip file contains system, app and user information useful for diagnosing Application Installation Issues.
Please upload zip and share a link :

@kieronlanning
Copy link
Author

Trying the Remove-AppXPackage seems to have helped.

After some clean-up, I've managed to get Debian (my default) installed. Ubuntu doesn't seem to be in a very healthy place:

Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80071772
Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it.

Tried removing it via the Store etc, and then re-installing but the error is always the same.

@okineadev
Copy link

Trying the Remove-AppXPackage seems to have helped.

After some clean-up, I've managed to get Debian (my default) installed. Ubuntu doesn't seem to be in a very healthy place:

Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80071772
Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it.

Tried removing it via the Store etc, and then re-installing but the error is always the same.

I also had such an error, you need to change the standard thawing of new downloads to the system drive (C:) as in the picture:

image

You also need to move the Linux distribution to the system drive in the settings in the "Apps" section

image

Good luck!

@22jcampb
Copy link

22jcampb commented Apr 6, 2024

I have this problem, it seems to want to install to my secondary HDD (D:). The primary drive is an M.2 SSD and shows up as Disk 1 instead of Disk 0 in task manager and diskpart. I read online this is because SATA drives are started before M.2 drives during startup. (Using "--no-distribution" to install wsl because it's a dependency for a specific program)
Error codes from eventvwr put through err.exe:
wsl --install --no-distribution - 0x80070032 (ERROR_NOT_SUPPORTED), tgt. vol. D:, error after BundleProcessed / before Indexed
Retry with Disk 0 (D:) set offline in diskpart - 0x80073D0D (ERROR_INSTALL_VOLUME_OFFLINE)
Retry with mount point D: removed in diskpart instead - 0x80070490 (ERROR_NOT_FOUND) - tgt. vol. C:, error after SharedAppsRedirect / before OptionalDependenciesHandled - looking through Microsoft-Windows-AppXDeploymentServer/Restricted logs this error appears often for other packages, specifically those I just updated with winget
Looking back through the Operational log "error 0x80074005: Unable to change application state[...]" appears several times in a row, all err.exe found was 0x4005 (DMLERR_EXECACKTIMEOUT) in ddeml.h.
I'm no expert, but maybe wsl or the appx system software or whatever assumes Disk 0 contains the boot volume?
eventvwr logs from all 4 AppX* folders: AppX logs.zip

@okineadev
Copy link

I have this problem, it seems to want to install to my secondary HDD (D:). The primary drive is an M.2 SSD and shows up as Disk 1 instead of Disk 0 in task manager and diskpart. I read online this is because SATA drives are started before M.2 drives during startup. (Using "--no-distribution" to install wsl because it's a dependency for a specific program) Error codes from eventvwr put through err.exe: wsl --install --no-distribution - 0x80070032 (ERROR_NOT_SUPPORTED), tgt. vol. D:, error after BundleProcessed / before Indexed Retry with Disk 0 (D:) set offline in diskpart - 0x80073D0D (ERROR_INSTALL_VOLUME_OFFLINE) Retry with mount point D: removed in diskpart instead - 0x80070490 (ERROR_NOT_FOUND) - tgt. vol. C:, error after SharedAppsRedirect / before OptionalDependenciesHandled - looking through Microsoft-Windows-AppXDeploymentServer/Restricted logs this error appears often for other packages, specifically those I just updated with winget Looking back through the Operational log "error 0x80074005: Unable to change application state[...]" appears several times in a row, all err.exe found was 0x4005 (DMLERR_EXECACKTIMEOUT) in ddeml.h. I'm no expert, but maybe wsl or the appx system software or whatever assumes Disk 0 contains the boot volume? eventvwr logs from all 4 AppX* folders: AppX logs.zip

Try to do as shown in the first photo - #11319 (comment)

@kieronlanning
Copy link
Author

Thanks for the suggestion, but this was already discounted.

@MatthewL246
Copy link

MatthewL246 commented Apr 6, 2024

I also had this issue in #11327. I found that installing the msixbundle release instead of the MSI was a workaround for this issue, and it allowed me to use WSL again.

If it doesn't work on the first try you can try downloading the MSI release, running msiexec /uninstall wsl.2.1.5.0.x64.msi to fully uninstall WSL, and then reinstalling the msixbundle.

@okineadev
Copy link

I also had this issue in #11327. I found that installing the msixbundle release instead of the MSI was a workaround for this issue, and it allowed me to use WSL again.

If it doesn't work on the first try you can try downloading the MSI release, running msiexec /uninstall wsl.2.1.5.0.x64.msi to fully uninstall WSL, and then reinstalling the msixbundle.

I also removed ALL previous versions of WSL like this:

Remove-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux_<version>.0_x64__8wekyb3d8bbwe -AllUsers
Remove-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux_<version>.0_x64__8wekyb3d8bbwe

Only I don't know how to get the versions I had installed, so I just removed the last 3 versions from the release, and then everything worked

@pmartincic
Copy link
Collaborator

Thanks for the suggestion, but this was already discounted.

Did you try? Changing the default install location is not the same as using the power shell commandlets to remove/install an msix that you download manually. These are orthogonal concepts. Installing via the msix takes the installer down an alternate path. I'm trying to provide you with a workaround.

@kieronlanning
Copy link
Author

@pmartincic that was a reply to @okineadev.

But yes, I'd tried the remove and install via the msix.

@22jcampb
Copy link

22jcampb commented Apr 8, 2024

I have this problem, it seems to want to install to my secondary HDD (D:). The primary drive is an M.2 SSD and shows up as Disk 1 instead of Disk 0 in task manager and diskpart. I read online this is because SATA drives are started before M.2 drives during startup. (Using "--no-distribution" to install wsl because it's a dependency for a specific program) Error codes from eventvwr put through err.exe: wsl --install --no-distribution - 0x80070032 (ERROR_NOT_SUPPORTED), tgt. vol. D:, error after BundleProcessed / before Indexed Retry with Disk 0 (D:) set offline in diskpart - 0x80073D0D (ERROR_INSTALL_VOLUME_OFFLINE) Retry with mount point D: removed in diskpart instead - 0x80070490 (ERROR_NOT_FOUND) - tgt. vol. C:, error after SharedAppsRedirect / before OptionalDependenciesHandled - looking through Microsoft-Windows-AppXDeploymentServer/Restricted logs this error appears often for other packages, specifically those I just updated with winget Looking back through the Operational log "error 0x80074005: Unable to change application state[...]" appears several times in a row, all err.exe found was 0x4005 (DMLERR_EXECACKTIMEOUT) in ddeml.h. I'm no expert, but maybe wsl or the appx system software or whatever assumes Disk 0 contains the boot volume? eventvwr logs from all 4 AppX* folders: AppX logs.zip

Try to do as shown in the first photo - #11319 (comment)

I checked all this, but I don't have any Microsoft Store distros to move.

@pmartincic
Copy link
Collaborator

pmartincic commented Apr 10, 2024

This is not an official build, if you still see issues when trying this build, please get back to me with more logs from this post, in addition to our logs. #11319 (comment)
https://1drv.ms/u/s!ApJY8OVsSSJ-gQn_I1D8e4y45kJq?e=yJEOlc

@kieronlanning
Copy link
Author

@pmartincic Sorry for not getting back to you sooner, I ended up re-paving the machine and starting again.

@22jcampb
Copy link

This is not an official build, if you still see issues when trying this build, please get back to me with more logs from this post, in addition to our logs. #11319 (comment) https://1drv.ms/u/s!ApJY8OVsSSJ-gQn_I1D8e4y45kJq?e=yJEOlc

Nope, same error.
WslLogs-2024-06-12_19-45-58.zip
AppxLogs1718237017.tar.zstd.zip
Second log file is compressed using libzstd in bsdtar (Windows) at heavy settings then rezipped to meet file size limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants