[BUG] Error occurs with Chocolatey local repository
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the Chocolatey local file-source reproduction described in the issue and inspect the BaseNuGet.FindPackages_UnSafe stack-trace entry. Run a search against a local file:// source and compare it with the Chocolatey community source. Done means UniGetUI finds packages from the local source without reporting that the file scheme is unsupported.
由索引模型根据 Issue 内容生成。
描述
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
2026.3.0
Windows version, edition, and architecture
Windows 11 Pro, 26200.9457, x64
Describe your issue
I've added a new local source to Chocolatey. The source is properly detected by UniGetUI when I check into Chocolatey options.
However, when I look for a package, nothing is found, whereas if I use Chocolatey CLI (choco find or choco install) I have no issue to find and install my package.
Moreover, after I installed the package using Chocolatey CLI, the package is properly listed in "installed packages" with source as "Chocolatey: community".
Steps to reproduce the issue
- Add a new file based source to Chocolatey (ie
file://...url) with any validnupkgfile in this folder. - Perform any search with UniGetUI
- Look for logs
UniGetUI Log
[22/09/2026 08:44:27] __ __ _ ______ __ __ ______
/ / / /___ (_) ____/__ / /_/ / / / _/
/ / / / __ \/ / / __/ _ \/ __/ / / // /
/ /_/ / / / / / /_/ / __/ /_/ /_/ // /
\____/_/ /_/_/\____/\___/\__/\____/___/
Welcome to UniGetUI Version 2026.3.0
[22/09/2026 08:44:27]
[22/09/2026 08:44:27] Build 107
[22/09/2026 08:44:27] UI Framework: Avalonia
[22/09/2026 08:44:27] Data directory C:\Users\USER\AppData\Local\UniGetUI
[22/09/2026 08:44:27] OS: Microsoft Windows 10.0.26200
[22/09/2026 08:44:27] Process arch: X64 (OS: X64)
[22/09/2026 08:44:27] Runtime: .NET 10.0.12
[22/09/2026 08:44:27] Loaded language locale: fr
[22/09/2026 08:44:27] Elevated: True
[22/09/2026 08:44:27] Packaged (MSIX): False
[22/09/2026 08:44:27] Args: (none)
[22/09/2026 08:44:27] DXGI hardware GPU detection took 17.7 ms; hardware GPU: True
[22/09/2026 08:44:28] Command cargo-binstall.exe was not found on the system
[22/09/2026 08:44:28] Unable to retrieve secret for resource 'UniGetUI/GitHubAccessToken': Élément introuvable.
Impossible d’obtenir des informations d’identification du coffre
[22/09/2026 08:44:28] Unable to retrieve secret for resource 'UniGetUI/GitHubAccessToken': Élément introuvable.
Impossible d’obtenir des informations d’identification du coffre
[22/09/2026 08:44:28] Unable to retrieve secret for resource 'UniGetUI/GitHubAccessToken': Élément introuvable.
Impossible d’obtenir des informations d’identification du coffre
[22/09/2026 08:44:28] Starting Avalonia shell bootstrap
[22/09/2026 08:44:28] Loaded language locale: fr
[22/09/2026 08:44:28] Generated a IPC API auth token for the current session
[22/09/2026 08:44:28] PowerShell is not enabled
[22/09/2026 08:44:28] PowerShell7 is not enabled
[22/09/2026 08:44:28] vcpkg is not enabled
[22/09/2026 08:44:28] .NET Tool is not enabled
[22/09/2026 08:44:28] Pip is not enabled
[22/09/2026 08:44:28] Cargo is not enabled
[22/09/2026 08:44:28] Bun is not enabled
[22/09/2026 08:44:28] Npm is not enabled
[22/09/2026 08:44:28] Scoop is not enabled
[22/09/2026 08:44:28] Chocolatey is enabled and was found on C:\ProgramData\chocolatey\bin\choco.exe
[22/09/2026 08:44:28] Running elevated, WinGet class registration is likely to fail unless using lower trust class registration is allowed in settings
[22/09/2026 08:44:28] Packaged WinGet COM activation failed (0x80040154: Class not registered), attempting lower-trust activation...
[22/09/2026 08:44:28] Connected to WinGet API using lower-trust COM activation.
[22/09/2026 08:44:28] WinGet activation mode selected: lower-trust COM registration | Source: system COM registration (allow lower trust)
[22/09/2026 08:44:28] Winget is enabled and was found on C:\Users\USER\AppData\Local\Microsoft\WindowsApps\winget.exe
[22/09/2026 08:44:28] Api running on named pipe UniGetUI.IPC
[22/09/2026 08:44:28] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: WinGet (aka Winget)
█ Executable name: "winget.exe"
█ Executable path: "C:\Users\USER\AppData\Local\Microsoft\WindowsApps\winget.exe"
█ Call arguments: ""
█ Version: System WinGet (CLI) Version: v1.29.380
█ Using Native WinGet helper (COM Api)
█ Activation mode: lower-trust COM registration
█ Activation source: system COM registration (allow lower trust)
█
█ WinGet is enabled and ready to go.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/09/2026 08:44:29] Auto-updater source 'ProductInfo' returned version 2026.3.0.0 (upgradable=False)
[22/09/2026 08:44:29] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Chocolatey (aka Chocolatey)
█ Executable name: "choco.exe"
█ Executable path: "C:\ProgramData\chocolatey\bin\choco.exe"
█ Call arguments: ""
█ Version: 2.7.4
█
█ Chocolatey is enabled and ready to go.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/09/2026 08:44:31] Integrity check passed successfully!
[22/09/2026 08:44:31] Avalonia shell bootstrap completed
[22/09/2026 12:56:01] Found 0 available packages from Chocolatey with the query MYPACKAGE
[22/09/2026 12:56:01] Found 0 available packages from Winget with the query MYPACKAGE
Package Managers Logs
Logged native task on manager Chocolatey. Task type is FindPackages
Process start time: 22/09/2026 11:29:58
Process end time: 22/09/2026 11:29:58
-- Task information
Begin package search with url=file://Data/nuget/server//Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm='MYPACKAGE'&targetFramework=''&includePrerelease=false&$skip=0&$top=50&semVerLevel=2.0.0 on manager Chocolatey
Begin package search with url=https://community.chocolatey.org/api/v2//Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm='MYPACKAGE'&targetFramework=''&includePrerelease=false&$skip=0&$top=50&semVerLevel=2.0.0 on manager Chocolatey
-- Task errors
Source MYSOURCE on manager Chocolatey failed to find package data
System.NotSupportedException: The 'file' scheme is not supported.
at System.Net.Http.SocketsHttpHandler.ValidateAndNormalizeRequest(HttpRequestMessage) + 0x232
at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage, CancellationToken) + 0x53
at System.Net.Http.HttpClient.Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) + 0x8b
at UniGetUI.PackageEngine.Managers.PowerShellManager.BaseNuGet.FindPackages_UnSafe(String) + 0xcfc
at System.Threading.Tasks.Task`1.InnerInvoke() + 0x59
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object) + 0x3d
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread) + 0x6a
at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x179
at System.Threading.WindowsThreadPool.DispatchCallback(IntPtr, IntPtr, IntPtr) + 0x63
--- End of stack trace from previous location ---
at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage, CancellationToken) + 0x137
at System.Net.Http.HttpClient.Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) + 0x13d
at UniGetUI.PackageEngine.Managers.PowerShellManager.BaseNuGet.FindPackages_UnSafe(String) + 0xcfc
The task reported success
Relevant information
No response
Screenshots and videos
No response
- 主要语言
- C#
- 星标
- 26.8k
- 派生
- 964
- 平均合并
- 13 小时 20 分钟
- 30 天内合并 PR
- 104
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Devolutions/UniGetUI 的其他 Issue
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
Devolutions/UniGetUI#5660 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 25/100
Devolutions/UniGetUI#5657 · 1 个 reaction ·
维护者通常 1 天内回复
-
[BUG]Installation options and operation history tabs expose control class names instead of accessible labels可能已有人在做 @GUOZIJAN 于 1 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 22/100
Devolutions/UniGetUI#5655 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 15/100
Devolutions/UniGetUI#5653 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 25/100
Devolutions/UniGetUI#5652 · 1 个 reaction ·
维护者通常 1 天内回复
查看 Devolutions/UniGetUI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 3 天内回复
-
enhancement P3 performance
难度 2/5 1-3 小时 新手友好度 75/100
thomhurst/TUnit#7380 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
documentation trivial
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
PCL-Community/PCL-CE#3767 ·
维护者通常 1 天内回复