I found the win get upgrade on windows 11 was broken and no matter what I tried it kept coming up with the same error(s) as shown in the picture above.
I found this simple fix using the code below Just copy and paste the entire code, and it should be problem solved (this is what fixed it for me)
$progressPreference = 'silentlyContinue'
Write-Host "Installing WinGet PowerShell module from PSGallery..."
Install-PackageProvider -Name NuGet -Force | Out-Null
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null
Write-Host "Using Repair-WinGetPackageManager cmdlet to bootstrap WinGet..."
Repair-WinGetPackageManager
Write-Host "Done."