omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Install menu offers x86_64-only packages on aarch64: every entry fails with `target not found` in a floating terminal that closes

Open alexandru-savinov opened this issue 3 months ago • 5 comments

Summary

Omarchy's install paths name packages that only exist for x86_64, and nothing in the tree checks the running architecture, so on aarch64 the Install menu offers entries that can never succeed. Each one fails in a floating terminal that prints error: target not found: <pkg> and closes, usually faster than it can be read.

System details

  • Omarchy 4.0.0.alpha (from /usr/share/omarchy/version)
  • Arch Linux ARM, uname -m = aarch64, kernel 7.2.0-2-aarch64-ARCH (not Asahi)
  • QEMU/UTM guest on an Apple Silicon host (product_name = QEMU Virtual Machine, /proc/device-tree/compatible empty)
  • pacman repositories configured: core, extra, alarm, aur

Mechanism

Three pieces combine:

  1. bin/omarchy-pkg-add is pacman-only. It runs sudo pacman -S --noconfirm --needed "$@" and never touches the AUR (bin/omarchy-pkg-aur-add is the separate yay path). Any name that is not in a configured sync repository fails outright.
  2. bin/omarchy-install-app hides the failure. It wraps omarchy-pkg-add in omarchy-launch-floating-terminal-with-presentation, so the pacman error appears in a transient floating window and disappears. The same is true of every omarchy-launch-floating-terminal-with-presentation omarchy-install-* menu action.
  3. Nothing anywhere checks the architecture. In 4.0.0.alpha, grep -rIn 'x86_64\|aarch64\|uname -m\|arm64\|HOSTTYPE\|MACHTYPE' bin default install config etc shell returns no hits. The omarchy-hw-* predicate family covers CPU vendor, GPU, chassis and peripherals, but has no architecture predicate, so no menu entry can currently gate on one.

The [omarchy] repository compounds this. default/pacman/pacman-stable.conf points it at https://pkgs.omarchy.org/stable/$arch, and that tree is x86_64-only:

$ curl -o /dev/null -w '%{http_code}\n' https://pkgs.omarchy.org/stable/x86_64/omarchy.db
200
$ curl -o /dev/null -w '%{http_code}\n' https://pkgs.omarchy.org/stable/aarch64/omarchy.db
404

Most of the AUR-derived apps in the Install menu resolve out of [omarchy] on x86_64 (1password, cursor-bin, dropbox, lmstudio-bin, once-bin, openai-codex-desktop, spotify, sublime-text-4, symfony-cli, visual-studio-code-bin, voxtype-bin, … — 202 packages in the x86_64 database), so on aarch64 they have no source at all through the pacman-only path.

Reachable entries whose package cannot exist on aarch64

Every row below is offered from Menu → Install with no hardware or architecture gate. Their only disabled predicate is omarchy-pkg-present <pkg>, which is false on a machine where the package could never have installed — so the entry renders enabled. arch= values are from the authoritative PKGBUILD at https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=<pkg>; "not in any repo" was checked with pacman -Si against core/extra/alarm/aur.

Menu path Command it runs Package Why it fails on aarch64
Install → AI → Ollama omarchy-install-app Ollama ollama ollama AUR arch=('x86_64'); not in any aarch64 repo. Reproduced on this host — /var/log/pacman.log [2026-08-27T20:41:18+0300] [PACMAN] Running 'pacman -S --noconfirm --needed ollama', error: target not found: ollama. Ollama does publish ollama-linux-arm64.tar.zst upstream, so this is a packaging assumption rather than a support gap.
Install → AI → LM Studio omarchy-install-app 'LM Studio' lmstudio-bin lmstudio-bin AUR arch=('x86_64')
Install → Editor → Cursor omarchy-install-and-launch Cursor cursor-bin cursor cursor-bin AUR arch=('x86_64')
Install → Editor → Zed omarchy-install-editor-zed → omarchy-pkg-add zed omazed zed, omazed no aarch64 zed in extra/alarm; AUR zed is arch=('x86_64'). omazed is arch=('any') but AUR-only, which the pacman-only path cannot reach.
Install → Service → 1Password omarchy-install-service-1password → omarchy-pkg-add 1password 1password-cli 1password AUR arch=('x86_64') (1password-cli does list aarch64)
Install → Service → Spotify omarchy-install-service-spotify → omarchy-pkg-add spotify spotify AUR arch=('x86_64')
Install → Service → Dropbox omarchy-install-service-dropbox → omarchy-pkg-add dropbox … dropbox, nautilus-dropbox AUR arch=("x86_64") for both
Install → Development → PHP → Symfony omarchy-install-dev-env symfony → omarchy-pkg-add symfony-cli symfony-cli AUR arch=('x86_64')
Install → Browser → Edge omarchy-install-browser edge → omarchy-pkg-aur-add microsoft-edge-stable-bin microsoft-edge-stable-bin AUR arch=('x86_64') — fails in yay rather than pacman, but is equally unreachable

