Scenario
Running winget as SYSTEM.
- winget upgrade -r -u
Error:
============
Successfully verified installer hash
Extracting archive...
Failed to extract the contents of the archive
============
Fix
Perform the following to fix:
- notepad C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\defaultState\settings.json
Add the following so the bottom looks like:
============
"installBehavior": {
"archiveExtractionMethod": "tar"
},
}
============
- Save.
- winget upgrade -r -u