winget使用任何命令都报错
尝试更新源失败: winget
打开预定义源失败; 请向 winget 维护人员报告。
执行此命令时发生意外错误:
0x80070005
Appx - Import-Module: Operation is not supported on this platform. (0x80131539)(PowerShell/PowerShell#13138)
Winget is totally broken on my system(microsoft/winget-cli#4683)
import-module appx -usewindowspowershell
Get-AppxPackage -Name "*winget*"
Remove-AppxPackage -Package 'Microsoft.Winget.Source_2024.306.445.830_neutral__8wekyb3d8bbwe'
gsudo
winget source reset --force
导出导入
winget export winget.list.xxxx.txt
winget import -i list.txt --accept-package-agreements
winget install 7zip -h