[BUG] Linux: in-app self-update always fails for .deb installs in /opt/unigetui (swap helper runs without elevation)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 43/100
調査の方向性
Start by locating the Linux swap helper embedded in the UniGetUI binary and the self-update flow that invokes it; the issue does not name source files or tests. Check how updates are handled for root-owned /opt/unigetui installs and whether dpkg-managed installs have a supported update path. Done means the reported .deb update no longer fails silently and the installed package state is handled correctly.
索引モデルが 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.1 (official .deb), updating to 2026.3.3. The swap helper is unchanged in 2026.3.3.
Windows version, edition, and architecture
Linux Mint 22.3 (Ubuntu 24.04 base), Cinnamon, x86_64, kernel 7.0.0-42-generic. Seen on two different machines.
Describe your issue
When UniGetUI is installed from the official .deb package (which installs to /opt/unigetui, owned by root), the in-app self-update never works:
- The update notification appears and I click Update now.
- UniGetUI downloads
UniGetUI Updater.tar.gzto~/.local/share/UniGetUI/and extracts it to~/.local/share/UniGetUI/update-staging/<guid>/. This step works, and the staged binary is 2026.3.3. - UniGetUI closes, then reopens still on 2026.3.1 and says the update could not be installed.
Root cause (as far as I can tell): the Linux swap helper script embedded in the binary runs as the current (non-root) user and does:
rm -rf "$dir.old"
if mv "$dir" "$dir.old"; then
if mv "$newroot" "$dir"; then
...
else
rm -rf "$dir"
mv "$dir.old" "$dir"
With $dir = /opt/unigetui and /opt being root:root 755, mv /opt/unigetui /opt/unigetui.old fails with "permission denied". The helper then relaunches the old version. No sudo/pkexec prompt is shown, and the system journal has no elevation request from UniGetUI around the update.
There is also a second problem: even if the swap worked (e.g., with elevation), replacing /opt/unigetui behind dpkg's back would leave dpkg -l unigetui reporting the old version.
Steps to reproduce the issue
- Install
UniGetUI.linux-x64.deb2026.3.1 withsudo apt install ./UniGetUI.linux-x64.deb. - Launch UniGetUI as a normal user.
- When the update to 2026.3.3 is offered, click Update now.
- UniGetUI restarts on 2026.3.1 and reports that the update failed.
~/.local/share/UniGetUI/update-staging/still holds the extracted 2026.3.3 files, and no/opt/unigetui.oldexists.
Workaround: download the new .deb and run sudo apt install ./UniGetUI.linux-x64.deb. That works fine.
UniGetUI Log
Not captured during the failed attempt. I can attach it if needed.
Package Managers Logs
Not relevant (the failure is in UniGetUI's own self-updater, not in a package manager operation).
Relevant information
Suggested fix: when the app runs from a directory the user cannot write to (or when it was installed by dpkg/rpm), either:
- download the matching
.deb/.rpmand install it viapkexec apt install ./file.deb(or the equivalent), or - run the swap helper through the existing elevation path (
pkexec/sudo -Awith askpass), or at least - skip self-update and show "Update via your package manager / download the new .deb" instead of failing silently.
Screenshots and videos
No response
- 主要言語
- C#
- スター
- 26.8k
- フォーク
- 970
- 平均マージ
- 17時間 39分
- マージ済み PR(30日)
- 132
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Devolutions/UniGetUI のほかの issue
-
enhancement priority: low
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Devolutions/UniGetUI#5701 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Devolutions/UniGetUI#5703 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement priority: medium
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
Devolutions/UniGetUI#5692 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-author-answer priority: high winget
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Devolutions/UniGetUI#5683 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
new-feature priority: low
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Devolutions/UniGetUI#5677 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
Devolutions/UniGetUI の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Facepunch/sbox-public#12305 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
メンテナーはふだん 1 日以内に返信
-
bug keep-fresh
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Flow-Launcher/Flow.Launcher#4744 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
flyingpie/windows-terminal-quake#419 ·
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100