After the LuCI progress indicator disappears, apk update over SSH may still report Resource temporarily unavailable. When installing ddns-scripts on an Archer C7 v2 running 25.12.2, check whether the installer or a post-install script is still running. The existence of a lock file does not identify its owner.
Match the command to its PID and parent
Keep the wired management session and note the complete error and time. Use the first commands to find the package manager and the service being installed. Avoid starting a second installation. Sample the processes twice and recheck their commands if the process IDs change.
id -u
ps w
logread | tail -40
Replace 1234 with the PID you just observed. Name and PPid help trace a child back to the installation. Its /proc directory disappears when the process exits. Commands and logs may contain service arguments, so inspect them locally.
pid=1234
grep -E '^(Name|State|PPid):' "/proc/$pid/status"
tr '\0' ' ' < "/proc/$pid/cmdline"
echo
Verify the index after the transaction finishes

Let an active transaction finish if it is progressing. If it remains in the same script, save the script name, package version and service log and investigate that service in a maintenance window. Do not delete /lib/apk/db/lock or forcibly terminate a transaction that is writing. For Permission denied check the account. For Read-only file system inspect the root mount.
After the earlier installation exits, run apk update from one terminal. If the database opens but a TLS or download error follows, investigate the first download error, the clock, DNS and the feed. After a successful update check the installed version of the target package and verify its service. The screenshot is a healthy 25.12.6 guest reference. It does not reproduce a stalled script on the physical router.
Comments