Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Headless mode never loads the elevator, so admin updates fail with "the elevation tool could not be found"

オープン 初心者向け
#5,541 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
cli

調査の方向性

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
  1. Start UniGetUI with --headless
  2. Run: uniget package update --manager winget --id Microsoft.VisualStudio.2022.BuildTools
  3. The reply has status error and the line above. winget writes no log for it.
  4. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Devolutions/UniGetUI のほかの issue

Devolutions/UniGetUI の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。