Skip to content

Operation failed: Windows cannot install package Microsoft.Winget.Source_2024.817.1013.50_neutral__8wekyb3d8bbwe to volume D: with media ID {58E4B45F-0000-0000-F09B-FF231C37D264} because the volume is offline. #4738

Closed

Description

@AdRoz78

Brief description of your issue

Found this in the logs, can't use winget or update it. Checking in diskpart shows it as Online..?

Steps to reproduce

Use any command reliant on winget.

Expected behavior

The command runs.

Actual behavior

C:\Users\xxxxx>winget upgrade --all
Failed in attempting to update the source: winget
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing

Environment

C:\Users\xxxxx>winget --info
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.4037
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                D:\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Activity

  1. github-actions commented on Aug 17, 2024

    @github-actions

    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:

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

  2. stephengillie commented on Aug 19, 2024

    @stephengillie

    Are you able to reach the source?

  3. MagicAndre1981 commented on Aug 20, 2024

    @MagicAndre1981

    Installer Downloads D:\Downloads

    Is D:\ online?

  4. AdRoz78 commented on Aug 20, 2024

    @AdRoz78
    Author

    yeah, both cmd and PowerShell show it as online

  5. MagicAndre1981 commented on Aug 21, 2024

    @MagicAndre1981

    try to run chkdsk on D: maybe it has file system issues.

  6. denelon commented on Aug 28, 2024

    @denelon
    Collaborator

    Is this still broken?

    This might be a possible work around to get it fixed:

    You could uninstall the source and then try running another WinGet command which would try to download and install the source package.

    If that doesn't work, you can do a manual download and install:
    https://cdn.winget.microsoft.com/cache/source2.msix

  7. added
    Issue-Bug
    on Aug 28, 2024
  8. AdRoz78 commented on Sep 8, 2024

    @AdRoz78
    Author

    Demitrius Nelon (@denelon) and how to do that?

  9. mdanish-kh commented on Sep 8, 2024

    @mdanish-kh
    Contributor

    AdRoz78 (@AdRoz78)

    To uninstall the source, run the following command in PowerShell

    Get-AppxPackage -Name Microsoft.Winget.Source | Remove-AppxPackage
    

    Then run a command like winget list that'll try to re-install the source package


    To install the source manually

    Run the following command in PowerShell

    Add-AppxPackage -Path "https://cdn.winget.microsoft.com/cache/source2.msix"
    

    Or go to the URL that'll download the sourc2.msix file and double-click to run

  10. AdRoz78 commented on Sep 8, 2024

    @AdRoz78
    Author

    It deletes the source, but now says this:
    `PS C:\Windows\System32> Add-AppxPackage -Path "https://cdn.winget.microsoft.com/cache/source2.msix"
    Add-AppxPackage: Deployment failed with HRESULT: 0x80073D0D, The deployment operation failed because the volume is offline. For a package update, the volume refers to the installed volume of all package versions.

    Windows cannot install package Microsoft.Winget.Source_2024.908.823.37_neutral__8wekyb3d8bbwe to volume D: with media ID {58E4B45F-0000-0000-F09B-FF231C37D264} because the volume is offline.

    NOTE: For additional information, look for [ActivityId] 61f49b6d-01d5-0008-df85-f861d501db01 in the Event Log or use the command line Get-AppPackageLog -ActivityID 61f49b6d-01d5-0008-df85-f861d501db01`

  11. mdanish-kh commented on Sep 9, 2024

    @mdanish-kh
    Contributor

    Unfortunately i haven't seen a similar error before but by the error output, it does seem to be a disk issue...

  12. AdRoz78 commented on Sep 9, 2024

    @AdRoz78
    Author

    Don't have any other issues, ran any sort of disk checking commands, nothing was found to be corrupt. I don't even have a place to back up the data from the drive so I can format the drive and hopefully fix the issue. Maybe I should boot without the D: drive and hope Winget decides to update through C:

  13. MagicAndre1981 commented on Sep 9, 2024

    @MagicAndre1981

    What happens if you change download back to C:\ and use Symbolic Link to link download back to D: so that Winget thinks it is still on C:?

  14. AdRoz78 commented on Sep 9, 2024

    @AdRoz78
    Author

    Gonna try that later, I don't mind where Winget downloads so long as nothing changes with installing apps. I do prefer my main downloads folder on D: tho :P

  15. AdRoz78 commented on Jan 24, 2025

    @AdRoz78
    Author

    I FIXED IT!!!!!
    I'm shaking so bad as I'm tying rn, but I follwoed this and installed the source.msix.... And winget works AGAIN!
    I have 40 updates lol, haven't ran winget upgrade --all in 2, maybe 3 years? God bless the eprson who sent the fix in that post.

  16. kkashtan-intel commented on May 9, 2025

    @kkashtan-intel

    This thing finally worked, with all workarounds combined:

    $progressPreference = 'silentlyContinue'
    Install-PackageProvider -Name NuGet -Force | Out-Null
    Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery -Scope AllUsers | Out-Null
    Repair-WinGetPackageManager
    Add-AppxPackage -Path "https://cdn.winget.microsoft.com/cache/source2.msix"
    winget install -s msstore --id 9NBLGGH4NNS1 --accept-source-agreements --accept-package-agreements
    winget source reset --force
    winget source update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions