Read the failing command alongside /etc/apk/world. A version in the error can come from the current request. Check before editing persistent constraints.
Compare installed and available versions
Use SSH on an apk-based OpenWrt system with working indexes. In world, an equals sign requires an exact version. A bare name leaves the version open on that line. In policy output, installed marks the local copy. Repository paths identify candidates. Substitute the affected package for base-files.
grep '^base-files' /etc/apk/world
apk policy base-files
Request an unavailable version in a simulation
Keep --simulate. Our OpenWrt 25.12.6 x86/64 VM used official indexes offline via the lab file /tmp/repos. Both sources listed 1718~981c978eff. Asking for version 0 produced world[base-files=0] and exit code 1. Reading the file again showed the original version.
apk add --simulate base-files=0
echo $?
grep '^base-files' /etc/apk/world

Resolve the original request
If only the command pins the version, correct it and simulate again. If neither place does, follow the dependency chain in the error. No candidate? Check indexes, architecture and release. Keep constraints on kernel, libc and base packages. Back up and use a matching firmware upgrade for system changes. The simulation needs no rollback. If you already changed packages, restore matching packages, feeds and settings, then verify versions and the affected service. Copying world alone cannot downgrade binaries.
Moving OpenWrt from x86 to ARM: check the ABI, packages and kernel modules
Comments