Fix 404s from a stale mirror during an upgrade
Checked on this Omarchy 4 workstation: /etc/pacman.d/mirrorlist is one line, Server = https://stable-mirror.omarchy.org/$repo/os/$arch, copied from /usr/share/omarchy/default/pacman/mirrorlist-stable by install/post-install/pacman.sh, with rc and edge variants beside it, and core, extra and multilib all Include it. Neither reflector nor rate-mirrors is installed and nothing under /usr/share/omarchy references either. Omarchy's mirror tool is /usr/share/omarchy/bin/omarchy-refresh-pacman, which backs up pacman.conf and mirrorlist to .bak, copies the channel defaults, runs the pre-refresh-pacman hook, then runs sudo env OMARCHY_UPDATE_PACMAN=1 pacman -Syyuu --noconfirm. omarchy-update and omarchy-update-keyring do not touch the mirrorlist. The stable mirror is a pinned snapshot: its lastupdate file read 2026-08-25 while geo.mirror.pkgbuild.com read 2026-09-06, and omacom/omarchy issue 9064 documents the same lag. In issue 3825 dhh says not to run reflector because new mirrors will not be in sync with Omarchy's release schedule, and to use omarchy-refresh-pacman. The record's sudo pacman -Syyu and -Syyuu both carry -S and -u, so the ALPM guard (/usr/bin/omarchy-update-pacman-guard) aborts them on Omarchy unless OMARCHY_ALLOW_DIRECT_PACMAN=1 is set. The mirrorlist is owned by pacman-mirrorlist 20260610-1, so a pacman-mirrorlist upgrade will leave a mirrorlist.pacnew holding the Arch list, and merging it moves the machine off the snapshot. That is inferred from package ownership, I did not observe a pacnew here. Against the Arch wiki Pacman page (Packages cannot be retrieved on installation), Mirrors (Force pacman to refresh the package lists) and Reflector, the plain Arch advice, the -Syyuu downgrade warning and the reflector invocation all held, and reflector 2023-5 is in extra. Not exercised: I did not run any pacman sync or mirror change here.
After switching to a different mirror you may hold packages newer than the new mirror offers. The wiki's remedy is sudo pacman -Syyuu to force-downgrade back into sync. That downgrade can revert a kernel or glibc, so reboot afterwards and be prepared to regenerate the initramfs. On Omarchy 4 omarchy-refresh-pacman runs exactly that -Syyuu for you, so expect downgrades if you had moved ahead of the snapshot on Arch mirrors. A direct sudo pacman -Syyuu is blocked by the update guard on Omarchy. Merging a /etc/pacman.d/mirrorlist.pacnew from the pacman-mirrorlist package replaces Omarchy's one-line mirrorlist with the Arch mirror list, which is the same drift by another route: keep the Omarchy line, or run omarchy-refresh-pacman afterwards.
Symptom
error: failed retrieving file 'foo-1.2-1-x86_64.pkg.tar.zst' from mirror.example.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
or error: target not found: foo for a package you can clearly see on archlinux.org/packages.
Cause
Your sync database lists a package version the mirror no longer carries (the mirror is behind, or it has already rotated to a newer version), the mirror is broken, or the repository containing the package (for example multilib) is not enabled in /etc/pacman.conf.
On Omarchy 4 the mirror is not one you picked. /etc/pacman.d/mirrorlist holds a single line, Server = https://stable-mirror.omarchy.org/$repo/os/$arch (rc-mirror and mirror for the other channels), and core, extra and multilib all use it. That mirror is a snapshot of Arch that Omarchy advances on its own release schedule, so it can sit days behind the official mirrors, and packages in the [omarchy] repo at pkgs.omarchy.org are built against that snapshot. A 404 there means your local database and the snapshot have drifted, usually because a package was rotated, or because the mirrorlist was replaced with Arch mirrors (a merged mirrorlist.pacnew from the pacman-mirrorlist package, or reflector) and the databases now describe packages the snapshot does not have.
Fix
**Omarchy 4.** Do not run reflector or hand-pick Arch mirrors: they put you ahead of Omarchy's snapshot and out of step with the [omarchy] repo. Put the Omarchy defaults back and re-sync against them. This backs up /etc/pacman.conf and /etc/pacman.d/mirrorlist to .bak, restores the channel's pacman.conf and one-line mirrorlist, and runs pacman -Syyuu with the update guard satisfied, so anything newer than the snapshot is downgraded to match:
omarchy-refresh-pacman # stable channel
omarchy-refresh-pacman rc # or: edge
Then run the normal update:
omarchy update
If the Omarchy mirror itself is stale, omarchy update reports every repo as up to date while pacman -Ss cannot see packages added to Arch after the snapshot date. Compare the mirror's lastupdate against an official mirror before blaming your machine:
curl -s https://stable-mirror.omarchy.org/lastupdate; echo
curl -s https://geo.mirror.pkgbuild.com/lastupdate; echo
Those are epoch seconds. If the Omarchy value is old and the package you need was published after it, wait for the snapshot to advance rather than switching mirrors. Do not run sudo pacman -Syyu directly: the update guard aborts any pacman command carrying both -S and -u. For one deliberate bypass:
sudo env OMARCHY_ALLOW_DIRECT_PACMAN=1 pacman -Syyu
**Plain Arch.** First force a real database refresh against your current mirrors:
sudo pacman -Syyu
If that does not fix it, the mirror is the problem. Re-rank mirrors with reflector:
sudo pacman -S --needed reflector
sudo reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
sudo pacman -Syyu
Or hand-write a known-good mirrorlist:
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
sudo tee /etc/pacman.d/mirrorlist >/dev/null <<'EOF'
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
EOF
sudo pacman -Syyu
**Both.** If the package is 32-bit (lib32-*) or a Steam dependency, check that multilib is enabled in /etc/pacman.conf. Omarchy's shipped pacman.conf already has it:
[multilib]
Include = /etc/pacman.d/mirrorlist
then sudo pacman -Syu on Arch, or omarchy update on Omarchy.
Verify
sudo pacman -Syu downloads everything. pacman -Ss foo finds the package in the expected repo.
Sources
- https://wiki.archlinux.org/title/Pacman
- https://wiki.archlinux.org/title/Mirrors
- https://wiki.archlinux.org/title/Reflector
- https://github.com/omacom/omarchy/issues/3825
- https://github.com/omacom/omarchy/issues/9064
- https://github.com/omacom/omarchy/issues/6162
- https://github.com/omacom/omarchy-pkgs/blob/master/README.md
- https://archlinux.org/packages/extra/any/reflector/
- https://stable-mirror.omarchy.org/lastupdate
- https://geo.mirror.pkgbuild.com/lastupdate