Skip to content
Contents
GuidesOpenWrt

OpenWrt cannot find libncursesw6 for gawk: check which package provides it

Locate issues with index, interface, or the program itself by comparing LuCI dependency warnings, APK provider information, and gawk execution results.

On the Linksys MR7350 running build 25.12.3, LuCI previously marked libncursesw6 from gawk 5.3.2-r1 as unavailable. A package can declare that it provides a library with a specific ABI version. When encountering this warning, first identify which package provides that named ABI version, then determine whether the missing library is actually required.

Check the warehouse and installed packages from the same router

Under "System → Software Package", note the failed package name and full dependencies. Via SSH, run the following four lines, preserving the device version, architecture, candidate providers, and installed status. Devices with custom sources should also verify that the repository matches the currently running firmware.

ubus call system board | jsonfilter -e '@.release.description' -e '@.release.target'
apk --print-arch
apk query --fields name,provides --format yaml --match name,provides libncursesw6
apk list --installed gawk libncurses6

The isolated machine returns libncurses6; the provides list includes libncursesw6=6.4-r3, script output is aBc

25.12.6 for x86/64 has the package name libncurses6, providing libncursesw6. The gawk build in the 25.12 branch depends on wide-character ncurses and readline. When no provider is found on the current architecture, run apk update, first addressing download or signature errors in the update output, then re-query. If candidates still fail to appear after a successful refresh, save the version, architecture, and index results; copying a corresponding .so file from another device cannot verify ABI or dependencies.

Find both installed packages in LuCI

Go to «System → Software → Installed» and switch to the Installed tab. In the Filter box, first type gawk, then read the package name and version. Next, type libncurses6. The installation input field and the list filtering are two separate entry points. Both filter actions in the video only reflect the current machine's state. If you haven't installed gawk yet, the installed list will be empty—this is expected behavior. At this point, return to the available packages and perform the dependency query from earlier.

The LuCI Installed list has filtered out libncurses6 and its installed 6.4-r3 version

Pre-installation simulation, post-installation verification with a single script line

Run apk add --simulate gawk. If the simulation lists unsatisfied dependencies, proceed to check the first constraint that cannot be satisfied. If the simulation resolves the dependencies, verify the change list and available space before executing apk add gawk. When already installed, the simulation may show no new entries. If only LuCI displays missing dependencies, refresh the package page and compare the index times read on both sides.

gawk 'BEGIN {print gensub(/b/, "B", 1, "abc")}'

Expected output aBc. Direct execution of gawk can simultaneously verify dynamic loading and GNU extension functions. Ordinary awk might invoke BusyBox; using it to run another script cannot confirm gawk availability. Simple queries or simulations do not require rollback. If only testing installation, first preview apk del --simulate gawk, verify no business dependencies exist, then remove the currently added item.How to check a Lantiq router’s OpenWrt subtarget and package architecture

Explore hardware

Devices mentioned

Comments