Opkg package index corrupt?

Hi,

The filesystem of my router became full after installing some packages with opkg.
After doing some cleaning up, i noticed that the package index seems to be corrupted..

I compared the current installed packages with an older list of installed packages and the below packages are nog longer shown in opkg list-installed. Do i have to do a sysupgrade to fix this or is there another way? (at the moment everything still works, but after a reboot?)

kernel
kmod-ata-core
kmod-ath
kmod-ath10k-ct
kmod-cfg80211
kmod-ipt-ipopt
kmod-ipt-nat
kmod-ipt-offload
kmod-nf-conntrack
kmod-nf-conntrack-netlink
kmod-nf-conntrack6
kmod-nf-ipt6
kmod-nls-base
kmod-usb-ledtrig-usbport
openwrt-keyring

If i do an upgrade of any of the above packages i get:

opkg upgrade kmod-ipt-nat
Installing kmod-ipt-nat (4.14.221-1) to root...

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-nat:
 *      kernel (= 4.14.221-1-0894164cab0effc42201a29fec8ce33f)

So thats probably due to "kernel" no longer being in the package index?

The packages update with every new snapshot, invalidating the old one(s).

thats my idea, yes...

Generally, never run opkg upgrade. Upgrade the whole OS.

It's also hard to recover from overfilling the jffs other than by re-flashing completely.

1 Like

Do "firstboot" command (and reboot), so that you loose all your configs and add-on packages, and revert to fresh just-flashed clean install with OpenWrt defaults.

(Like mk24 said, recovering from a full jffs2 overlay is difficult. Better to clear it.)

2 Likes