When APK prints “trying to overwrite” during an ImmortalWrt build, keep the entire error line. It identifies both packages and the exact path. Leave the running router alone while you check the build.
Read the ownership error
ERROR: luci-app-openvpn-server-3.0-r0: trying to overwrite etc/config/openvpn owned by openvpn-openssl-2.7.6-r1.
In this 25.12.2 example, the LuCI extension tries to install a file already supplied by the OpenVPN backend. If your log names another path or package pair, investigate those names instead. The installer may continue counting packages after an error.
Choose one owner in the build tree
Save .config, the feed revisions and the last working image. Run these commands from the source root.
grep -E 'CONFIG_PACKAGE_.*openvpn' .config
make menuconfig
Press / in the menu to search for each package and inspect reverse dependencies. If the standard service is enough, keep openvpn-openssl and deselect luci-app-openvpn-server and any optional selection that pulls it back in. If you need the extension, wait for compatible packages from the same branch that assign the file to one owner. Avoid forced overwrites.
Verify the image before upgrading
Regenerate dependencies, inspect the selection again and rebuild the same target. The single job makes the first error easier to find.
make defconfig && grep -E 'CONFIG_PACKAGE_.*openvpn' .config
make -j1 V=s
Check the exit status, the new image timestamp and the matching package manifest. On a spare device, load your saved settings and reach a service across the tunnel. If the conflict persists, restore the saved build configuration and feed revisions. Keep using the working image.
Moving OpenWrt from x86 to ARM: check the ABI, packages and kernel modules
Comments