Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] "WinGet-Error detected. Do you want to repair WinGet?" #3153

Open
4 tasks done
fcotugno opened this issue Jan 1, 2025 · 11 comments
Open
4 tasks done

[BUG] "WinGet-Error detected. Do you want to repair WinGet?" #3153

fcotugno opened this issue Jan 1, 2025 · 11 comments
Assignees
Labels
bug Something isn't working needs-author-answer

Comments

@fcotugno
Copy link

fcotugno commented Jan 1, 2025

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.1.5

Windows version, edition, and architecture

Windows 11 Pro 23H2

Describe your issue

[BUG] "WinGet-Error detected. Do you want to repair WinGet?" and if I chose yes, even if I had uninstalled the existing version and re-installed the latest version, or even starting UniGetUI as an admin did not resolve the error, the error message came back again and again.

Steps to reproduce the issue

just run UniGetUI

UniGetUI Log

[01.01.2025 23:35:10]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.5
[01.01.2025 23:35:10]
[01.01.2025 23:35:10] Build 74
[01.01.2025 23:35:10] Encoding Code Page set to 850
[01.01.2025 23:35:11] Using built-in UniGetUI Elevator
[01.01.2025 23:35:11] Loaded language locale: de
[01.01.2025 23:35:12] Randomly-generated background API auth token for the current session: 8c73laz1ki8on5jn64z3yfafkm5alhunkegaq05ozccqq0buunjq7p80f8mlc5eu
[01.01.2025 23:35:12] Api running on http://localhost:7058
[01.01.2025 23:35:12] Lang files were updated successfully from GitHub
[01.01.2025 23:35:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:12] Downloaded new icons and screenshots successfully!
[01.01.2025 23:35:12] Command vcpkg was not found on the system
[01.01.2025 23:35:12] Command npm was not found on the system
[01.01.2025 23:35:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:12] Command cargo was not found on the system
[01.01.2025 23:35:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Cargo
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:12] Command dotnet.exe was not found on the system
[01.01.2025 23:35:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:12] Command vcpkg was not found on the system
[01.01.2025 23:35:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:12] Command vcpkg was not found on the system
[01.01.2025 23:35:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: vcpkg
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:13] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\ugisb\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.9.25200
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:15] Command scoop was not found on the system
[01.01.2025 23:35:15] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:15] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ 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.4391                                                                          
                      █   PSEdition                      Desktop                                                                                 
                      █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                      █   BuildVersion                   10.0.22621.4391                                                                         
                      █   CLRVersion                     4.0.30319.42000                                                                         
                      █   WSManStackVersion              3.0                                                                                     
                      █   PSRemotingProtocolVersion      2.3                                                                                     
                      █   SerializationVersion           1.1.0.1
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:16] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: pwsh.exe
                      █ Executable path: C:\Users\ugisb\AppData\Local\Microsoft\WindowsApps\pwsh.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   PowerShell 7.4.6
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[01.01.2025 23:35:16] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[01.01.2025 23:35:17] Found 0 installed packages from PowerShell7
[01.01.2025 23:35:18] Found 0 available updates from PowerShell7
[01.01.2025 23:35:19] Found 1 installed packages from PowerShell
[01.01.2025 23:35:20] Manager WinGet failed to list installed packages with exception InvalidOperationException: WinGet: Failed to connect to composite catalog.
[01.01.2025 23:35:20] Since this was the first attempt, Winget.AttemptFastRepair() will be called and the procedure will be restarted
[01.01.2025 23:35:20] Attempting to reconnec to WinGet COM Server...
[01.01.2025 23:35:20] Found 0 available updates from PowerShell
[01.01.2025 23:35:24] Error finding installed packages on manager Winget
[01.01.2025 23:35:24] System.AggregateException: One or more errors occurred. (WinGet: Failed to connect to composite catalog.)
                       ---> System.InvalidOperationException: WinGet: Failed to connect to composite catalog.
                         at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetLocalWinGetPackages() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\ClientHelpers\NativeWinGetHelper.cs:line 238
                         at System.Threading.Tasks.Task`1.InnerInvoke()
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                      --- End of stack trace from previous location ---
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                      --- End of stack trace from previous location ---
                         at UniGetUI.Core.Classes.TaskRecycler`1._runTaskAndWait(Task`1 task, Int32 hash, Int32 cacheTimeSecsSecs)
                         at UniGetUI.Core.Classes.TaskRecycler`1.RunOrAttach(Func`1 method, Int32 cacheTimeSecs) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Classes\TaskRecycler.cs:line 59
                         at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetInstalledPackages_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\ClientHelpers\NativeWinGetHelper.cs:line 194
                         at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.GetInstalledPackages_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 101
                         at System.Threading.Tasks.Task`1.InnerInvoke()
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                      --- End of stack trace from previous location ---
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                         --- End of inner exception stack trace ---
                         at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
                         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
                         at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken)
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager._getInstalledPackages(Boolean SecondAttempt) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 252
[01.01.2025 23:35:25] Manager WinGet failed to list available updates with exception InvalidOperationException: WinGet: Failed to connect to composite catalog.
[01.01.2025 23:35:25] Since this was the first attempt, Winget.AttemptFastRepair() will be called and the procedure will be restarted
[01.01.2025 23:35:25] Attempting to reconnec to WinGet COM Server...
[01.01.2025 23:35:38] Error finding updates on manager Winget
[01.01.2025 23:35:38] System.AggregateException: One or more errors occurred. (WinGet: Failed to connect to composite catalog.)
                       ---> System.InvalidOperationException: WinGet: Failed to connect to composite catalog.
                         at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetLocalWinGetPackages() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\ClientHelpers\NativeWinGetHelper.cs:line 238
                         at System.Threading.Tasks.Task`1.InnerInvoke()
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                      --- End of stack trace from previous location ---
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                      --- End of stack trace from previous location ---
                         at UniGetUI.Core.Classes.TaskRecycler`1._runTaskAndWait(Task`1 task, Int32 hash, Int32 cacheTimeSecsSecs)
                         at UniGetUI.Core.Classes.TaskRecycler`1.RunOrAttach(Func`1 method, Int32 cacheTimeSecs) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Classes\TaskRecycler.cs:line 59
                         at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetAvailableUpdates_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\ClientHelpers\NativeWinGetHelper.cs:line 155
                         at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.GetAvailableUpdates_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 94
                         at System.Threading.Tasks.Task`1.InnerInvoke()
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                      --- End of stack trace from previous location ---
                         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                         --- End of inner exception stack trace ---
                         at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
                         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
                         at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken)
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager._getAvailableUpdates(Boolean SecondAttempt) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 201

Package Managers Logs

Manager WinGet with version:
System WinGet CLI Version: v1.9.25200
Using Native WinGet helper (COM Api)

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


Logged native task on manager Winget. Task type is ListSources
Process start time: 01.01.2025 23:35:13
Process end time:   01.01.2025 23:35:13

-- Task information
 ...

The task reported success

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

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\ugisb\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 01.01.2025 23:35:16
Process end time:   01.01.2025 23:35:25

-- Process STDOUT
 ...

Return code: SUCCESS (0)

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 01.01.2025 23:35:16
Process end time:   UNFINISHED

The task has not finished yet

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

Logged native task on manager Winget. Task type is OtherTask
Process start time: 01.01.2025 23:35:16
Process end time:   01.01.2025 23:35:20

-- Task information
 ...

-- Task errors
  Failed to connect to installedSearchCatalogRef. Aborting.

The task reported a failure (1)

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 01.01.2025 23:35:20
Process end time:   UNFINISHED

The task has not finished yet

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

Logged native task on manager Winget. Task type is OtherTask
Process start time: 01.01.2025 23:35:20
Process end time:   01.01.2025 23:35:24

-- Task information
 ...

-- Task errors
  Failed to connect to installedSearchCatalogRef. Aborting.

The task reported a failure (1)

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

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 01.01.2025 23:35:25
Process end time:   UNFINISHED

The task has not finished yet

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

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\ugisb\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 01.01.2025 23:35:25
Process end time:   01.01.2025 23:35:31

-- Process STDOUT
 ...

Return code: SUCCESS (0)

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

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 01.01.2025 23:35:31
Process end time:   UNFINISHED

The task has not finished yet

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

Logged native task on manager Winget. Task type is OtherTask
Process start time: 01.01.2025 23:35:31
Process end time:   01.01.2025 23:35:38

-- Task information
 ...

-- Task errors
  Failed to connect to installedSearchCatalogRef. Aborting.

The task reported a failure (1)

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

Relevant information

No response

Screenshots and videos

No response

@fcotugno fcotugno added the bug Something isn't working label Jan 1, 2025
@marticliment
Copy link
Owner

What happens if you run winget list on a command prompt?

@Yoshlix
Copy link

Yoshlix commented Jan 3, 2025

I have the same error as above and I think I found out why.
As for me I'm using two user accounts on my system. One with admin rights and one with normal user rights. The one I'm using all time is the normal one.
When UniGetUI elevates it self with the UniGetElevator it recreates the temporary winget folder in %temp%. Problem is, that it runs winget with some permissions that the normal user account is unable to access it. Through Windows explorer I don't have access to it unless I give myself the permissions.
When running winget list this is the output:

Fehler beim Versuch, die Quelle zu aktualisieren: winget
Fehler beim Öffnen der vordefinierten Quelle. Bitte melden Sie dieses Problem an die Entwickler von winget.
Unerwarteter Fehler beim Ausführen des Befehls:
0x80070005 : Zugriff verweigert

It translates to:

Error while trying to update source: winget
Error while opening the predefined source: Please report this problem to the winget developers.
Unexpected error while running the command:
0x80070005 : Access denied

When I delete the "WinGet" folder in my %temp% directory everything works again until UniGetUI trys to update something with it's build in elevator.

Hope this helps to solve this issue here. If not, feel free to move this to a new issue. I can also provide logs if needed.

@knoxitus
Copy link

knoxitus commented Jan 6, 2025

I also have the same issue on multiple computers where I'm executing UniGetUI with a windows user with standard account type and I need to select a different account with admin priviledges to update the applications. After every restart of UniGetUI I need to delete my %temp% directory by the admin account to get it working again.

I use WinGetUI also on a machine where the executing user is an admin user account and there it just works fine.

Maybe this helps a bit to get the annoying issue which I already have for a long time.

@In139
Copy link

In139 commented Jan 11, 2025

Same here. Still the same error on multiple devices (on the Win 11 PC for months, on the Win 10 PC for weeks).
(Posted here and here )
I hope the error will be fixed at some point, otherwise the program will be unusable for me.
It often does not find any updates. I delete the %TEMP% folder every time - with little success.

@llvs
Copy link

llvs commented Jan 13, 2025

Yes, same here. As soon as a program installation requires that GSudo-like elevation (no matter if actual GSudo or the new Uniget Elevator) I need to cancel that installation to not render UnigetUI unusable. UnigetUI at the moment is only useful for updates that the normal user can do but without knowing beforehand which those updates are and to show what updates are available for all kinds of software in a GUI. I also hope that the Winget-CLI devs fix that issue.

@BladeMF
Copy link

BladeMF commented Jan 15, 2025

Same here, only observed while using Elevator. It messess up the ownership of the tmp/WinGet folder and the repair does not fix it. Reported it here to the CLI team.

@redburningice
Copy link

As a temporary workaround I went back to UniGet 3.1.3

@ROBYER1
Copy link

ROBYER1 commented Jan 31, 2025

I get this error every time I install it on my work laptop, Win 11 and I am not an admin user as it is a work machine. On initial install UnigetUI works fine until a restart or a few days. After then, I keep getting warnings about Winget needing to be repaired in UnigetUI, repair script doesn't repair it so I am stuck in a loop.

I can escape the loop by going to C\Users\Username\AppData\Local\Temp and deleting the Winget folder there and restarting UnigetUI. On that restart of UnigetUI it loads in all the updates I had missed for packages and tries to update them, all of them are reported as failed updates with console errors but when I refresh the updates list, the updates actually seem to have installed or Winget/UnigetUI is failing to get the list of updates on refresh after the failed updates.

I also tried this command and got this error

PS C:\Users\Username> winget list
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x80070005 : unknown error

I then delete C\Users\Username\AppData\Local\Temp\WinGet folder again and then run the winget list command which then works fine.

I think this could be due to this issue mentioned here -

microsoft/winget-cli#4704 (comment)

"Cause: the WinGet folder in the windows temp folder of my non-privileged user had - for whatever reason - admin access rights only.

Fix: deleted this WinGet folder, ran winget source update from an non-elevated shell again. Et voilà, a new WinGet folder with proper permissions has been created and everything is fine again. "

So the cause is likely to be a non admin user uses UnigetUI which is doing the WinGet source update command as an elevated command prompt which could then be causing the AppData/temp/Winget folder to be created with admin rights only which then causes access errors for modifying it as a non admin user which UniGetUI is trying to do I assume.

This issue is probably the underlying cause
microsoft/winget-cli#5109

@Piggoz
Copy link

Piggoz commented Jan 31, 2025

I confirm the problem can be that then, maybe becouse of the evolution (and probably bugs in Winget hisself, the problem represent hisself from now and then. You need to manually delete any temp folder referencing to winget and this sux.

For the moment I find more easy to simply run winget and sometime try UnigetUI as an helper.

It is too bad, becouse in the old time of WingetUI and first versions of UnigetUI everything was fine, then as I said probably the "evolution" of Winget broke UnigetUI too.

Martin asked me about my environments in another thread, then it is pretty common and it works with everything, always run everything as a user and always I elevate a program when needed. Pretty secure and pretty common and the same on maybe 10 or 12 machines I do administer.

@llvs
Copy link

llvs commented Jan 31, 2025

Please leave a thumbs up at the relevant winget-cli issue to get it fixed earlier.

@eikaramba
Copy link

for me it helped to execute winget list in a terminal and accept the terms.

However i remember also that i already did this in the past, so it might come back from time to time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-author-answer
Projects
None yet
Development

No branches or pull requests