marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
13.11k stars 451 forks source link

[BUG] UniGetUI shows only outdated packages in Chocolatey #2755

Open SilverGreen93 opened 1 month ago

SilverGreen93 commented 1 month ago

Please confirm these before moving forward

UniGetUI Version

3.1.1

Windows version, edition, and architecture

Windows 11 23H2

Describe your issue

If I search for a package that I know is present in Chocolatey with WingetUI, I get only an older version in the search results (3.4.1). The version is currently available in chocolatey online and by using the command line choco tool is a lot newer (3.7.7).

Here is what UniGetUI finds when I search for Files in the Chocolatey repository = 3.4.1: image

Here is the version available on the online page = 3.7.7: https://community.chocolatey.org/packages/files#upgrade

Here is the version I installed manually from Command Line = 3.7.7: image

So my question is how come that choco CLI finds the newest version, 3.7.7, but UniGetUI only shows the very outdated version, 3.4.1?

Steps to reproduce the issue

No response

UniGetUI Log

[19.09.2024 12:07:49]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.1
[19.09.2024 12:07:49]
[19.09.2024 12:07:49] Version Code:  3,11
[19.09.2024 12:07:49] Encoding Code Page set to 866
[19.09.2024 12:07:50] Using bundled GSudo at C:\Program Files\WingetUI\Assets\Utilities\gsudo.exe
[19.09.2024 12:07:50] Loaded language locale: ro
[19.09.2024 12:07:51] Randomly-generated background API auth token for the current session: cmcs6op9rslanhbm0bjwnu4480hetbhku0m77xrzjs703f6w9hkif1lurlj7z7jv
[19.09.2024 12:07:51] Api running on http://localhost:7058
[19.09.2024 12:07:51] Lang files were updated successfully from GitHub
[19.09.2024 12:07:51] UniGetUI is up to date
[19.09.2024 12:07:52] Downloaded new icons and screenshots successfully!
[19.09.2024 12:07:52] Command npm was not found on the system
[19.09.2024 12:07:52] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:52] Command scoop was not found on the system
[19.09.2024 12:07:52] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:53] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: dotnet tool
                      █ Executable path: C:\Program Files\dotnet\dotnet.exe
                      █ Call arguments: tool
                      █ Version: 
                      █   8.0.400
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:53] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: pip
                      █ Executable path: C:\Program Files\Python312\python.exe
                      █ Call arguments:  -m pip
                      █ Version: 
                      █   pip 24.2 from C:\Users\Mihai\AppData\Roaming\Python\Python312\site-packages\pip (python 3.12)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:53] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\Mihai\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.8.1911
                      █   Microsoft.WinGet.Client PSModule version: ""
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:54] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: choco.exe
                      █ Executable path: C:\Users\Mihai\AppData\Local\UniGetUI\Chocolatey\bin\choco.exe
                      █ Call arguments: 
                      █ Version: 
                      █   2.2.2
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:54] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: powershell.exe
                      █ Executable path: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   Name                           Value                                                                                   
                      █   ----                           -----                                                                                   
                      █   PSVersion                      5.1.22621.4111                                                                          
                      █   PSEdition                      Desktop                                                                                 
                      █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                      █   BuildVersion                   10.0.22621.4111                                                                         
                      █   CLRVersion                     4.0.30319.42000                                                                         
                      █   WSManStackVersion              3.0                                                                                     
                      █   PSRemotingProtocolVersion      2.3                                                                                     
                      █   SerializationVersion           1.1.0.1
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:55] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: pwsh.exe
                      █ Executable path: C:\Users\Mihai\AppData\Local\Microsoft\WindowsApps\pwsh.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   PowerShell 7.4.5
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[19.09.2024 12:07:57] Microsoft.Powershell.Client detection has been forcefully skipped as the module is not required on the current context
[19.09.2024 12:07:57] Dependency WinGet PowerShell Module for manager Winget is present
[19.09.2024 12:07:59] Dependency .NET Tools Outdated for manager .NET Tool is present
[19.09.2024 12:07:59] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[19.09.2024 12:08:02] Found 0 available updates from .NET Tool
[19.09.2024 12:08:03] Found 50 installed packages from Pip
[19.09.2024 12:08:03] Found 0 available updates from Chocolatey
[19.09.2024 12:08:03] Found 1 installed packages from Chocolatey
[19.09.2024 12:08:03] Found 1 installed packages from .NET Tool
[19.09.2024 12:08:03] Found 1 installed packages from PowerShell
[19.09.2024 12:08:03] Found 0 installed packages from PowerShell7
[19.09.2024 12:08:03] Found 0 available updates from PowerShell7
[19.09.2024 12:08:03] Found 0 available updates from PowerShell
[19.09.2024 12:08:03] Found 341 installed packages from Winget
[19.09.2024 12:08:05] Found 0 available updates from Pip
[19.09.2024 12:08:05] Found 3 available updates from Winget
[19.09.2024 12:08:07] Command parse_pip_search.exe was not found on the system
[19.09.2024 12:08:08] Found 46 available packages from Winget with the query files
[19.09.2024 12:08:08] Found 100 available packages from .NET Tool with the query files
[19.09.2024 12:08:08] Found 1 available packages from Chocolatey with the query files
[19.09.2024 12:08:09] Error finding packages on manager Pip with query files
[19.09.2024 12:08:09] System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'parse_pip_search.exe' with working directory 'C:\Program Files\WingetUI'. The system cannot find the file specified.
                         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                         at UniGetUI.PackageEngine.Managers.PipManager.Pip.FindPackages_UnSafe(String query) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.Pip\Pip.cs:line 97
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.FindPackages(String query) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 163
[19.09.2024 12:08:10] Found 13 available packages from PowerShell with the query files
[19.09.2024 12:08:11] Found 13 available packages from PowerShell7 with the query files

