Open chhoumann opened 1 month ago
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!
upgrade --all
fails without any errors or output (#4219), similarity score: 0.76Note: You can give me feedback by thumbs upping or thumbs downing this comment.
In #2677, the solution was to reinstall the system from iso. This is not a good solution for most people!
I did not try the solution that was presented in that issue, but it sounds promising.
The fix that was mentioned being released in https://github.com/microsoft/winget-cli/releases/tag/v1.7.10661 did not seem to resolve this issue, as I was running version 1.8.1911
while having the issue.
Did you have any of the experimental features enabled?
winget features
will show which features are enabled.
I've never explicitly enabled any, no.
Output says as much ("This is a stable release...").
Sounds like an error is thrown when reading the database. Which winget should be more resilient to, or at least show a proper error...
If you run with --verbose-logs
, the logs may show what was being queried when the error happened, which could narrow down the cause.
Sounds plausible, yeah.
Now that I did the manual fix, the logs show something different, despite using the old directory.
I'd be happy to provide them, but winget upgrade --all --verbose-logs
is over 7k lines long. Without --verbose-logs
it's 280 lines.
It still doesn't actually output anything in the terminal, but I'm unsure if that's because I've already updated everything to the latest version.
Looking at the new logs, it seems to be able to search the DB, as it finds entries that it looks for updates for. Unsure if my setup just got into some weird state or something.
is over 7k lines long.
I'd be mostly interested in knowing where it is crashing, that should be something we can see with just the last section of the file. Probably a couple dozen lines would be enough.
It still doesn't actually output anything in the terminal, but I'm unsure if that's because I've already updated everything to the latest version.
If everything is up to date, winget would output some message about it, although I can't remember what it is. So if there is no output at all, I think it is still crashing.
2024-07-31 20:45:11.675 [CORE] WinGet, version [1.8.1911], activity [{A8DF6291-C085-46E5-81C0-572DC597DF5D}]
2024-07-31 20:45:11.675 [CORE] OS: Windows.Desktop v10.0.22631.3958
2024-07-31 20:45:11.675 [CORE] Command line Args: "C:\Users\chhou\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade --all --verbose-logs
2024-07-31 20:45:11.675 [CORE] Package: Microsoft.DesktopAppInstaller v1.23.1911.0
2024-07-31 20:45:11.675 [CORE] IsCOMCall:0; Caller: winget-cli
2024-07-31 20:45:11.682 [CLI ] WinGet invoked with arguments: 'upgrade' '--all' '--verbose-logs'
2024-07-31 20:45:11.682 [CLI ] Found subcommand: upgrade
2024-07-31 20:45:11.682 [CLI ] Leaf command to execute: root:upgrade
2024-07-31 20:45:11.684 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-07-31 20:45:11.684 [CORE] Admin settings was not found
2024-07-31 20:45:11.684 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-07-31 20:45:11.684 [CORE] Admin settings was not found
2024-07-31 20:45:11.684 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-07-31 20:45:11.684 [CORE] Admin settings was not found
2024-07-31 20:45:11.684 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-07-31 20:45:11.684 [CORE] Admin settings was not found
2024-07-31 20:45:11.684 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-07-31 20:45:11.684 [CORE] Admin settings was not found
2024-07-31 20:45:11.684 [CLI ] Executing command: upgrade
2024-07-31 20:45:11.685 [REPO] Additional sources GP is not enabled.
2024-07-31 20:45:11.685 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2024-07-31 20:45:11.685 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-07-31 20:45:11.685 [CORE] Admin settings was not found
2024-07-31 20:45:14.449 [REPO] ... searching source: msstore [StoreEdgeFD]
2024-07-31 20:45:14.449 [REPO] Performing search: Query:[none] Include:PackageFamilyName='notepadplusplus_7njy0v32s6xk6'[Exact]
2024-07-31 20:45:14.450 [REPO] ... searching source: winget [Microsoft.Winget.Source_8wekyb3d8bbwe]
2024-07-31 20:45:14.450 [REPO] Performing search: Query:[none] Include:PackageFamilyName='notepadplusplus_7njy0v32s6xk6'[Exact]
2024-07-31 20:45:14.450 [REPO] Performing search: Query:[none] Include:PackageFamilyName='notepadplusplus_7njy0v32s6xk6'[Exact]
2024-07-31 20:45:14.451 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:PackageFamilyName='shiftyjelly.pocketcastsdesktop_jr8twj5yc2snp'[Exact]
2024-07-31 20:45:14.451 [REPO] ... searching source: msstore [StoreEdgeFD]
2024-07-31 20:45:14.451 [REPO] Performing search: Query:[none] Include:PackageFamilyName='shiftyjelly.pocketcastsdesktop_jr8twj5yc2snp'[Exact]
2024-07-31 20:45:14.451 [REPO] ... searching source: winget [Microsoft.Winget.Source_8wekyb3d8bbwe]
2024-07-31 20:45:14.451 [REPO] Performing search: Query:[none] Include:PackageFamilyName='shiftyjelly.pocketcastsdesktop_jr8twj5yc2snp'[Exact]
2024-07-31 20:45:14.452 [REPO] Performing search: Query:[none] Include:PackageFamilyName='shiftyjelly.pocketcastsdesktop_jr8twj5yc2snp'[Exact]
2024-07-31 20:45:14.452 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:PackageFamilyName='thebrowsercompany.arc_ttt1ap7aakyb4'[Exact]
2024-07-31 20:45:14.452 [REPO] ... searching source: msstore [StoreEdgeFD]
2024-07-31 20:45:14.452 [REPO] Performing search: Query:[none] Include:PackageFamilyName='thebrowsercompany.arc_ttt1ap7aakyb4'[Exact]
2024-07-31 20:45:14.453 [REPO] ... searching source: winget [Microsoft.Winget.Source_8wekyb3d8bbwe]
2024-07-31 20:45:14.453 [REPO] Performing search: Query:[none] Include:PackageFamilyName='thebrowsercompany.arc_ttt1ap7aakyb4'[Exact]
2024-07-31 20:45:14.453 [REPO] Performing search: Query:[none] Include:PackageFamilyName='thebrowsercompany.arc_ttt1ap7aakyb4'[Exact]
2024-07-31 20:45:14.453 [REPO] ... adding available package: TheBrowserCompany.Arc
2024-07-31 20:45:14.454 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:PackageFamilyName='winrar.shellextension_s4jet1zx4n14a'[Exact]
2024-07-31 20:45:14.454 [REPO] ... searching source: msstore [StoreEdgeFD]
2024-07-31 20:45:14.454 [REPO] Performing search: Query:[none] Include:PackageFamilyName='winrar.shellextension_s4jet1zx4n14a'[Exact]
2024-07-31 20:45:14.454 [REPO] ... searching source: winget [Microsoft.Winget.Source_8wekyb3d8bbwe]
2024-07-31 20:45:14.454 [REPO] Performing search: Query:[none] Include:PackageFamilyName='winrar.shellextension_s4jet1zx4n14a'[Exact]
2024-07-31 20:45:14.454 [REPO] Performing search: Query:[none] Include:PackageFamilyName='winrar.shellextension_s4jet1zx4n14a'[Exact]
Brief description of your issue
Winget will respond normally to many commands, but refuses to do any installations. Anytime I wrote, for example,
winget upgrade --all
, it would simply display a spinner for a bit, and then exit with no error message.Logs
I checked the logs, which look like this:
However, sometimes the following line will appear at the bottom:
I was able to successfully examine the SQLite database file, and nothing stood out as missing or wrong at a glance. I also checked the other directories in
%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\
, but found nothing notable.Manual solution
I had previously tried uninstalling and reinstalling before abandoning the issue. That did not work. I even tried reinstalling App Installer. This time, I decided to just rename the entire
%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
to%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.bak
. When I tried to re-runwinget upgrade --all
, everything finally worked. I still have the backup if you need additional information.Steps to reproduce
I do not know how my winget got into the state it was in for the bug to appear. I haven't manually modified any of its files (until I found the solution mentioned above) - at least not intentionally.
Running commands like
winget upgrade --all
would simply exit with no error message. That is, nothing was printed to the terminal after running the command.Expected behavior
I expect the installer to proceed with upgrading/installing, not simply exit with no message.
Actual behavior
I expect the installer to proceed with upgrading/installing, not simply exit with no message.
Environment