Reachable entries whose package could work on aarch64

These are a milder case of the same mechanism: the upstream PKGBUILD does list aarch64, but the package lives only in the AUR and in [omarchy], and omarchy-pkg-add is pacman-only while pkgs.omarchy.org has no aarch64 tree. So they fail too, even though nothing about them is architecture-bound.

Menu path Package Upstream arch=
Install → AI → ChatGPT Desktop openai-codex-desktop ('x86_64' 'aarch64')
Install → Editor → VSCode visual-studio-code-bin ('x86_64' 'aarch64' 'armv7h')
Install → Editor → Sublime Text sublime-text-4 ('x86_64' 'aarch64')
Install → Service → ONCE once-bin ('x86_64' 'aarch64')
Install → Service → NordVPN nordvpn-bin ('x86_64' 'i686' 'armv7h' 'aarch64' 'armeabi')

What is not affected

For completeness, I traced every x86-only package name in bin/, install/ and default/ and confirmed the following are correctly gated behind an omarchy-hw-* predicate or a hardware-detection guard, so they never run on ARM and are not part of this report: intel-lpmd, thermald, intel-media-driver, libvpl, vpl-gpu-rt, libva-intel-driver, intel-ipu7-camera, linux-ptl, linux-ptl-headers, sof-firmware, asusctl, supergfxctl (when: omarchy-hw-hybrid-gpu), broadcom-wl, macbook12-spi-driver-dkms, dell-xps-touchpad-haptics, dell-xps13-sidecar-amps, qmk-hid, tuxedo-drivers-nocompatcheck-dkms, yt6801-dkms, linux-firmware-marvell, the nvidia.sh kernel/driver set, and the ollama-cuda / ollama-rocm branches of install.ai.ollama (guarded by omarchy-cmd-present nvidia-smi / rocminfo).

I also deliberately left the gaming entries (install.gaming.steam, .lutris, .heroic) out of the tables. They are ungated and they do fail (steam is multilib-only, wine-staging is arch=('x86_64' 'i686'), heroic-games-launcher-bin is arch=('x86_64')), but the whole stack is x86-bound by nature and arguably belongs to a different discussion.

One adjacent case I could not classify cleanly and am flagging as unverified: install.gaming.xbox-controllers runs omarchy-pkg-add linux-headers xpadneo-dkms. xpadneo-dkms is arch=(any), but linux-headers does not exist under that name on ALARM (linux-aarch64-headers) or Asahi (linux-asahi-headers). That is a kernel package-naming assumption rather than an architecture one, and several hardware-gated scripts share it.

How this differs from the existing reports

  • #8530 and PR #8316 address the Voxtype install path specifically, and #8316 is the right shape for it — a source-build fallback gated on the new omarchy-hw-x86-64-v3 predicate. But that fix is local to bin/omarchy-voxtype-install; the same class of failure remains in every other ungated Install entry above.
  • #7883 and PR #8149 cover the related AVX2/SSE4.2 baseline problem within x86_64.
  • PR #8039 covers the aarch64 install-time path (mkinitcpio thunderbolt, [multilib] in pacman.conf, mise-work) and notes the pkgs.omarchy.org aarch64 gap as out of scope. This issue is about the post-install, user-facing menu.
  • #87 (closed) and #803 (closed) are much older and predate the current menu.

I did not find an open report covering the general case.

Suggested direction

Offered as options, not a prescription:

  1. A preflight in omarchy-pkg-add. Before shelling out to pacman, check that each name resolves for the running architecture and, when it does not, fail with a message that says so — instead of letting error: target not found scroll past in a window that closes. This would cover every call site at once, including the ones reached from scripts rather than the menu.
  2. disabled predicates on the menu entries whose package cannot exist on the running architecture, so the entry is greyed out rather than offered. PR #8316's bin/omarchy-hw-x86-64-v3 already returns false for any non-x86_64 machine ([[ $machine == "x86_64" ]] || exit 1 before the flag checks), so it could serve as that gate directly, or a narrower omarchy-hw-x86-64 predicate could be split out of it.
  3. Publishing an aarch64 tree on pkgs.omarchy.org would independently fix the second table, since those packages already build for ARM.

