winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

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.

Open AdRoz78 opened this issue 1 year ago • 6 comments

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

AdRoz78 avatar Aug 17 '24 12:08 AdRoz78

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.

github-actions[bot] avatar Aug 17 '24 12:08 github-actions[bot]

Are you able to reach the source?

stephengillie avatar Aug 19 '24 16:08 stephengillie

Installer Downloads D:\Downloads

Is D:\ online?

MagicAndre1981 avatar Aug 20 '24 09:08 MagicAndre1981

yeah, both cmd and PowerShell show it as online

AdRoz78 avatar Aug 20 '24 09:08 AdRoz78

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

MagicAndre1981 avatar Aug 21 '24 05:08 MagicAndre1981

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

denelon avatar Aug 28 '24 01:08 denelon

@denelon and how to do that?

AdRoz78 avatar Sep 08 '24 10:09 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

mdanish-kh avatar Sep 08 '24 10:09 mdanish-kh

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`

AdRoz78 avatar Sep 08 '24 10:09 AdRoz78

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

mdanish-kh avatar Sep 09 '24 11:09 mdanish-kh

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:

AdRoz78 avatar Sep 09 '24 11:09 AdRoz78

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:?

MagicAndre1981 avatar Sep 09 '24 11:09 MagicAndre1981

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

AdRoz78 avatar Sep 09 '24 11:09 AdRoz78

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.

AdRoz78 avatar Jan 24 '25 16:01 AdRoz78

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

kkashtan-intel avatar May 09 '25 17:05 kkashtan-intel