Package Managers Logs

Manager WinGet with version:
System WinGet CLI Version: v1.8.1911
Microsoft.WinGet.Client PSModule version: ""
Using Native WinGet helper (COM Api)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 19.09.2024 12:07:53
Process end time:   19.09.2024 12:07:53

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Mihai\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 19.09.2024 12:07:55
Process end time:   19.09.2024 12:08:00

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 19.09.2024 12:07:55
Process end time:   19.09.2024 12:08:03

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 19.09.2024 12:07:56
Process end time:   19.09.2024 12:07:57

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 19.09.2024 12:08:02
Process end time:   19.09.2024 12:08:05

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is FindPackages
Process start time: 19.09.2024 12:08:07
Process end time:   19.09.2024 12:08:08

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Relevant information

No response

Screenshots and videos

No response

marticliment commented 1 month ago

What happens when you run C:\Users\Mihai\AppData\Local\UniGetUI\Chocolatey\bin\choco.exe list?

Could it be that you have updated the package recently?

SilverGreen93 commented 1 month ago

I have not updated the package, but just installed it fresh. I get the same output if I run both choco list and the one with the full path:

C:\Windows\System32>C:\Users\Mihai\AppData\Local\UniGetUI\Chocolatey\bin\choco.exe list
Chocolatey v2.2.2
files 3.7.7
1 packages installed.

C:\Windows\System32>choco list
Chocolatey v2.2.2
files 3.7.7
1 packages installed.
marticliment commented 1 month ago

Huh, this is weird. I will investigate

MartinM01 commented 1 month ago

Same problem, and when you click on “Install”, the latest version is installed, but it shows that the old version is installed.

fuzelet commented 1 month ago

i would like to add that i am also seeing this issue as well. example for me is the nvidia-display-driver package. Uniget is showing an older version when chocolatey is already publishing a new version.

Screenshot 2024-10-02 151639

Screenshot 2024-10-02 151622

Screenshot 2024-10-02 151612

marticliment commented 1 month ago

@fuzelet, I can see the package was published very recently. Have you restarted UniGetUI after the package has been updated?

fuzelet commented 1 month ago

@fuzelet, I can see the package was published very recently. Have you restarted UniGetUI after the package has been updated?

I did not restart, but this package was published on 10/1 and my computer was turned off overnight(last night) and was turned on this morning, 10/2/24.

fuzelet commented 1 month ago

I just had the same issue on another machine. I restarted the machine as well as restarting uniget after seeing the older version still for the Nvidia display driver PXL_20241002_210734097 MP

emdm00 commented 2 weeks ago

Other example is Ventoy in my case. Because it exists the version 1.0.99 on chocolatey but UnigetUI shows the version 1.0.98. I installed UnigetUI two days ago so it had to be already updated.