(1) and (2) are complementary: (2) keeps the dead entries out of the user's way, (1) catches the script-level call sites and gives a readable error when a package is missing for any other reason.

Happy to open a PR for whichever of these you'd prefer — the omarchy-hw-x86-64 predicate plus disabled gates is the smallest change, and the omarchy-pkg-add preflight is the one that covers the most ground.

alexandru-savinov avatar Aug 27 '26 17:08 alexandru-savinov

Confirmed the ChatGPT case on a physical Lenovo Yoga Slim 7x / Snapdragon X Elite running Omarchy 4.0.1rc3-1.5 on Arch Linux ARM. Before installing anything, the normal installer command failed with:

$ omarchy-install-ai-chatgpt
Installing ChatGPT...
error: target not found: openai-codex-desktop

The command returned 1 before reaching its launch step. The install window disappearing was the user-visible symptom. This machine had only core, extra, alarm, and aur configured, with no [omarchy] repository.

An important availability update as of September 6:

  • https://pkgs.omarchy.org/edge/aarch64/omarchy.db now returns 200 and contains 115 packages. Stable and RC still return 404 for aarch64.
  • ChatGPT 26.901.20858-1, VS Code, 1Password, LocalSend, NordVPN, ONCE, Perplexity, OpenClaw, Sublime Text, and Voxtype are in that ARM edge database. The corresponding package download URLs return 200.
  • I downloaded the ChatGPT ARM package, verified its checksum and trusted Omarchy signature, and installed only that package without switching repositories or upgrading the system. It launched as the desktop user and created a visible, mapped ChatGPT window in Hyprland. This is an installation/launch smoke test, not a claim that every application feature is tested.

So ChatGPT is not an x86-only application. OpenAI publishes a Linux ARM64 build, and the current Omarchy recipe already packages it.

I think the useful distinction here is package availability in the configured repositories versus genuine architecture support. Keeping the failure visible and explaining a missing repository/package would help without hiding ARM-capable apps behind a blanket x86 gate. Stable/RC publishing and the supported setup for existing ARM installations are tracked in https://github.com/omacom/omarchy-pkgs/issues/199. Further app packaging is proposed in https://github.com/omacom/omarchy-pkgs/pull/240.

birkskyum avatar Sep 06 '26 18:09 birkskyum

I read this against current quattro (c352b62d6) and the in-progress aarch64 branches n1x and arm64-generic. Nothing was run on ARM hardware, since the workers here are x86_64; the findings below come from the source.

Still true on quattro: the Install entries for lmstudio-bin, cursor-bin, spotify, 1password, symfony-cli and microsoft-edge-stable-bin (default/omarchy/omarchy-menu.jsonc) are gated only on omarchy-pkg-present, and no bin/omarchy-hw-* predicate checks the architecture. So on aarch64 they are offered and fail. The n1x and arm64-generic branches don't change the menu either. They point aarch64 machines at Omarchy's edge aarch64 repository, which covers the second table (as @birkskyum found) but not the x86_64-only packages in the first.

Fixed since 4.0.0.alpha: the window no longer disappears. 5d3299fb9 made omarchy-show-done wait for a keypress itself, and bc0753dfc passes the exit code through, so a failed install now stays open with a red "Failed (exit code 1)!" prompt instead of closing.

A related defect found along the way: bin/omarchy-install-dev-env ignores the exit status of the steps in each case. For example, symfony runs omarchy-pkg-add symfony-cli and then prints "You can now run: symfony new" whatever happened, so a failed install ends with the green "Done!" prompt. This is not specific to ARM.

