I’m attempting to install some new packages on a router currently running a private build based off main, and am failing like so:
root@logan:~# apk add tcpdump
ERROR: wget: exited with error 8
WARNING: updating and opening https://downloads.openwrt.org/snapshots/targets/qualcommax/ipq807x/kmods/6.12.79-1-5f1eadfddeee7f76a5561ecbbb77a09d/packages.adb: unexpected end of file
ERROR: unable to select packages:
kmod-qca-nss-dp (no such package):
required by: world[kmod-qca-nss-dp]
libblobmsg-json20260213 (no such package):
required by: world[libblobmsg-json20260213]
libjson-script20260213 (no such package):
required by: world[libjson-script20260213]
libubox20260213 (no such package):
required by: world[libubox20260213]
base-files-1~a226686:
breaks: world[base-files=1700~8a18e84a88]
kernel-6.12.79~5f1eadfddeee7f76a5561ecbbb77a09d-r1:
breaks: world[kernel=6.12.74~7cbe14d1bf010c4cf58d6deeee1a9b71-r1]
This build should not have a kmod-qca-nss-dp package, as this is on the EDMA migration branch which does away with that in favor of edma / ppe drivers. However, this must be a more generic question, since I can see other cases where installing packages on SNAPSHOTbuilds will fail to get the kmods (due to them being aged out and updated for the latest build, for example).
So, is there a way to tell apk to ignore the current state, or the missing dependency and just try and get the dang tcpdump package? And what’s the deal with the missing libblobmsg-json libjson-script and libubox? Artifacts of broken main state? Something else?
Thanks in advance!
NOTE: I’ve tried --force (didn’t help), --force-missing-repositories (didn’t help), and am very afraid to try --force-broken-world (update: I’m dumb and figured I’d try it anyway… it looks like it’s going to cause a lot of breakage and in the end it still didn’t work, because it uninstalled a whole lot of crap including /etc/resolv.conf therefore causing further name resolution to break).
UPDATE: Somehow, my /etc/apk/world was included in the sysupgrade backup, so this makes a lot more sense now. How that happened, I'm not sure, but ..
Also, --force-broken-world really did a number on the AP as I predicted, so don't be dumb like me and try to use that to fix random package issues. Couldn't log in to Luci, couldn't SSH in (wouldn't take either password or SSH key), … fortunately, I have another router of the same model so MTTR was under 5 mins (flash updated build, restore backup, reconnect in place of old router).. recovering the busted one might be a bigger task since even the backup partition seems busted.