Headless mode never loads the elevator, so admin updates fail with "the elevation tool could not be found"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
HeadlessDaemonHost.RunAsync から始め、その起動シーケンスを AvaloniaBootstrapper のものと比較し、LoadElevatorAsync が AbstractProcessOperation の CoreData.ElevatorPath をどのように設定するかを追跡します。ヘッドレス更新の失敗を再現し、その後、ヘッドレス起動が昇格ツールを winget の起動より前に読み込み、昇格パスを設定した場合に同じ更新が成功することを確認します。
索引モデルが 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.
UniGetUI Version
2026.3.2, Scoop install. Same code in 2026.3.1.
Windows version, edition, and architecture
Windows 11 Home, build 26300, 64-bit
Describe your issue
When UniGetUI runs with --headless, any update that needs admin rights fails right away. winget never starts. The operation output says "This operation requires administrator privileges, but the elevation tool could not be found."
The same update works when UniGetUI is open as a normal window.
I think the cause is that HeadlessDaemonHost.RunAsync only calls PrepareForCurrentPlatform, LoadLoaders, LoadManagers and MaintenanceScheduler.StartHeadless. It never calls LoadElevatorAsync, which only AvaloniaBootstrapper runs. So CoreData.ElevatorPath stays empty in headless mode, and AbstractProcessOperation stops on the empty FileName.
Steps to reproduce the issue
- Start UniGetUI with --headless
- Run: uniget package update --manager winget --id Microsoft.VisualStudio.2022.BuildTools
- The reply has status error and the line above. winget writes no log for it.
- Quit it, open UniGetUI normally and run the same command. Now winget runs.
UniGetUI Log
WinGet package Microsoft.VisualStudio.2022.BuildTools is installed on a system-wide scope, forcing administrator rights...
[AgentBroker] ShouldUseAgentBroker check: eligible=False, manager=Winget, virtualSource=False
Executing process with StartInfo:
- FileName: ""
- Arguments: ""C:\Users\****\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "Microsoft.VisualStudio.2022.BuildTools" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
This operation requires administrator privileges, but the elevation tool could not be found. The operation cannot continue.
Visual Studio BuildTools 2022 could not be updated
Package Managers Logs
winget never ran for this operation, so it has no log for it.
Relevant information
UniGetUI Elevator.exe is there in Assets\Utilities in both versions. Calling LoadElevatorAsync from the headless host as well would fix it.
- 主要言語
- C#
- スター
- 26.6k
- フォーク
- 945
- 平均マージ
- 22時間 26分
- マージ済み PR(30日)
- 74
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Devolutions/UniGetUI のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Devolutions/UniGetUI#5029 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Bun updates not detected when installed via Scoop — GetGlobalPackagesDirectory ignores BUN_INSTALL対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Devolutions/UniGetUI#4918 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Devolutions/UniGetUI#4768 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
Devolutions/UniGetUI#5538 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Devolutions/UniGetUI#5537 ·
メンテナーはふだん 1 日以内に返信
Devolutions/UniGetUI の issue をすべて見る
似ている issue
-
has-image has-license has-readme new-tool ready-to-approve repo-verified
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
shanselman/TinyToolTown#862 ·
メンテナーはふだん 5 日以内に返信
-
S: Untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
space-wizards/space-station-14#46497 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
nightscout/nocturne#2135 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows Needs: Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信