No fix has been drafted. Gating entries per architecture, a preflight in omarchy-pkg-add (which wouldn't cover Edge, since that goes through yay), and publishing more aarch64 packages each behave differently for users. aarch64 support is also still being built on those branches, so choosing among them is up to the maintainer. This is waiting on them.

Second opinion: Codex Medium reviewed the same questions on its own. It agreed with the findings above, and it found the install-dev-env exit-status problem and the yay path for Edge. Its independence from this review is not guaranteed.

omarchybot avatar Oct 09 '26 04:10 omarchybot

Another entry for the second table (package could work on aarch64): Install → Service → Bitwarden.

  • Omarchy 4.0.0.r7052.ga6dcc31-1 (edge), Asahi on an M1 MacBook Air (apple,j313), uname -m = aarch64
  • Repos: [omarchy] (https://pkgs.omarchy.org/edge/$arch), asahi-alarm, core, extra, alarm, aur

install.service.bitwarden runs omarchy-install-and-launch Bitwarden 'bitwarden bitwarden-cli' bitwarden, which calls omarchy-pkg-add bitwarden bitwarden-cli. pacman stops with target not found: bitwarden: pacman -Si bitwarden finds it in none of the repos above, including the edge aarch64 [omarchy] database. bitwarden-cli resolves fine (extra, 2026.2.0-1).

The app itself isn't x86_64-only. Bitwarden publishes an official Linux arm64 build in the bitwarden/clients releases (bitwarden_<ver>_arm64.tar.gz), and the AUR package bitwarden-bin (2026.10.0-1) already declares arch=('x86_64' 'aarch64') and installs that tarball on aarch64. Publishing bitwarden-bin in the aarch64 [omarchy] tree would make this entry work.

Workaround confirmed on this machine: omarchy pkg aur add bitwarden-bin bitwarden-cli installs both, and the desktop app launches and signs in. Since bitwarden-bin has provides=('bitwarden'), the menu's omarchy-pkg-present bitwarden check passes afterwards, so the entry shows as installed.

isc avatar Oct 18 '26 13:10 isc

Thanks @isc. I checked the Bitwarden entry against current quattro (60f5b4966). I read the source only and didn't run anything on ARM hardware, since the workers here are x86_64.

Bitwarden, as you describe it: install.service.bitwarden (default/omarchy/omarchy-menu.jsonc:290) has no architecture gate and installs bitwarden bitwarden-cli through omarchy-install-and-launch → omarchy-pkg-add, which is pacman-only. omarchy-pkgs has no bitwarden recipe yet, so no Omarchy repository publishes it for aarch64. omacom/omarchy-pkgs#1235 (open) adds one that repackages Bitwarden's own arm64 tarball under Arch's command and desktop-entry names, so the menu entry would work unchanged once it ships. The window-class change it needs is already on quattro as 386176ab4.

What has changed since my last comment here:

  • Gated or handled on ARM now: Edge, Lutris and Heroic are hidden off x86 (when: omarchy-hw-x86). Spotify installs as a web app on ARM (bf9ee5c7e). Dropbox is offered only with 4K pages (6bfc12a60). Steam skips the multilib lib32 drivers on ARM, where it expects Valve's arm64 client, though I haven't checked that a steam package is published for aarch64. Xbox Controllers no longer asks for linux-headers. bin/omarchy-hw-aarch64 and omarchy-hw-x86 now exist as architecture predicates.
  • omarchy-pkgs now has recipes that build for aarch64 for ollama, lmstudio-bin, cursor-bin, zed, 1password and symfony-cli. Most of the first table is therefore a question of what the edge aarch64 repository has published, not of x86_64-only apps. I couldn't check the published databases from here. ARM installs are still configured for edge only (default/pacman/aarch64/pacman-edge.conf), and omacom/omarchy-pkgs#199 (a stable aarch64 tree) is still open.

A related defect: bin/omarchy-install-editor-zed has no set -e, so when omarchy-pkg-add zed omazed fails it goes on to omazed setup and the launch, and the window ends on "Done!" instead of the failure. omarchy-install-dev-env symfony has the same problem, as I noted before. This isn't specific to ARM.

No fix has been drafted in this repository. The Bitwarden fix is the omarchy-pkgs pull request above, and how the remaining entries should behave on ARM is still up to the maintainer. This is waiting on them.

Second opinion: Codex Medium checked the same questions on its own. It agreed with the Bitwarden finding and the per-entry status above, and it was the one that found the missing set -e in the Zed installer. Its independence from this review is not guaranteed.

omarchybot avatar Oct 18 '26 22:10 omarchybot

I checked the published edge aarch64 database against both tables. Every package in them is published for aarch64 now except three. Spotify installs as a web app on ARM (#15768), Edge is hidden off x86, and Bitwarden comes with omacom/omarchy-pkgs#1235, which waits for a build approval. Steam is published too. Closing this, since the last gap is tracked in #1235. The missing exit-status handling in the Zed and Symfony installers isn't specific to ARM and fits better in its own issue.

birkskyum avatar Oct 18 '26 22:10 birkskyum