Skip to content

Linux .deb auto-update downloads package but does not install when /opt/Orca requires root #15744

Closed

Description

@TommyFang2077

Summary

On Linux, Orca's in-app automatic updater downloads the new .deb package but does not install it when Orca is installed under /opt/Orca, which is owned by root:root. The updater reports that administrator rights are not required, so the application remains on the old version without an obvious completed update.

Environment

  • OS: Linux under WSL2
  • Package: orca-ide .deb
  • Installed path: /opt/Orca
  • Installed path ownership: root:root, mode 755
  • Before update: 1.4.183
  • Downloaded update: 1.4.186

Reproduction

  1. Install Orca from the Linux .deb under /opt/Orca.
  2. Start Orca version 1.4.183.
  3. Use the in-app automatic update flow.
  4. Allow the updater to download the available update.
  5. Restart Orca or check the version.

Observed behavior

The update package is downloaded to:

~/.cache/orca-updater/pending/orca-ide_1.4.186_amd64.deb

The accompanying update-info.json contains:

{"fileName":"orca-ide_1.4.186_amd64.deb","isAdminRightsRequired":false}

However, installing into /opt/Orca requires administrator privileges. The application continued to report version 1.4.183 until the package was installed manually with:

sudo dpkg -i ~/.cache/orca-updater/pending/orca-ide_1.4.186_amd64.deb

After manual installation, Orca started normally on 1.4.186.

Expected behavior

The updater should either:

  • correctly detect that administrator privileges are required and request them to install the package; or
  • clearly report that the package was downloaded but needs manual installation, including the exact package path and next step.

Ideally, the update should be installed automatically after user confirmation, without silently leaving the application on the old version.

Additional notes

The downloaded package checksum matched the updater's expected SHA-512 value. This appears to be an installation/privilege handling issue rather than a download integrity issue.

Activity

  1. nwparker commented on Aug 21, 2026

    @nwparker
    Contributor

    Thanks for reporting this.

    Yeah, I am working on some linux related issues this + next week 🫡

  2. nwparker commented on Sep 2, 2026

    @nwparker
    Contributor

    Fixed and now on main via #18100.

    update-downloaded on deb/rpm no longer claims success. It emits an error status carrying a linux-package-install recovery, and the card offers Copy Install Command (sudo <apt|dpkg|dnf|zypper> … <exact cache path>) and Show Package — the second behaviour this issue asked for.

    Orca deliberately no longer escalates: performQuitAndInstall hard-returns for deb/rpm and autoInstallOnAppQuit is gated to non-root, so it never reaches electron-updater's pkexec/sudo path. That path was also more forceful than what users are now told to run (-y, --nodeps, --replacefiles).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions