Open github-account1111 opened 1 year ago
I'm not seeing the same behavior; Have you tried uninstalling and re-installing?
PS D:\Git\winget-pkgs> .\Tools\WingetVersionManager.ps1 -Latest -Prerelease
Found v1.7.2782-preview
Downloading version v1.7.2782-preview to C:\Users\Trenly\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\bin\v1.7.2782-preview\winget_v1.7.2782-preview.msix
Checking winget version . . .
v1.7.2782-preview
PS D:\Git\winget-pkgs> winget upgrade
Name Id Version Available
--------------------------------------------------------------------------------------------------
Visual Studio Build Tools 2019 Microsoft.VisualStudio.2019.BuildTools 16.11.30 16.11.31
GitHub Desktop GitHub.GitHubDesktop 3.3.3 3.3.4
Process Monitor Microsoft.Sysinternals.ProcessMonitor 3.95 3.96
Windows Package Manager Manifest Creator Microsoft.WingetCreate 1.5.3.0 1.5.5.0
Notepad++ (64-bit x64) Notepad++.Notepad++ 8.5.7 8.5.8
VLC media player VideoLAN.VLC 3.0.18 3.0.19
Python Launcher Python.Launcher < 3.12.0 3.12.0
GitHub CLI GitHub.cli 2.35.0 2.37.0
paint.net dotPDNLLC.paintdotnet 5.0.9 5.0.11
Node.js OpenJS.NodeJS 20.7.0 21.0.0
10 upgrades available.
5 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.
I'm sorry but how do I uninstall winget properly? There are no instructions in the README, and the ones I've found scattered inside Issues and on Reddit are all a bit different, some saying winget isn't designed to be removed in the first place.
Hi @github-account1111,
I believe the uninstall might need to be performed through the Windows Store application. This link will download the newest version, for the reinstall: https://aka.ms/getwinget
From PowerShell, this command should remove and re-install winget -
Get-AppxPackage | ? {$_.Name -match 'AppInstaller'} | Remove-AppxPackage; Add-AppxPackage https://aka.ms/getwinget
From PowerShell, this command should remove and re-install winget -
Get-AppxPackage | ? {$_.Name -match 'AppInstaller'} | Remove-AppxPackage; Add-AppxPackage https://aka.ms/getwinget
Sadly reinstalling doesn't seem to have fixed anything.
@github-account1111 is there any chance you don't have any applications requiring an update?
You could try installing an earlier version of a package and then running winget upgrade
.
I am certain there are upgrades.
> winget list
Name Id Version Source
-----------------------------------------------------------------------------------------------------------------------
Unigram—Telegram for Windows 38833FF26BA1D.UnigramPreview_g9c9v27vpyspw 10.1.3.0
7-Zip 23.01 (x64) 7zip.7zip 23.01 winget
Signal 6.29.1 OpenWhisperSystems.Signal 6.29.1 winget
Intel® Graphics Command Center AppUp.IntelGraphicsExperience_8j3eq9eme6ctt 1.100.5185.0
CPUID HWMonitor 1.51 CPUID.HWMonitor 1.51 winget
CrystalDiskMark 8.0.4 CrystalDewWorld.CrystalDiskMark 8.0.4 winget
ExifTool version 12.62_64 OliverBetz.ExifTool 12.62 winget
Git Git.Git 2.41.0.3 winget
MKVToolNix 78.0.0 (64-bit) MoritzBunkus.MKVToolNix 78.0.0 winget
Microsoft Edge Microsoft.Edge 118.0.2088.61 winget
Microsoft Edge Update Microsoft Edge Update 1.3.177.11
Microsoft Edge WebView2 Runtime Microsoft.EdgeWebView2Runtime 118.0.2088.61 winget
AV1 Video Extension Microsoft.AV1VideoExtension_8wekyb3d8bbwe 1.1.61781.0
App Installer Microsoft.DesktopAppInstaller_8wekyb3d8bbwe 1.22.2782.0
HEIF Image Extensions Microsoft.HEIFImageExtension_8wekyb3d8bbwe 1.0.62561.0
Microsoft Edge Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe 118.0.2088.61
VP9 Video Extensions Microsoft.VP9VideoExtensions_8wekyb3d8bbwe 1.0.61591.0
Webp Image Extensions Microsoft.WebpImageExtension_8wekyb3d8bbwe 1.0.62681.0
Windows Package Manager Source (winget) Microsoft.Winget.Source_8wekyb3d8bbwe 2023.812.234.253
Mozilla Thunderbird (x64 en-US) Mozilla.Thunderbird 115.3.2 winget
Mozilla Maintenance Service MozillaMaintenanceService 115.0
OBS Studio OBSProject.OBSStudio 29.1.3 winget
SumatraPDF SumatraPDF.SumatraPDF 3.4.6 winget
UXP WebView Support UXPW_1_1_0 1.1.0
carnac code52.Carnac 2.3.13 winget
Microsoft Visual C++ 2013 Redistributable (x6… Microsoft.VCRedist.2013.x64 12.0.40664.0 winget
Microsoft Windows Desktop Runtime - 6.0.21 (x… Microsoft.DotNet.DesktopRuntime.6 6.0.21 winget
Topaz Photo AI TopazLabs.TopazPhotoAI 1.1.2 winget
Microsoft Visual C++ 2010 x64 Redistributabl… Microsoft.VCRedist.2010.x64 10.0.40219 winget
Microsoft Visual C++ 2012 Redistributable (x8… Microsoft.VCRedist.2012.x86 11.0.61030.0 winget
Python Launcher {59AF356A-6B03-4A12-ADD4-43419963EBB5} 3.10.7953.0
Microsoft Visual C++ 2008 Redistributable - x… Microsoft.VCRedist.2008.x64 9.0.30729.6161 winget
Microsoft Visual C++ 2015-2022 Redistributabl… Microsoft.VCRedist.2015+.x86 14.38.32919.0 winget
Firmware updater for DualSenseTM wireless con… PlayStation.DualSenseFWUpdater 1.5.0.2 winget
Microsoft Visual C++ 2008 Redistributable - x… Microsoft.VCRedist.2008.x86 9.0.30729.6161 winget
Microsoft Visual C++ 2013 Redistributable (x8… Microsoft.VCRedist.2013.x86 12.0.40664.0 winget
Microsoft Visual C++ 2015-2022 Redistributabl… Microsoft.VCRedist.2015+.x64 14.38.32919.0 winget
Futuremark SystemInfo {A05A1785-B718-47EF-9EE7-2F82F729D208} 5.53.1130.0
NVIDIA 3D Vision Driver 388.73 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display… 388.73
NVIDIA Graphics Driver 388.73 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display… 388.73
NVIDIA HD Audio Driver 1.3.36.6 {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_HDAudio… 1.3.36.6
Microsoft Visual Studio Code Microsoft.VisualStudioCode 1.81.1 winget
Microsoft Visual C++ 2010 x86 Redistributabl… Microsoft.VCRedist.2010.x86 10.0.40219 winget
Python 3.10.11 (64-bit) {a10fbb63-03ff-4b8c-a176-f5fd355f715b} 3.10.11150.0
3DMark {be89728b-cbfb-4ee0-a2ff-cbbe79d90c4d} 2.25.8043.0
Microsoft Visual C++ 2012 Redistributable (x6… Microsoft.VCRedist.2012.x64 11.0.61030.0 winget
BCUninstaller Klocman.BulkCrapUninstaller 5.6.0.0 winget
https://github.com/microsoft/winget-pkgs/tree/master/manifests/o/OliverBetz/ExifTool/Development https://github.com/microsoft/winget-pkgs/tree/master/manifests/c/CPUID/HWMonitor https://github.com/microsoft/winget-pkgs/tree/master/manifests/m/Mozilla/Thunderbird https://github.com/microsoft/winget-pkgs/tree/master/manifests/g/Git/Git https://github.com/microsoft/winget-pkgs/tree/master/manifests/k/Klocman/BulkCrapUninstaller
Have you tried a winget source update
?
I've done both update
and reset --force
Can you try uninstalling the "current" PreIndexed package via:
winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe
Then install the latest stable release via: https://aka.ms/getwinget
Then run:
winget upgrade --verbose-logs --log
and share the newest log file created?
> winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe
Found Windows Package Manager Source (winget) [Microsoft.Winget.Source_8wekyb3d8bbwe]
Starting package uninstall...
██████████████████████████████ 100%
Successfully uninstalled
The linked release gave me this warning:
After clicking Reinstall I got the following error:
The gist logs show the use of a very old index, and no attempts to update it. That suggests a user setting of 0 for the update interval. If winget source update winget --verbose
isn't giving any error information, could you share the log?
The command went through without errors, @JohnMcPMS:
winget source update winget --verbose
Updating source: winget...
██████████████████████████████ 4.49 MB / 4.49 MB
Done
What do you get when you run winget search Microsoft.PowerToys
now?
The output seems unchanged.
> winget search Microsoft.PowerToys --verbose
Failed when searching source; results will not be included: winget
No package found matching input criteria.
Edit: Actually that 2nd line in the terminal output seems new.
Are there multiple user accounts involved here? The error is now that the package data cannot be found, despite the previous successful source update
command. What does Get-AppxPackage Microsoft.Winget.Source
return?
Get-AppxPackage Microsoft.Winget.Source
returns nothing.
source update
went through, but remember that prior to running it I uninstalled the package and couldn't reinstall it. That could be playing a role.
I am the only user on this laptop.
2023-11-06 15:52:58.723 [REPO] Package not found Microsoft.Winget.Source_8wekyb3d8bbwe
You could try updating the source manually - Add-AppxPackage -Path https://cdn.winget.microsoft.com/cache/source.msix
Thanks, @Trenly, that seems to have worked.
> Get-AppxPackage Microsoft.Winget.Source
Name : Microsoft.Winget.Source
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : Neutral
ResourceId :
Version : 2023.1107.818.978
PackageFullName : Microsoft.Winget.Source_2023.1107.818.978_neutral__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.1107.818.978_neutral__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.Winget.Source_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
winget upgrade
is working as well now.
> winget upgrade
Name Id Version Available Source
------------------------------------------------------------------------------------------------------------
Signal 6.29.1 OpenWhisperSystems.Signal 6.29.1 6.36.0 winget
CPUID HWMonitor 1.51 CPUID.HWMonitor 1.51 1.52 winget
Git Git.Git 2.41.0.3 2.42.0.2 winget
SumatraPDF SumatraPDF.SumatraPDF 3.4.6 3.5.2 winget
Microsoft Windows Desktop Runtime - 6.0.21 (x64) Microsoft.DotNet.DesktopRuntime.6 6.0.21 6.0.24 winget
Python Launcher Python.Launcher < 3.12.0 3.12.0 winget
ViGEm Bus Driver ViGEm.ViGEmBus 1.21.442 1.22.0 winget
Microsoft Visual Studio Code Microsoft.VisualStudioCode 1.81.1 1.83.1 winget
BCUninstaller Klocman.BulkCrapUninstaller 5.6.0.0 5.7.0.0 winget
10 upgrades available.
How do I prevent this from happening in the future?
How do I prevent this from happening in the future?
That's a tricky question to answer, since it isn't clear what caused it to fail in the first place. Without knowing more details, the only things that I can really recommend are -
winget settings
and make sure that you don't have source autoUpdateIntervalInMinutes
set to a value which is less than 1, or which is extremely large.
winget upgrade
is working as well now.
I take that back. Seems it got fixed for a single run and then immediately stopped working:
> winget upgrade
Name Id Version Available Source
------------------------------------------------------------------------------------------------------------
Signal 6.29.1 OpenWhisperSystems.Signal 6.29.1 6.36.0 winget
https://github.com/microsoft/winget-pkgs/tree/master/manifests/o/OpenWhisperSystems/Signal
6.39.0
It seems something is preventing your source from being updated. Are there multiple user accounts on your machine?
No I am the only user.
Brief description of your issue
https://gist.github.com/github-account1111/b243a27dda1e9be9ce731d3a228414ce
https://gist.github.com/github-account1111/4e8dc2ec133c9173ee3d2cf3c0b9b0a4
Steps to reproduce
winget upgrade
orwinget search <package name>
Expected behavior
Upgrades are shows, and the newest package version is fetched.
Actual behavior
Environment